Eclipse SUMO - Simulation of Urban MObility
GUIDottedGeometry Class Reference

#include <GUIDottedGeometry.h>

Collaboration diagram for GUIDottedGeometry:
[legend]

Data Structures

class  DottedGeometryColor
 class for pack all variables related with GUIDottedGeometry color More...
 
struct  Segment
 dotted geometry segment More...
 

Public Types

enum class  DottedContourType {
  INSPECT , REMOVE , SELECT , MOVE ,
  FRONT , OVER , FROM , TO ,
  RELATED , NOTHING
}
 

Public Member Functions

void clearDottedGeometry ()
 clear dotted geometry More...
 
void drawDottedGeometry (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, DottedGeometryColor &dottedGeometryColor, const double lineWidth, const bool addOffset) const
 draw dotted geometry More...
 
void drawInnenGeometry (const double lineWidth) const
 draw innen geometry More...
 
Position getBackPosition () const
 get back position More...
 
Position getFrontPosition () const
 get front position More...
 
const PositionVectorgetUnresampledShape () const
 get simple shape (the shape without resampling) More...
 
 GUIDottedGeometry ()
 constructor More...
 
 GUIDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, PositionVector shape, const bool closeShape)
 constructor for shapes More...
 
void moveShapeToSide (const double value)
 move shape to side More...
 
void updateDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const PositionVector &laneShape)
 update GUIDottedGeometry (using lane shape) More...
 
void updateDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, PositionVector shape, const bool closeShape)
 update GUIDottedGeometry (using shape) More...
 

Private Member Functions

void calculateShapeRotationsAndLengths ()
 calculate shape rotations and lengths More...
 

Private Attributes

std::vector< GUIDottedGeometry::SegmentmyDottedGeometrySegments
 dotted element shape (note: It's centered in 0,0 due scaling) More...
 
PositionVector myUnresampledShape
 shape without resampling More...
 

Detailed Description

Definition at line 30 of file GUIDottedGeometry.h.

Member Enumeration Documentation

◆ DottedContourType

Enumerator
INSPECT 
REMOVE 
SELECT 
MOVE 
FRONT 
OVER 
FROM 
TO 
RELATED 
NOTHING 

Definition at line 34 of file GUIDottedGeometry.h.

Constructor & Destructor Documentation

◆ GUIDottedGeometry() [1/2]

GUIDottedGeometry::GUIDottedGeometry ( )

constructor

Definition at line 154 of file GUIDottedGeometry.cpp.

◆ GUIDottedGeometry() [2/2]

Member Function Documentation

◆ calculateShapeRotationsAndLengths()

void GUIDottedGeometry::calculateShapeRotationsAndLengths ( )
private

calculate shape rotations and lengths

Definition at line 315 of file GUIDottedGeometry.cpp.

References GUIGeometry::calculateLength(), GUIGeometry::calculateRotation(), and myDottedGeometrySegments.

Referenced by GUIDottedGeometry(), and updateDottedGeometry().

Here is the caller graph for this function:

◆ clearDottedGeometry()

void GUIDottedGeometry::clearDottedGeometry ( )

clear dotted geometry

Definition at line 308 of file GUIDottedGeometry.cpp.

References myDottedGeometrySegments, and myUnresampledShape.

◆ drawDottedGeometry()

void GUIDottedGeometry::drawDottedGeometry ( const GUIVisualizationSettings s,
GUIDottedGeometry::DottedContourType  type,
DottedGeometryColor dottedGeometryColor,
const double  lineWidth,
const bool  addOffset 
) const

◆ drawInnenGeometry()

void GUIDottedGeometry::drawInnenGeometry ( const double  lineWidth) const

draw innen geometry

Definition at line 259 of file GUIDottedGeometry.cpp.

References GLHelper::drawBoxLine(), and myDottedGeometrySegments.

◆ getBackPosition()

Position GUIDottedGeometry::getBackPosition ( ) const

get back position

Definition at line 292 of file GUIDottedGeometry.cpp.

References Position::INVALID, and myUnresampledShape.

◆ getFrontPosition()

Position GUIDottedGeometry::getFrontPosition ( ) const

get front position

Definition at line 282 of file GUIDottedGeometry.cpp.

References Position::INVALID, and myUnresampledShape.

◆ getUnresampledShape()

const PositionVector & GUIDottedGeometry::getUnresampledShape ( ) const

get simple shape (the shape without resampling)

Definition at line 302 of file GUIDottedGeometry.cpp.

References myUnresampledShape.

◆ moveShapeToSide()

void GUIDottedGeometry::moveShapeToSide ( const double  value)

move shape to side

Definition at line 271 of file GUIDottedGeometry.cpp.

References PositionVector::move2side(), myDottedGeometrySegments, and myUnresampledShape.

◆ updateDottedGeometry() [1/2]

◆ updateDottedGeometry() [2/2]

Field Documentation

◆ myDottedGeometrySegments

std::vector<GUIDottedGeometry::Segment> GUIDottedGeometry::myDottedGeometrySegments
private

dotted element shape (note: It's centered in 0,0 due scaling)

Definition at line 135 of file GUIDottedGeometry.h.

Referenced by calculateShapeRotationsAndLengths(), clearDottedGeometry(), drawDottedGeometry(), drawInnenGeometry(), GUIDottedGeometry(), moveShapeToSide(), and updateDottedGeometry().

◆ myUnresampledShape

PositionVector GUIDottedGeometry::myUnresampledShape
private

The documentation for this class was generated from the following files: