38 #include <osg/Geometry>
57 #ifdef CHECK_MEMORY_LEAKS
59 #endif // CHECK_MEMORY_LEAKS
67 myJunction(junction) {
75 #ifdef HAVE_INTERNAL_LANES
147 osg::Vec4ubArray* colors =
dynamic_cast<osg::Vec4ubArray*
>(myGeom->getColorArray());
149 myGeom->setColorArray(colors);
GUIVisualizationTextSettings junctionName
SUMOReal getHeight() const
Returns the height of the boundary.
SUMOReal getWidth() const
Returns the width of the boudary.
const RGBColor getColor(const SUMOReal value) const
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
Stores the information about how to visualize structures.
The base class for an intersection.
const PositionVector & getShape() const
Returns this junction's shape.
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
static void drawFilledPoly(const PositionVector &v, bool close)
Draws a filled polygon described by the list of points.
SUMOReal x() const
Returns the x-position.
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
SUMOReal myMaxSize
The maximum size (in either x-, or y-dimension) for determining whether to draw or not...
unsigned char blue() const
Returns the blue-amount of the color.
static void drawFilledPolyTesselated(const PositionVector &v, bool close)
Draws a filled polygon described by the list of points.
GUIJunctionWrapper(MSJunction &junction)
Constructor.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
A point in 2D or 3D with translation and scaling methods.
void set(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
assigns new values
unsigned char alpha() const
Returns the alpha-amount of the color.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
virtual ~GUIJunctionWrapper()
Destructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
GUIColorScheme & getScheme()
SUMOReal y() const
Returns the y-position.
Boundary myBoundary
The represented junction's boundary.
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
MSJunction & myJunction
A reference to the represented junction.
unsigned char green() const
Returns the green-amount of the color.
bool drawJunctionShape
whether the shape of the junction should be drawn
unsigned char red() const
Returns the red-amount of the color.
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
GUISelectedStorage gSelected
A global holder of selected objects.
A window containing a gl-object's parameter.
bool myIsInner
whether this wraps an instance of MSInternalJunction
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
const Position & getPosition() const