Eclipse SUMO - Simulation of Urban MObility
GNEAdditional::BlockIcon Struct Reference

struct for pack all variables and functions related with Block Icon More...

#include <GNEAdditional.h>

Collaboration diagram for GNEAdditional::BlockIcon:
[legend]

Public Member Functions

 BlockIcon (GNEAdditional *additional)
 constructor More...
 
void drawIcon (const GUIVisualizationSettings &s, const double exaggeration, const double size=0.5) const
 draw lock icon More...
 
const PositiongetPosition () const
 get position of the block icon More...
 
double getRotation () const
 get rotation of the block icon More...
 
void setOffset (const double x, const double y)
 set offset More...
 
void updatePositionAndRotation ()
 update position and rotation using additional geometry More...
 

Private Member Functions

BlockIconoperator= (const BlockIcon &other)=delete
 Invalidated assignment operator. More...
 

Private Attributes

const GNEAdditionalmyAdditional
 pointer to parent additional More...
 
Position myOffset
 The offSet of the block icon. More...
 
Position myPosition
 position of the block icon More...
 
double myRotation
 The rotation of the block icon. More...
 

Detailed Description

struct for pack all variables and functions related with Block Icon

Definition at line 303 of file GNEAdditional.h.

Constructor & Destructor Documentation

◆ BlockIcon()

GNEAdditional::BlockIcon::BlockIcon ( GNEAdditional additional)

constructor

Definition at line 488 of file GNEAdditional.cpp.

Member Function Documentation

◆ drawIcon()

◆ getPosition()

const Position & GNEAdditional::BlockIcon::getPosition ( ) const

get position of the block icon

Definition at line 569 of file GNEAdditional.cpp.

References myPosition.

Referenced by GNEAdditional::drawAdditionalName(), GNEBusStop::drawConnectionAccess(), and GNEDetector::drawDetectorLogo().

Here is the caller graph for this function:

◆ getRotation()

double GNEAdditional::BlockIcon::getRotation ( ) const

get rotation of the block icon

Definition at line 575 of file GNEAdditional.cpp.

References myRotation.

Referenced by GNEAdditional::drawAdditionalName(), GNEDetector::drawDetectorLogo(), GNEDetector::drawE1Shape(), GNEDetectorEntryExit::drawGL(), GNEStoppingPlace::drawLines(), and GNEStoppingPlace::drawSign().

Here is the caller graph for this function:

◆ operator=()

BlockIcon& GNEAdditional::BlockIcon::operator= ( const BlockIcon other)
privatedelete

Invalidated assignment operator.

◆ setOffset()

void GNEAdditional::BlockIcon::setOffset ( const double  x,
const double  y 
)

set offset

Definition at line 509 of file GNEAdditional.cpp.

References myOffset, Position::setx(), and Position::sety().

Referenced by GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().

Here is the caller graph for this function:

◆ updatePositionAndRotation()

Field Documentation

◆ myAdditional

const GNEAdditional* GNEAdditional::BlockIcon::myAdditional
private

pointer to parent additional

Definition at line 324 of file GNEAdditional.h.

Referenced by drawIcon(), and updatePositionAndRotation().

◆ myOffset

Position GNEAdditional::BlockIcon::myOffset
private

The offSet of the block icon.

Definition at line 333 of file GNEAdditional.h.

Referenced by drawIcon(), and setOffset().

◆ myPosition

Position GNEAdditional::BlockIcon::myPosition
private

position of the block icon

Definition at line 327 of file GNEAdditional.h.

Referenced by drawIcon(), getPosition(), and updatePositionAndRotation().

◆ myRotation

double GNEAdditional::BlockIcon::myRotation
private

The rotation of the block icon.

Definition at line 330 of file GNEAdditional.h.

Referenced by drawIcon(), getRotation(), and updatePositionAndRotation().


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