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 RGBColor & getCandidateColor () const
 get candidate color More...
 
std::vector< NBEdge * > getCrossingEdges () const
 get crossing NBedges More...
 
bool getCrossingPriority () const
 get crossing priority More...
 
SUMOReal getCrossingWidth () const
 get crossing width More...
 
const RGBColor & getSelectedColor () 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

FXMatrix * myAttributesMatrix
 FXMatrix for place attributes. More...
 
FXTextField * myCrossingEdges
 TextField for edges. More...
 
FXLabel * myCrossingEdgesLabel
 Label for edges. More...
 
GNECrossingFrame * myCrossingFrameParent
 pointer to GNECrossingFrame parent More...
 
FXMenuCheck * myCrossingPriority
 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::edgesSelector * myEdgeSelector
 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 132 of file GNECrossingFrame.h.

Constructor & Destructor Documentation

GNECrossingFrame::crossingParameters::~crossingParameters ( )

destructor

Definition at line 249 of file GNECrossingFrame.cpp.

GNECrossingFrame::crossingParameters::crossingParameters ( )
inlineprotected

FOX needs this.

Definition at line 193 of file GNECrossingFrame.h.

Member Function Documentation

void GNECrossingFrame::crossingParameters::clearEdges ( )

clear edges

Definition at line 320 of file GNECrossingFrame.cpp.

References myCrossingEdges, and onCmdSetAttribute().

Referenced by GNECrossingFrame::edgesSelector::onCmdClearSelection().

void GNECrossingFrame::crossingParameters::disableCrossingParameters ( )
void GNECrossingFrame::crossingParameters::enableCrossingParameters ( )
const RGBColor & GNECrossingFrame::crossingParameters::getCandidateColor ( ) const

get candidate color

Definition at line 389 of file GNECrossingFrame.cpp.

References myCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

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

get crossing NBedges

Definition at line 356 of file GNECrossingFrame.cpp.

References myCurrentSelectedEdges.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

bool GNECrossingFrame::crossingParameters::getCrossingPriority ( ) const

get crossing priority

Definition at line 367 of file GNECrossingFrame.cpp.

References myCrossingPriority.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

SUMOReal GNECrossingFrame::crossingParameters::getCrossingWidth ( ) const

get crossing width

Definition at line 383 of file GNECrossingFrame.cpp.

References myCrossingWidth.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

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

get selected color

Definition at line 395 of file GNECrossingFrame.cpp.

References mySelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

void GNECrossingFrame::crossingParameters::invertEdges ( GNEJunction *  parentJunction)
bool GNECrossingFrame::crossingParameters::isCrossingParametersEnabled ( ) const

check if currently the crossingParameters is enabled

Definition at line 290 of file GNECrossingFrame.cpp.

References myCrossingEdgesLabel.

bool GNECrossingFrame::crossingParameters::isCurrentParametersValid ( ) const

check if current parameters are valid

Definition at line 377 of file GNECrossingFrame.cpp.

References myCurrentParametersValid, and SUMOReal.

Referenced by GNECrossingFrame::onCmdCreateCrossing().

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

Field Documentation

FXMatrix* GNECrossingFrame::crossingParameters::myAttributesMatrix
private

FXMatrix for place attributes.

Definition at line 206 of file GNECrossingFrame.h.

Referenced by crossingParameters().

RGBColor GNECrossingFrame::crossingParameters::myCandidateColor
staticprivate

color for candidate edges

Definition at line 233 of file GNECrossingFrame.h.

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

FXTextField* GNECrossingFrame::crossingParameters::myCrossingEdges
private
FXLabel* GNECrossingFrame::crossingParameters::myCrossingEdgesLabel
private
GNECrossingFrame* GNECrossingFrame::crossingParameters::myCrossingFrameParent
private

pointer to GNECrossingFrame parent

Definition at line 197 of file GNECrossingFrame.h.

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

FXMenuCheck* GNECrossingFrame::crossingParameters::myCrossingPriority
private
FXLabel* GNECrossingFrame::crossingParameters::myCrossingPriorityLabel
private

Label for Priority.

Definition at line 215 of file GNECrossingFrame.h.

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

FXTextField* GNECrossingFrame::crossingParameters::myCrossingWidth
private
FXLabel* GNECrossingFrame::crossingParameters::myCrossingWidthLabel
private

Label for width.

Definition at line 221 of file GNECrossingFrame.h.

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

bool GNECrossingFrame::crossingParameters::myCurrentParametersValid
private

flag to check if current parameters are valid

Definition at line 230 of file GNECrossingFrame.h.

Referenced by isCurrentParametersValid(), and onCmdSetAttribute().

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

current selected edges

Definition at line 203 of file GNECrossingFrame.h.

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

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

pointer to edge selector

Definition at line 200 of file GNECrossingFrame.h.

Referenced by onCmdSetAttribute().

FXButton* GNECrossingFrame::crossingParameters::myHelpCrossingAttribute
private

button for help

Definition at line 227 of file GNECrossingFrame.h.

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

RGBColor GNECrossingFrame::crossingParameters::mySelectedColor
staticprivate

color for selected edges

Definition at line 236 of file GNECrossingFrame.h.

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


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