Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 , WALKINGAREA , NOTHING
}
 

Public Member Functions

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

Private Member Functions

void calculateShapeRotationsAndLengths ()
 calculate shape rotations and lengths
 

Private Attributes

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

Detailed Description

Definition at line 30 of file GUIDottedGeometry.h.

Member Enumeration Documentation

◆ DottedContourType

Enumerator
INSPECT 
REMOVE 
SELECT 
MOVE 
FRONT 
OVER 
FROM 
TO 
RELATED 
WALKINGAREA 
NOTHING 

Definition at line 34 of file GUIDottedGeometry.h.

Constructor & Destructor Documentation

◆ GUIDottedGeometry() [1/2]

GUIDottedGeometry::GUIDottedGeometry ( )

constructor

Definition at line 156 of file GUIDottedGeometry.cpp.

◆ GUIDottedGeometry() [2/2]

Member Function Documentation

◆ calculateShapeRotationsAndLengths()

void GUIDottedGeometry::calculateShapeRotationsAndLengths ( )
private

calculate shape rotations and lengths

Definition at line 317 of file GUIDottedGeometry.cpp.

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

Referenced by GUIDottedGeometry(), updateDottedGeometry(), and updateDottedGeometry().

Here is the caller graph for this function:

◆ clearDottedGeometry()

void GUIDottedGeometry::clearDottedGeometry ( )

clear dotted geometry

Definition at line 310 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 261 of file GUIDottedGeometry.cpp.

References GLHelper::drawBoxLine(), and myDottedGeometrySegments.

◆ getBackPosition()

Position GUIDottedGeometry::getBackPosition ( ) const

get back position

Definition at line 294 of file GUIDottedGeometry.cpp.

References Position::INVALID, and myUnresampledShape.

◆ getFrontPosition()

Position GUIDottedGeometry::getFrontPosition ( ) const

get front position

Definition at line 284 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 304 of file GUIDottedGeometry.cpp.

References myUnresampledShape.

◆ moveShapeToSide()

void GUIDottedGeometry::moveShapeToSide ( const double  value)

move shape to side

Definition at line 273 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

◆ myUnresampledShape

PositionVector GUIDottedGeometry::myUnresampledShape
private

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