Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETAZFrame::CurrentTAZ::TAZEdgeColor Class Reference

struct for edges and the source/sink colors More...

#include <GNETAZFrame.h>

Collaboration diagram for GNETAZFrame::CurrentTAZ::TAZEdgeColor:
[legend]

Public Member Functions

 TAZEdgeColor (CurrentTAZ *CurrentTAZParent, GNEEdge *_edge, GNETAZSourceSink *_source, GNETAZSourceSink *_sink)
 constructor
void updateColors ()
 update colors
 ~TAZEdgeColor ()
 destructor (needed because RGBColors has to be deleted)

Data Fields

GNEEdgeedge
 TAZ edge.
GNETAZSourceSinksink
 sink TAZ
int sinkColor
 color by sink [0-9]
GNETAZSourceSinksource
 source TAZ
int sourceColor
 color by source [0-9]
int sourceMinusSinkColor
 color by source - sink [0-9]
int sourcePlusSinkColor
 color by source + sink [0-9]

Private Member Functions

 TAZEdgeColor ()
 default color

Private Attributes

CurrentTAZmyCurrentTAZParent
 pointer to CurrentTAZParent

Detailed Description

struct for edges and the source/sink colors

Definition at line 49 of file GNETAZFrame.h.

Constructor & Destructor Documentation

◆ TAZEdgeColor() [1/2]

GNETAZFrame::CurrentTAZ::TAZEdgeColor::TAZEdgeColor ( CurrentTAZ * CurrentTAZParent,
GNEEdge * _edge,
GNETAZSourceSink * _source,
GNETAZSourceSink * _sink )

constructor

Definition at line 76 of file GNETAZFrame.cpp.

References GNETAZFrame::CurrentTAZ::CurrentTAZ(), edge, GNETAZFrame::GNETAZFrame(), myCurrentTAZParent, sink, sinkColor, source, sourceColor, sourceMinusSinkColor, sourcePlusSinkColor, and TAZEdgeColor().

Referenced by TAZEdgeColor().

Here is the caller graph for this function:

◆ ~TAZEdgeColor()

GNETAZFrame::CurrentTAZ::TAZEdgeColor::~TAZEdgeColor ( )

destructor (needed because RGBColors has to be deleted)

Definition at line 88 of file GNETAZFrame.cpp.

◆ TAZEdgeColor() [2/2]

GNETAZFrame::CurrentTAZ::TAZEdgeColor::TAZEdgeColor ( )
private

default color

Definition at line 136 of file GNETAZFrame.cpp.

References edge, myCurrentTAZParent, sink, sinkColor, source, sourceColor, sourceMinusSinkColor, and sourcePlusSinkColor.

Member Function Documentation

◆ updateColors()

void GNETAZFrame::CurrentTAZ::TAZEdgeColor::updateColors ( )

update colors

Definition at line 92 of file GNETAZFrame.cpp.

References GNE_ATTR_TAZCOLOR, myCurrentTAZParent, GNEAttributeCarrier::parse(), sink, sinkColor, source, sourceColor, sourceMinusSinkColor, and sourcePlusSinkColor.

Referenced by GNETAZFrame::CurrentTAZ::refreshTAZEdges().

Here is the caller graph for this function:

Field Documentation

◆ edge

◆ myCurrentTAZParent

CurrentTAZ* GNETAZFrame::CurrentTAZ::TAZEdgeColor::myCurrentTAZParent
private

pointer to CurrentTAZParent

Definition at line 84 of file GNETAZFrame.h.

Referenced by TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ sink

GNETAZSourceSink* GNETAZFrame::CurrentTAZ::TAZEdgeColor::sink

sink TAZ

Definition at line 68 of file GNETAZFrame.h.

Referenced by GNETAZFrame::CurrentTAZ::addSourceSink(), TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ sinkColor

int GNETAZFrame::CurrentTAZ::TAZEdgeColor::sinkColor

color by sink [0-9]

Definition at line 74 of file GNETAZFrame.h.

Referenced by TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ source

GNETAZSourceSink* GNETAZFrame::CurrentTAZ::TAZEdgeColor::source

source TAZ

Definition at line 65 of file GNETAZFrame.h.

Referenced by GNETAZFrame::CurrentTAZ::addSourceSink(), TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ sourceColor

int GNETAZFrame::CurrentTAZ::TAZEdgeColor::sourceColor

color by source [0-9]

Definition at line 71 of file GNETAZFrame.h.

Referenced by TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ sourceMinusSinkColor

int GNETAZFrame::CurrentTAZ::TAZEdgeColor::sourceMinusSinkColor

color by source - sink [0-9]

Definition at line 80 of file GNETAZFrame.h.

Referenced by TAZEdgeColor(), TAZEdgeColor(), and updateColors().

◆ sourcePlusSinkColor

int GNETAZFrame::CurrentTAZ::TAZEdgeColor::sourcePlusSinkColor

color by source + sink [0-9]

Definition at line 77 of file GNETAZFrame.h.

Referenced by TAZEdgeColor(), TAZEdgeColor(), and updateColors().


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