SUMO - Simulation of Urban MObility
GNECrossingFrame::crossingParameters Class Reference

#include <GNECrossingFrame.h>

Inheritance diagram for GNECrossingFrame::crossingParameters:
Inheritance graph
Collaboration diagram for GNECrossingFrame::crossingParameters:
Collaboration graph

Public Member Functions

void clearEdges ()
 clear edges More...
 
 crossingParameters (GNECrossingFrame *crossingFrameParent, GNECrossingFrame::edgesSelector *es)
 FOX-declaration. More...
 
void disableCrossingParameters ()
 disable crossing parameters and clear parameters More...
 
void enableCrossingParameters ()
 enable crossing parameters and set the default value of parameters More...
 
const RGBColorgetCandidateColor () const
 get candidate color More...
 
std::vector< NBEdge * > getCrossingEdges () const
 get crossing NBedges More...
 
bool getCrossingPriority () const
 get crossing priority More...
 
double getCrossingWidth () const
 get crossing width More...
 
const RGBColorgetSelectedColor () const
 get selected color More...
 
void invertEdges (GNEJunction *parentJunction)
 invert edges More...
 
bool isCrossingParametersEnabled () const
 check if currently the crossingParameters is enabled More...
 
bool isCurrentParametersValid () const
 check if current parameters are valid More...
 
void markEdge (GNEEdge *edge)
 mark or dismark edge More...
 
void useSelectedEdges (GNEJunction *parentJunction)
 use selected eges More...
 
 ~crossingParameters ()
 destructor More...
 
FOX-callbacks

Called when user set a value

long onCmdSetAttribute (FXObject *, FXSelector, void *)
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when help button is pressed. More...
 

Protected Member Functions

 crossingParameters ()
 FOX needs this. More...
 

Private Attributes

FXTextField * myCrossingEdges
 TextField for edges. More...
 
FXLabel * myCrossingEdgesLabel
 Label for edges. More...
 
GNECrossingFramemyCrossingFrameParent
 pointer to GNECrossingFrame parent More...
 
FXCheckButton * myCrossingPriorityCheckButton
 CheckBox for Priority. More...
 
FXLabel * myCrossingPriorityLabel
 Label for Priority. More...
 
FXTextField * myCrossingWidth
 TextField for width. More...
 
FXLabel * myCrossingWidthLabel
 Label for width. More...
 
bool myCurrentParametersValid
 flag to check if current parameters are valid More...
 
std::vector< GNEEdge * > myCurrentSelectedEdges
 current selected edges More...
 
GNECrossingFrame::edgesSelectormyEdgeSelector
 pointer to edge selector More...
 
FXButton * myHelpCrossingAttribute
 button for help More...
 

Static Private Attributes

static RGBColor myCandidateColor
 color for candidate edges More...
 
static RGBColor mySelectedColor
 color for selected edges More...
 

Detailed Description

Definition at line 131 of file GNECrossingFrame.h.

Constructor & Destructor Documentation

◆ crossingParameters() [1/2]

◆ ~crossingParameters()

GNECrossingFrame::crossingParameters::~crossingParameters ( )

destructor

Definition at line 240 of file GNECrossingFrame.cpp.

◆ crossingParameters() [2/2]

GNECrossingFrame::crossingParameters::crossingParameters ( )
inlineprotected

FOX needs this.

Definition at line 192 of file GNECrossingFrame.h.

Member Function Documentation

◆ clearEdges()

void GNECrossingFrame::crossingParameters::clearEdges ( )

◆ disableCrossingParameters()

void GNECrossingFrame::crossingParameters::disableCrossingParameters ( )

◆ enableCrossingParameters()

void GNECrossingFrame::crossingParameters::enableCrossingParameters ( )

◆ getCandidateColor()

const RGBColor & GNECrossingFrame::crossingParameters::getCandidateColor ( ) const

get candidate color

Definition at line 379 of file GNECrossingFrame.cpp.

References myCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getCrossingEdges()

std::vector< NBEdge * > GNECrossingFrame::crossingParameters::getCrossingEdges ( ) const

get crossing NBedges

Definition at line 346 of file GNECrossingFrame.cpp.

References myCurrentSelectedEdges.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

◆ getCrossingPriority()

bool GNECrossingFrame::crossingParameters::getCrossingPriority ( ) const

get crossing priority

Definition at line 357 of file GNECrossingFrame.cpp.

