SUMO - Simulation of Urban MObility
GNETAZFrame::TAZCurrent Class Reference

#include <GNETAZFrame.h>

Inheritance diagram for GNETAZFrame::TAZCurrent:
Inheritance graph
Collaboration diagram for GNETAZFrame::TAZCurrent:
Collaboration graph

Data Structures

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

Public Member Functions

const std::vector< GNEEdge * > & getNetEdges () const
 get current net edges More...
 
const std::vector< GNEEdge * > & getSelectedEdges () const
 get current selected edges More...
 
GNETAZgetTAZ () const
 get current TAZ More...
 
const std::vector< TAZCurrent::TAZEdge > & getTAZEdges () const
 get TAZEdges More...
 
bool isTAZEdge (GNEEdge *edge) const
 check if given edge belongs to current TAZ More...
 
void refreshTAZEdges ()
 refresh TAZEdges More...
 
void setTAZ (GNETAZ *editedTAZ)
 set current TAZ More...
 
 TAZCurrent (GNETAZFrame *TAZFrameParent)
 constructor More...
 
 ~TAZCurrent ()
 destructor More...
 

Protected Member Functions

void addTAZChild (GNEAdditional *additional)
 add TAZChild More...
 

Private Attributes

GNETAZmyEditedTAZ
 current edited TAZ More...
 
double myMaxSourceMinusSinkWeight
 maximum source minus sink value of current TAZ Edges More...
 
double myMaxSourcePlusSinkWeight
 maximum source plus sink value of current TAZ Edges More...
 
double myMinSourceMinusSinkWeight
 minimum source minus sink value of current TAZ Edges More...
 
double myMinSourcePlusSinkWeight
 minimum source plus sink value of current TAZ Edges More...
 
std::vector< GNEEdge * > myNetEdges
 vector with pointers to edges (it's used to avoid slowdowns during Source/Sinks manipulations) More...
 
std::vector< GNEEdge * > mySelectedEdges
 vector with pointers to selected edges More...
 
FXLabel * myTAZCurrentLabel
 Label for current TAZ. More...
 
std::vector< TAZEdgemyTAZEdges
 vector with TAZ's edges More...
 
GNETAZFramemyTAZFrameParent
 pointer to TAZ Frame More...
 

Detailed Description

Definition at line 41 of file GNETAZFrame.h.

Constructor & Destructor Documentation

◆ TAZCurrent()

GNETAZFrame::TAZCurrent::TAZCurrent ( GNETAZFrame TAZFrameParent)

constructor

Definition at line 144 of file GNETAZFrame.cpp.

References GUIDesignLabelLeft, and myTAZCurrentLabel.

◆ ~TAZCurrent()

GNETAZFrame::TAZCurrent::~TAZCurrent ( )

destructor

Definition at line 157 of file GNETAZFrame.cpp.

Member Function Documentation

◆ addTAZChild()

◆ getNetEdges()

const std::vector< GNEEdge * > & GNETAZFrame::TAZCurrent::getNetEdges ( ) const

get current net edges

Definition at line 237 of file GNETAZFrame.cpp.

References myNetEdges.

Referenced by GNETAZFrame::TAZEdgesGraphic::hideTAZEdgesGraphicModul(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().

◆ getSelectedEdges()

const std::vector< GNEEdge * > & GNETAZFrame::TAZCurrent::getSelectedEdges ( ) const

◆ getTAZ()

◆ getTAZEdges()

◆ isTAZEdge()

bool GNETAZFrame::TAZCurrent::isTAZEdge ( GNEEdge edge) const

check if given edge belongs to current TAZ

Definition at line 224 of file GNETAZFrame.cpp.

References myTAZEdges.

Referenced by GNETAZFrame::processEdgeSelection().

◆ refreshTAZEdges()

◆ setTAZ()

void GNETAZFrame::TAZCurrent::setTAZ ( GNETAZ editedTAZ)

set current TAZ

Definition at line 161 of file GNETAZFrame.cpp.

References GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEAttributeCarrier::getTagProperties(), GNEFrame::DrawingShape::hideDrawingShape(), GNEFrame::NeteditAttributes::hideNeteditAttributesModul(), GNETAZFrame::TAZChildDefaultParameters::hideTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::hideTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::hideTAZEdgesGraphicModul(), GNETAZFrame::TAZParameters::hideTAZParametersModul(), GNETAZFrame::TAZSaveChanges::hideTAZSaveChangesModul(), GNETAZFrame::myDrawingShape, myEditedTAZ, myMaxSourceMinusSinkWeight, myMaxSourcePlusSinkWeight, myMinSourceMinusSinkWeight, myMinSourcePlusSinkWeight, myNetEdges, GNETAZFrame::myNeteditAttributes, mySelectedEdges, GNETAZFrame::myTAZChildDefaultParameters, GNETAZFrame::myTAZCommonStatistics, myTAZCurrentLabel, GNETAZFrame::myTAZEdgesGraphic, myTAZFrameParent, GNETAZFrame::myTAZParameters, GNETAZFrame::myTAZSaveChanges, GNEFrame::myViewNet, refreshTAZEdges(), GNENet::retrieveEdges(), GNEFrame::DrawingShape::showDrawingShape(), GNEFrame::NeteditAttributes::showNeteditAttributesModul(), GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::showTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::showTAZEdgesGraphicModul(), GNETAZFrame::TAZParameters::showTAZParametersModul(), GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModul(), and SUMO_TAG_TAZ.

Referenced by GNEViewNet::abortOperation(), GNETAZFrame::GNETAZFrame(), and GNETAZFrame::processClick().

Field Documentation

◆ myEditedTAZ

GNETAZ* GNETAZFrame::TAZCurrent::myEditedTAZ
private

current edited TAZ

Definition at line 117 of file GNETAZFrame.h.

Referenced by getTAZ(), refreshTAZEdges(), and setTAZ().

◆ myMaxSourceMinusSinkWeight

double GNETAZFrame::TAZCurrent::myMaxSourceMinusSinkWeight
private

maximum source minus sink value of current TAZ Edges

Definition at line 138 of file GNETAZFrame.h.

Referenced by addTAZChild(), refreshTAZEdges(), setTAZ(), and GNETAZFrame::TAZCurrent::TAZEdge::updateColors().

◆ myMaxSourcePlusSinkWeight

double GNETAZFrame::TAZCurrent::myMaxSourcePlusSinkWeight
private

maximum source plus sink value of current TAZ Edges

Definition at line 132 of file GNETAZFrame.h.

Referenced by addTAZChild(), refreshTAZEdges(), setTAZ(), and GNETAZFrame::TAZCurrent::TAZEdge::updateColors().

◆ myMinSourceMinusSinkWeight

double GNETAZFrame::TAZCurrent::myMinSourceMinusSinkWeight
private

minimum source minus sink value of current TAZ Edges

Definition at line 141 of file GNETAZFrame.h.

Referenced by addTAZChild(), refreshTAZEdges(), setTAZ(), and GNETAZFrame::TAZCurrent::TAZEdge::updateColors().

◆ myMinSourcePlusSinkWeight

double GNETAZFrame::TAZCurrent::myMinSourcePlusSinkWeight
private

minimum source plus sink value of current TAZ Edges

Definition at line 135 of file GNETAZFrame.h.

Referenced by addTAZChild(), refreshTAZEdges(), setTAZ(), and GNETAZFrame::TAZCurrent::TAZEdge::updateColors().

◆ myNetEdges

std::vector<GNEEdge*> GNETAZFrame::TAZCurrent::myNetEdges
private

vector with pointers to edges (it's used to avoid slowdowns during Source/Sinks manipulations)

Definition at line 120 of file GNETAZFrame.h.

Referenced by getNetEdges(), and setTAZ().

◆ mySelectedEdges

std::vector<GNEEdge*> GNETAZFrame::TAZCurrent::mySelectedEdges
private

vector with pointers to selected edges

Definition at line 123 of file GNETAZFrame.h.

Referenced by getSelectedEdges(), and setTAZ().

◆ myTAZCurrentLabel

FXLabel* GNETAZFrame::TAZCurrent::myTAZCurrentLabel
private

Label for current TAZ.

Definition at line 129 of file GNETAZFrame.h.

Referenced by setTAZ(), and TAZCurrent().

◆ myTAZEdges

std::vector<TAZEdge> GNETAZFrame::TAZCurrent::myTAZEdges
private

vector with TAZ's edges

Definition at line 126 of file GNETAZFrame.h.

Referenced by addTAZChild(), getTAZEdges(), isTAZEdge(), and refreshTAZEdges().

◆ myTAZFrameParent

GNETAZFrame* GNETAZFrame::TAZCurrent::myTAZFrameParent
private

pointer to TAZ Frame

Definition at line 114 of file GNETAZFrame.h.

Referenced by addTAZChild(), refreshTAZEdges(), and setTAZ().


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