Eclipse SUMO - Simulation of Urban MObility
GNEGeometry::DottedGeometry Class Reference

class for pack all variables related with DottedGeometry More...

#include <GNEGeometry.h>

Data Structures

struct  Segment
 dotted geometry segment More...
 

Public Member Functions

 DottedGeometry ()
 constructor More...
 
 DottedGeometry (const GUIVisualizationSettings &s, const DottedGeometry &topDottedGeometry, const bool drawFirstExtrem, const DottedGeometry &botDottedGeometry, const bool drawLastExtrem)
 constructor for extremes More...
 
 DottedGeometry (const GUIVisualizationSettings &s, PositionVector shape, const bool closeShape)
 constructor for shapes More...
 
void drawFrontDottedGeometry (DottedGeometryColor &dottedGeometryColor) const
 draw front inspected dottedShape More...
 
void drawInspectedDottedGeometry (DottedGeometryColor &dottedGeometryColor) const
 draw inspected dottedShape More...
 
double getWidth () const
 get width More...
 
void invertOffset ()
 invert offset of all segments More...
 
void moveShapeToSide (const double value)
 move shape to side More...
 
void setWidth (const double width)
 change default width More...
 
void updateDottedGeometry (const GUIVisualizationSettings &s, const GNELane *lane)
 update DottedGeometry (using lane shape) More...
 
void updateDottedGeometry (const GUIVisualizationSettings &s, PositionVector shape, const bool closeShape)
 update DottedGeometry (using shape) More...
 

Private Member Functions

void calculateShapeRotationsAndLengths ()
 calculate shape rotations and lengths More...
 
DottedGeometryoperator= (const DottedGeometry &other)=delete
 Invalidated assignment operator. More...
 

Private Attributes

std::vector< DottedGeometry::SegmentmyDottedGeometrySegments
 dotted element shape (note: It's centered in 0,0 due scaling) More...
 
double myWidth
 geometry width More...
 

Detailed Description

class for pack all variables related with DottedGeometry

Definition at line 187 of file GNEGeometry.h.

Constructor & Destructor Documentation

◆ DottedGeometry() [1/3]

GNEGeometry::DottedGeometry::DottedGeometry ( )

constructor

Definition at line 335 of file GNEGeometry.cpp.

◆ DottedGeometry() [2/3]

GNEGeometry::DottedGeometry::DottedGeometry ( const GUIVisualizationSettings s,
PositionVector  shape,
const bool  closeShape 
)

◆ DottedGeometry() [3/3]

GNEGeometry::DottedGeometry::DottedGeometry ( const GUIVisualizationSettings s,
const DottedGeometry topDottedGeometry,
const bool  drawFirstExtrem,
const DottedGeometry botDottedGeometry,
const bool  drawLastExtrem 
)

Member Function Documentation

◆ calculateShapeRotationsAndLengths()

void GNEGeometry::DottedGeometry::calculateShapeRotationsAndLengths ( )
private

calculate shape rotations and lengths

Definition at line 515 of file GNEGeometry.cpp.

References GNEGeometry::calculateLength(), and GNEGeometry::calculateRotation().

Referenced by DottedGeometry().

Here is the caller graph for this function:

◆ drawFrontDottedGeometry()

void GNEGeometry::DottedGeometry::drawFrontDottedGeometry ( DottedGeometryColor dottedGeometryColor) const

draw front inspected dottedShape

Definition at line 467 of file GNEGeometry.cpp.

References GLHelper::drawBoxLine(), GNEGeometry::DottedGeometryColor::getFrontColor(), and GLHelper::setColor().

Referenced by GNEGeometry::drawDottedContourClosedShape(), GNEGeometry::drawDottedContourEdge(), and GNEGeometry::drawDottedContourLane().

Here is the caller graph for this function:

◆ drawInspectedDottedGeometry()

void GNEGeometry::DottedGeometry::drawInspectedDottedGeometry ( DottedGeometryColor dottedGeometryColor) const

◆ getWidth()

double GNEGeometry::DottedGeometry::getWidth ( ) const

get width

Definition at line 494 of file GNEGeometry.cpp.

◆ invertOffset()

void GNEGeometry::DottedGeometry::invertOffset ( )

invert offset of all segments

Definition at line 506 of file GNEGeometry.cpp.

Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourLane(), and GNEEdgeRelData::drawPartialGL().

Here is the caller graph for this function:

◆ moveShapeToSide()

void GNEGeometry::DottedGeometry::moveShapeToSide ( const double  value)

move shape to side

Definition at line 485 of file GNEGeometry.cpp.

Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourLane(), and GNEEdgeRelData::drawPartialGL().

Here is the caller graph for this function:

◆ operator=()

DottedGeometry& GNEGeometry::DottedGeometry::operator= ( const DottedGeometry other)
privatedelete

Invalidated assignment operator.

◆ setWidth()

void GNEGeometry::DottedGeometry::setWidth ( const double  width)

change default width

Definition at line 500 of file GNEGeometry.cpp.

Referenced by GNEGeometry::HierarchicalConnections::drawDottedConnection(), and GNEConnection::drawGL().

Here is the caller graph for this function:

◆ updateDottedGeometry() [1/2]

void GNEGeometry::DottedGeometry::updateDottedGeometry ( const GUIVisualizationSettings s,
const GNELane lane 
)

◆ updateDottedGeometry() [2/2]

void GNEGeometry::DottedGeometry::updateDottedGeometry ( const GUIVisualizationSettings s,
PositionVector  shape,
const bool  closeShape 
)

Field Documentation

◆ myDottedGeometrySegments

std::vector<DottedGeometry::Segment> GNEGeometry::DottedGeometry::myDottedGeometrySegments
private

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

Definition at line 254 of file GNEGeometry.h.

Referenced by DottedGeometry().

◆ myWidth

double GNEGeometry::DottedGeometry::myWidth
private

geometry width

Definition at line 251 of file GNEGeometry.h.


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