References myCrossingPriorityCheckButton.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

◆ getCrossingWidth()

double GNECrossingFrame::crossingParameters::getCrossingWidth ( ) const

get crossing width

Definition at line 373 of file GNECrossingFrame.cpp.

References myCrossingWidth.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

◆ getSelectedColor()

const RGBColor & GNECrossingFrame::crossingParameters::getSelectedColor ( ) const

get selected color

Definition at line 385 of file GNECrossingFrame.cpp.

References mySelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ invertEdges()

void GNECrossingFrame::crossingParameters::invertEdges ( GNEJunction parentJunction)

◆ isCrossingParametersEnabled()

bool GNECrossingFrame::crossingParameters::isCrossingParametersEnabled ( ) const

check if currently the crossingParameters is enabled

Definition at line 281 of file GNECrossingFrame.cpp.

References myCrossingEdgesLabel.

◆ isCurrentParametersValid()

bool GNECrossingFrame::crossingParameters::isCurrentParametersValid ( ) const

check if current parameters are valid

Definition at line 367 of file GNECrossingFrame.cpp.

References myCurrentParametersValid.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

◆ markEdge()

◆ onCmdHelp()

◆ onCmdSetAttribute()

◆ useSelectedEdges()

void GNECrossingFrame::crossingParameters::useSelectedEdges ( GNEJunction parentJunction)

Field Documentation

◆ myCandidateColor

RGBColor GNECrossingFrame::crossingParameters::myCandidateColor
staticprivate

color for candidate edges

Definition at line 229 of file GNECrossingFrame.h.

Referenced by crossingParameters(), getCandidateColor(), and onCmdSetAttribute().

◆ myCrossingEdges

FXTextField* GNECrossingFrame::crossingParameters::myCrossingEdges
private

◆ myCrossingEdgesLabel

FXLabel* GNECrossingFrame::crossingParameters::myCrossingEdgesLabel
private

◆ myCrossingFrameParent

GNECrossingFrame* GNECrossingFrame::crossingParameters::myCrossingFrameParent
private

pointer to GNECrossingFrame parent

Definition at line 196 of file GNECrossingFrame.h.

Referenced by disableCrossingParameters(), markEdge(), and onCmdSetAttribute().

◆ myCrossingPriorityCheckButton

FXCheckButton* GNECrossingFrame::crossingParameters::myCrossingPriorityCheckButton
private

◆ myCrossingPriorityLabel

FXLabel* GNECrossingFrame::crossingParameters::myCrossingPriorityLabel
private

Label for Priority.

Definition at line 211 of file GNECrossingFrame.h.

Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().

◆ myCrossingWidth

FXTextField* GNECrossingFrame::crossingParameters::myCrossingWidth
private

◆ myCrossingWidthLabel

FXLabel* GNECrossingFrame::crossingParameters::myCrossingWidthLabel
private

Label for width.

Definition at line 217 of file GNECrossingFrame.h.

Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().

◆ myCurrentParametersValid

bool GNECrossingFrame::crossingParameters::myCurrentParametersValid
private

flag to check if current parameters are valid

Definition at line 226 of file GNECrossingFrame.h.

Referenced by isCurrentParametersValid(), and onCmdSetAttribute().

◆ myCurrentSelectedEdges

std::vector<GNEEdge*> GNECrossingFrame::crossingParameters::myCurrentSelectedEdges
private

current selected edges

Definition at line 202 of file GNECrossingFrame.h.

Referenced by getCrossingEdges(), invertEdges(), and onCmdSetAttribute().

◆ myEdgeSelector

GNECrossingFrame::edgesSelector* GNECrossingFrame::crossingParameters::myEdgeSelector
private

pointer to edge selector

Definition at line 199 of file GNECrossingFrame.h.

Referenced by onCmdSetAttribute().

◆ myHelpCrossingAttribute

FXButton* GNECrossingFrame::crossingParameters::myHelpCrossingAttribute
private

button for help

Definition at line 223 of file GNECrossingFrame.h.

Referenced by crossingParameters(), disableCrossingParameters(), and enableCrossingParameters().

◆ mySelectedColor

RGBColor GNECrossingFrame::crossingParameters::mySelectedColor
staticprivate

color for selected edges

Definition at line 232 of file GNECrossingFrame.h.

Referenced by crossingParameters(), getSelectedColor(), and onCmdSetAttribute().


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