 |
Eclipse SUMO - Simulation of Urban MObility
|
int myCurrentMovingVertexIndex
index of vertex that is been moved (-1 means that none vertex is been moved)
void updateGeometry()
update pre-computed geometry information
std::string getAttribute(SumoXMLAttr key) const
An Element which don't belongs to GNENet but has influency in the simulation.
void deleteGeometryPoint(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
int getVertexIndex(Position pos, bool createIfNoExist, bool snapToGrid)
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
double myAverageWeightSink
Average Sink weight.
PositionVector myTAZShape
TAZ shape.
void updateParentAdditional()
update TAZ after add or remove a Source/sink, or change their weight
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
double getAttributeDouble(SumoXMLAttr key) const
RGBColor myColor
TAZ Color.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
GNETAZ & operator=(const GNETAZ &)=delete
Invalidated assignment operator.
double myMaxWeightSource
Max source weight.
GNETAZ(const std::string &id, GNEViewNet *viewNet, PositionVector shape, RGBColor color, bool blockMovement)
GNETAZ Constructor.
void commitShapeChange(const PositionVector &oldShape, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of changeShapeGeometry(....
GNETAZ(const GNETAZ &)=delete
Invalidated copy constructor.
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
~GNETAZ()
GNETAZ Destructor.
A class that stores a 2D geometrical boundary.
static const double myHintSizeSquared
squaredhint size of vertex
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
A point in 2D or 3D with translation and scaling methods.
static const double myHintSize
hint size of vertex
int moveVertexShape(const int index, const Position &oldPos, const Position &offset)
change position of a vertex of shape without commiting change
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
double myAverageWeightSource
Average source weight.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
bool isShapeBlocked() const
return true if Shape TAZ is blocked
bool myBlockShape
flag for block shape
Position getPositionInView() const
Returns position of additional in view.
double myMinWeightSource
Min source weight.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void moveEntireShape(const PositionVector &oldShape, const Position &offset)
move entire shape without commiting change
const PositionVector & getTAZShape() const
get TAZ shape
bool isAttributeEnabled(SumoXMLAttr key) const
std::string getParentName() const
Returns the name of the parent object (if any)
double myMaxWeightSink
Max Sink weight.
double myMinWeightSink
Min Sink weight.