49 const auto snap_radius =
myMovedElement->getNet()->getViewNet()->getVisualisationSettings().neteditSizeSettings.additionalGeometryPointRadius;
50 const auto snapRadiusSquared = (snap_radius * snap_radius);
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
GNEAttributeCarrier * myMovedElement
pointer to element
AttributesFormat
attributes format
friend class GNEMoveElementViewResizable
resizable needs access
void setMoveShape(const GNEMoveResult &moveResult) override
set move shape
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList) override
commit move shape
GNEMoveElementView(GNEAttributeCarrier *element, AttributesFormat attributesFormat, SumoXMLAttr posAttr, Position &position)
constructor for element with fixed size
GNEMoveOperation * getMoveOperation() override
get move operation
~GNEMoveElementViewResizable()
void setMoveShape(const GNEMoveResult &moveResult) override
set move shape
PositionVector myShapeWidth
shape width
const bool myEditWidth
check if width can be edited
const bool myEditHeight
check if height can be edited
GNEMoveOperation * getMoveOperation() override
get move operation
ResizingFormat
attributes format
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList) override
commit move shape
const bool myEditLength
check if length can be edited
PositionVector myShapeHeight
shape height
const GNEMoveOperation::OperationType operationType
move operation
PositionVector shapeToUpdate
shape to update (edited in moveElement)
void end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
void begin(GUIIcon icon, const std::string &description)
Begin undo command sub-group with current supermode. This begins a new group of commands that are tre...
A point in 2D or 3D with translation and scaling methods.
double length2D() const
Returns the length.