58 for (
const auto& rerouterElement :
myAdditional->getChildAdditionals()) {
59 rerouterElement->updateGeometry();
77 for (
const auto& additionalChild :
myAdditional->getChildAdditionals()) {
78 myAdditional->myAdditionalBoundary.add(additionalChild->getCenteringBoundary());
79 for (
const auto& secondAdditionalChild : additionalChild->getChildAdditionals()) {
80 myAdditional->myAdditionalBoundary.add(secondAdditionalChild->getCenteringBoundary());
82 if (secondAdditionalChild->getParentAdditionals().size() > 1) {
83 myAdditional->myAdditionalBoundary.add(secondAdditionalChild->getParentAdditionals().at(1)->getCenteringBoundary());
100 const double exaggeration =
myAdditional->getExaggeration(s);
112 glScaled(exaggeration, exaggeration, 1);
116 glRotated(180, 0, 0, 1);
135 myAdditional->myAdditionalContour.calculateContourRectangleShape(s, d,
myAdditional,
myPosOverView, size, size,
myAdditional->getType(), 0, 0, 0, exaggeration,
nullptr);
GUITexture
An enumeration of gifs used by the gui applications.
static void popMatrix()
pop matrix
static void drawBoundary(const GUIVisualizationSettings &s, const Boundary &b)
Draw a boundary (used for debugging).
static void pushMatrix()
push matrix
void updatedSquaredGeometry()
updated squared geometry
Position myPosOverView
position over view
GNEAdditional * myAdditional
pointer to additional
void updatedSquaredCenteringBoundary(const bool updateGrid)
updated squared centering boundary
GNEMoveElementView * myMoveElementView
move element over view
void drawSquaredAdditional(const GUIVisualizationSettings &s, const double size, GUITexture texture, GUITexture selectedTexture) const
draw squared additional
~GNEAdditionalSquared()
destructor
GNEAdditionalSquared(GNEAdditional *additional)
default constructor
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
Stores the information about how to visualize structures.
bool checkDrawAdditional(Detail d, const bool selected) const
check if draw additionals
Detail getDetailLevel(const double exaggeration) const
return the detail level
GUIVisualizationDottedContourSettings dottedContourSettings
dotted contour settings
A point in 2D or 3D with translation and scaling methods.
static void drawLockIcon(const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, GUIGlObjectType type, const Position position, const double exaggeration, const double size=0.5, const double offsetx=0, const double offsety=0)
draw lock icon
static const double segmentWidth
width of dotted contour segments