Position getPositionInView() const
Returns position of additional in view.
~GNETAZ()
GNETAZ Destructor.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
double myMaxWeightSource
Max source weight.
Stores the information about how to visualize structures.
void commitShapeChange(const PositionVector &oldShape, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of changeShapeGeometry(...)
double myMinWeightSource
Min source weight.
bool myBlockShape
flag for block shape
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void deleteGeometryPoint(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
void updateGeometry(bool updateGrid)
update pre-computed geometry information
int moveVertexShape(const int index, const Position &oldPos, const Position &offset)
change position of a vertex of shape without commiting change
static const double myHintSizeSquared
squaredhint size of vertex
static const double myHintSize
hint size of vertex
void moveEntireShape(const PositionVector &oldShape, const Position &offset)
move entire shape without commiting change
std::string getParentName() const
Returns the name of the parent object (if any)
double myMaxWeightSink
Max Sink weight.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
A point in 2D or 3D with translation and scaling methods.
double myMinWeightSink
Min Sink weight.
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 ...
std::string getAttribute(SumoXMLAttr key) const
int myCurrentMovingVertexIndex
index of vertex that is been moved (-1 means that none vertex is been moved)
void updateAdditionalParent()
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
An Element which don't belongs to GNENet but has influency in the simulation.
RGBColor myColor
TAZ Color.
GNETAZ & operator=(const GNETAZ &)=delete
Invalidated assignment operator.
GNETAZ(const std::string &id, GNEViewNet *viewNet, PositionVector shape, RGBColor color, bool blockMovement)
GNETAZ Constructor.
double myAverageWeightSource
Average source weight.
bool isShapeBlocked() const
return true if Shape TAZ is blocked
double myAverageWeightSink
Average Sink weight.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.