Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAdditionalListed Class Reference

#include <GNEAdditionalListed.h>

Inheritance diagram for GNEAdditionalListed:
[legend]
Collaboration diagram for GNEAdditionalListed:
[legend]

Public Member Functions

 GNEAdditionalListed (GNEAdditional *additional)
 default constructor
 

Protected Member Functions

void drawListedAdditional (const GUIVisualizationSettings &s, const RGBColor baseCol, const RGBColor textCol, GUITexture texture, const std::string text) const
 draw listed additional
 
int getDrawPositionIndex () const
 get draw position index
 
Position getListedPositionInView () const
 get listed position in view
 
void updateGeometryListedAdditional ()
 update geometry of listed additional
 

Private Member Functions

std::string adjustListedAdditionalText (const std::string &text) const
 adjust listed additional text
 
 GNEAdditionalListed (const GNEAdditionalListed &)=delete
 Invalidated copy constructor.
 
GNEAdditionalListedoperator= (const GNEAdditionalListed &)=delete
 Invalidated assignment operator.
 

Private Attributes

GNEAdditionalmyAdditional
 pointer to additional
 
int myDrawPositionIndex = 0
 draw position index
 
Position myIconPosition
 sign position
 
double myIconSize = 0
 icon size
 
GUIGeometry myInternalRectangle
 internal rectangle
 
GUIGeometry myLineGeometry
 vector with line geometry
 
Position myTextPosition
 text position
 
common offsets
const double lineLenght = 1
 line offset (must be divisible by 2)
 
const double lineWidth = 0.05
 line width
 
const double shapeWidth = 6
 shape width
 
const double shapeHeight = 0.5
 shapeHeight
 
const double ySeparation = 0.1
 Y separation.
 
const double padding = 0.02
 padding between internal and external rectangle
 
const double iconPadding = 0.05
 icon padding
 

Detailed Description

Definition at line 36 of file GNEAdditionalListed.h.

Constructor & Destructor Documentation

◆ GNEAdditionalListed() [1/2]

GNEAdditionalListed::GNEAdditionalListed ( GNEAdditional additional)

default constructor

Definition at line 33 of file GNEAdditionalListed.cpp.

◆ GNEAdditionalListed() [2/2]

GNEAdditionalListed::GNEAdditionalListed ( const GNEAdditionalListed )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ adjustListedAdditionalText()

std::string GNEAdditionalListed::adjustListedAdditionalText ( const std::string &  text) const
private

adjust listed additional text

Definition at line 160 of file GNEAdditionalListed.cpp.

Referenced by drawListedAdditional().

Here is the caller graph for this function:

◆ drawListedAdditional()

void GNEAdditionalListed::drawListedAdditional ( const GUIVisualizationSettings s,
const RGBColor  baseCol,
const RGBColor  textCol,
GUITexture  texture,
const std::string  text 
) const
protected

draw listed additional

Definition at line 75 of file GNEAdditionalListed.cpp.

References GUIVisualizationSettings::additionalSettings, adjustListedAdditionalText(), GNEContour::calculateContourExtrudedShape(), RGBColor::changedBrightness(), GUIVisualizationSettings::checkDrawAdditional(), GNEViewNetHelper::LockIcon::checkDrawing(), GUIVisualizationSettings::colorSettings, GUIVisualizationAdditionalSettings::connectionColor, GUIVisualizationSettings::dottedContourSettings, GLHelper::drawBoundary(), GNEContour::drawDottedContours(), GUIGeometry::drawGeometry(), GNEAttributeCarrier::drawInLayer(), GNEViewNetHelper::LockIcon::drawLockIcon(), GLHelper::drawText(), GUITexturesHelper::drawTexturedBox(), FONS_ALIGN_LEFT, FONS_ALIGN_MIDDLE, GNEAdditional::getAdditionalGeometry(), GNEAdditional::getCenteringBoundary(), GNEViewNet::getDataViewOptions(), GUIVisualizationSettings::getDetailLevel(), GNEAttributeCarrier::getNet(), GUIGeometry::getShape(), GUITextureSubSys::getTexture(), GUIGlObject::getType(), GNENet::getViewNet(), GNEAttributeCarrier::isAttributeCarrierSelected(), lineWidth, myAdditional, GNEAdditional::myAdditionalContour, myIconPosition, myIconSize, myInternalRectangle, myLineGeometry, myTextPosition, padding, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationDottedContourSettings::segmentWidthSmall, GUIVisualizationColorSettings::selectedAdditionalColor, GLHelper::setColor(), shapeHeight, GNEViewNetHelper::DataViewOptions::showAdditionals(), Position::x(), and Position::y().

Referenced by GNECalibratorFlow::drawGL(), GNEClosingLaneReroute::drawGL(), GNEClosingReroute::drawGL(), GNEDestProbReroute::drawGL(), GNEParkingAreaReroute::drawGL(), GNERerouterInterval::drawGL(), GNERouteProbReroute::drawGL(), and GNEVariableSpeedSignStep::drawGL().

Here is the caller graph for this function:

◆ getDrawPositionIndex()

int GNEAdditionalListed::getDrawPositionIndex ( ) const
protected

get draw position index

Definition at line 141 of file GNEAdditionalListed.cpp.

References GNEHierarchicalElement::getParentAdditionals(), and myAdditional.

Referenced by updateGeometryListedAdditional().

Here is the caller graph for this function:

◆ getListedPositionInView()

Position GNEAdditionalListed::getListedPositionInView ( ) const
protected

get listed position in view

Definition at line 135 of file GNEAdditionalListed.cpp.

References myIconPosition.

Referenced by GNECalibratorFlow::getPositionInView(), GNEClosingLaneReroute::getPositionInView(), GNEClosingReroute::getPositionInView(), GNEDestProbReroute::getPositionInView(), GNEParkingAreaReroute::getPositionInView(), GNERerouterInterval::getPositionInView(), GNERouteProbReroute::getPositionInView(), and GNEVariableSpeedSignStep::getPositionInView().

Here is the caller graph for this function:

◆ operator=()

GNEAdditionalListed & GNEAdditionalListed::operator= ( const GNEAdditionalListed )
privatedelete

Invalidated assignment operator.

◆ updateGeometryListedAdditional()

Field Documentation

◆ iconPadding

const double GNEAdditionalListed::iconPadding = 0.05
private

icon padding

Definition at line 82 of file GNEAdditionalListed.h.

Referenced by updateGeometryListedAdditional().

◆ lineLenght

const double GNEAdditionalListed::lineLenght = 1
private

line offset (must be divisible by 2)

Definition at line 64 of file GNEAdditionalListed.h.

Referenced by updateGeometryListedAdditional().

◆ lineWidth

const double GNEAdditionalListed::lineWidth = 0.05
private

line width

Definition at line 67 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional().

◆ myAdditional

GNEAdditional* GNEAdditionalListed::myAdditional
private

pointer to additional

Definition at line 58 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), getDrawPositionIndex(), and updateGeometryListedAdditional().

◆ myDrawPositionIndex

int GNEAdditionalListed::myDrawPositionIndex = 0
private

draw position index

Definition at line 87 of file GNEAdditionalListed.h.

Referenced by updateGeometryListedAdditional().

◆ myIconPosition

Position GNEAdditionalListed::myIconPosition
private

sign position

Definition at line 96 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), getListedPositionInView(), and updateGeometryListedAdditional().

◆ myIconSize

double GNEAdditionalListed::myIconSize = 0
private

icon size

Definition at line 99 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ myInternalRectangle

GUIGeometry GNEAdditionalListed::myInternalRectangle
private

internal rectangle

Definition at line 90 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ myLineGeometry

GUIGeometry GNEAdditionalListed::myLineGeometry
private

vector with line geometry

Definition at line 93 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ myTextPosition

Position GNEAdditionalListed::myTextPosition
private

text position

Definition at line 102 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ padding

const double GNEAdditionalListed::padding = 0.02
private

padding between internal and external rectangle

Definition at line 79 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ shapeHeight

const double GNEAdditionalListed::shapeHeight = 0.5
private

shapeHeight

Definition at line 73 of file GNEAdditionalListed.h.

Referenced by drawListedAdditional(), and updateGeometryListedAdditional().

◆ shapeWidth

const double GNEAdditionalListed::shapeWidth = 6
private

shape width

Definition at line 70 of file GNEAdditionalListed.h.

Referenced by updateGeometryListedAdditional().

◆ ySeparation

const double GNEAdditionalListed::ySeparation = 0.1
private

Y separation.

Definition at line 76 of file GNEAdditionalListed.h.

Referenced by updateGeometryListedAdditional().


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