108 const std::vector<TAZCurrent::TAZEdge>&
getTAZEdges()
const;
420 long onCmdHelp(FXObject*, FXSelector,
void*);
A road/street connecting two junctions (netedit-version)
bool getToggleMembership() const
check if toggle membership is enabled
FXButton * myUseSelectedEdges
button for use selected edges
TAZChildDefaultParameters(GNETAZFrame *TAZFrameParent)
FOX-declaration.
FXCheckButton * myToggleMembership
CheckButton to enable or disable Toggle edge Membership.
void hideTAZChildDefaultParametersModul()
hide TAZ child default parameters Modul
FXTextField * myTextFieldDefaultValueTAZSources
textField to set a default value for TAZ Sources
long onCmdUseSelectedEdges(FXObject *obj, FXSelector, void *)
Called when the user press use selected edges.
void updateSelectEdgesButton()
update "select edges button"
double getDefaultTAZSourceWeight() const
get default TAZSource weight
FXLabel * myInformationLabel
information label
FXHorizontalFrame * myDefaultTAZSinkFrame
Horizontal Frame for default TAZ Sink Weight.
FXHorizontalFrame * myDefaultTAZSourceFrame
Horizontal Frame for default TAZ Source Weight.
GNETAZFrame * myTAZFrameParent
pointer to TAZFrame parent
~TAZChildDefaultParameters()
destructor
double myDefaultTAZSourceWeight
default TAZSource weight
FXTextField * myTextFieldDefaultValueTAZSinks
textField to set a default value for TAZ Sinks
long onCmdSetDefaultValues(FXObject *obj, FXSelector, void *)
double getDefaultTAZSinkWeight() const
default TAZSink weight
double myDefaultTAZSinkWeight
default TAZSink weight
void showTAZChildDefaultParametersModul()
show TAZ child default parameters Modul
TAZCommonStatistics(GNETAZFrame *TAZFrameParent)
constructor
~TAZCommonStatistics()
destructor
FXLabel * myStatisticsLabel
Statistics labels.
void hideTAZCommonStatisticsModul()
hide TAZ Common Statistics Modul
void showTAZCommonStatisticsModul()
show TAZ Common Statistics Modul
void updateStatistics()
update Statistics label
GNETAZFrame * myTAZFrameParent
pointer to TAZFrame parent
void refreshTAZEdges()
refresh TAZEdges
void addTAZChild(GNETAZSourceSink *additional)
add TAZChild
void setTAZ(GNETAZ *editedTAZ)
set current TAZ
const std::vector< TAZCurrent::TAZEdge > & getTAZEdges() const
get TAZEdges
FXLabel * myTAZCurrentLabel
Label for current TAZ.
const std::vector< GNEEdge * > & getNetEdges() const
get current net edges
double myMaxSourcePlusSinkWeight
maximum source plus sink value of current TAZ Edges
bool isTAZEdge(GNEEdge *edge) const
check if given edge belongs to current TAZ
GNETAZ * getTAZ() const
get current TAZ
double myMinSourceMinusSinkWeight
minimum source minus sink value of current TAZ Edges
std::vector< TAZEdge > myTAZEdges
vector with TAZ's edges
GNETAZFrame * myTAZFrameParent
pointer to TAZ Frame
std::vector< GNEEdge * > myNetEdges
vector with pointers to edges (it's used to avoid slowdowns during Source/Sinks manipulations)
const std::vector< GNEEdge * > & getSelectedEdges() const
get current selected edges
double myMinSourcePlusSinkWeight
minimum source plus sink value of current TAZ Edges
double myMaxSourceMinusSinkWeight
maximum source minus sink value of current TAZ Edges
TAZCurrent(GNETAZFrame *TAZFrameParent)
constructor
GNETAZ * myEditedTAZ
current edited TAZ
std::vector< GNEEdge * > mySelectedEdges
vector with pointers to selected edges
FXRadioButton * myColorBySourcePlusSinkWeight
add radio button "color source + sink"
RGBColor myEdgeSelectedColor
RGBColor color for selected egdes.
FXRadioButton * myColorBySinkWeight
add radio button "color by sink"
void updateEdgeColors()
update edge colors;
void showTAZEdgesGraphicModul()
show TAZ Edges Graphic Modul
FXRadioButton * myColorBySourceWeight
add radio button "color by source"
FXRadioButton * myColorBySourceMinusSinkWeight
add radio button "color source - Sink"
RGBColor myEdgeDefaultColor
default RGBColor for all edges
void hideTAZEdgesGraphicModul()
hide TAZ Edges Graphic Modul
GNETAZFrame * myTAZFrameParent
pointer to TAZFrame parent
~TAZEdgesGraphic()
destructor
long onCmdChoosenBy(FXObject *obj, FXSelector, void *)
TAZEdgesGraphic(GNETAZFrame *TAZFrameParent)
FOX-declaration.
std::map< SumoXMLAttr, std::string > getAttributesAndValues() const
get a map with attributes and their values
bool isAddEdgesWithinEnabled() const
check if edges within has to be used after TAZ Creation
void hideTAZParametersModul()
hide TAZ parameters
TAZParameters(GNETAZFrame *TAZFrameParent)
FOX-declaration.
~TAZParameters()
destructor
FXButton * myHelpTAZAttribute
button for help
FXCheckButton * myAddEdgesWithinCheckButton
CheckButton to enable or disable use edges within TAZ after creation.
long onCmdSetAttribute(FXObject *, FXSelector, void *)
Called when user set a value.
long onCmdHelp(FXObject *, FXSelector, void *)
Called when help button is pressed.
long onCmdSetColorAttribute(FXObject *, FXSelector, void *)
GNETAZFrame * myTAZFrameParent
pointer to GNETAZFrame parent
FXButton * myColorEditor
Button for open color editor.
void showTAZParametersModul()
show TAZ parameters and set the default value of parameters
FXTextField * myTextFieldColor
textField to modify the default value of color parameter
bool isCurrentParametersValid() const
check if current parameters are valid
bool isChangesPending() const
return true if there is changes to save
FXButton * mySaveChangesButton
@field FXButton for save changes in TAZEdges
void hideTAZSaveChangesModul()
hide TAZ Save Changes Modul
GNETAZFrame * myTAZFrameParent
pointer to TAZFrame parent
FXButton * myCancelChangesButton
@field FXButton for cancel changes in TAZEdges
void showTAZSaveChangesModul()
show TAZ Save Changes Modul
long onCmdCancelChanges(FXObject *, FXSelector, void *)
Called when the user press the button cancel changes.
TAZSaveChanges(GNETAZFrame *TAZFrameParent)
FOX-declaration.
~TAZSaveChanges()
destructor
long onCmdSaveChanges(FXObject *, FXSelector, void *)
void enableButtonsAndBeginUndoList()
enable buttons save and cancel changes (And begin Undo List)
long onCmdSelectEdges(FXObject *obj, FXSelector, void *)
Called when the user press select edges.
TAZSelectionStatistics(GNETAZFrame *TAZFrameParent)
FOX-declaration.
FXHorizontalFrame * myTAZSourceFrame
Horizontal Frame for default TAZ Source Weight.
~TAZSelectionStatistics()
destructor
const std::vector< TAZCurrent::TAZEdge > & getEdgeAndTAZChildrenSelected() const
get map with edge and TAZChildren
GNETAZFrame * myTAZFrameParent
pointer to TAZFrame parent
bool isEdgeSelected(GNEEdge *edge)
check if an edge is selected
FXHorizontalFrame * myTAZSinkFrame
Horizontal Frame for default TAZ Sink Weight.
std::vector< TAZCurrent::TAZEdge > myEdgeAndTAZChildrenSelected
vector with the current selected edges and their associated children
long onCmdSetNewValues(FXObject *obj, FXSelector, void *)
bool selectEdge(const TAZCurrent::TAZEdge &edge)
add an edge and their TAZ Children in the list of selected items
void clearSelectedEdges()
clear current TAZ children
void showTAZSelectionStatisticsModul()
show TAZ Selection Statistics Modul
FXTextField * myTextFieldTAZSourceWeight
textField for TAZ Source weight
void updateStatistics()
update TAZSelectionStatistics
void hideTAZSelectionStatisticsModul()
hide TAZ Selection Statistics Modul
FXTextField * myTextFieldTAZSinkWeight
textField for TAZ Sink weight
bool unselectEdge(GNEEdge *edge)
un select an edge (and their TAZ Children)
FXLabel * myStatisticsLabel
Statistics labels.
TAZSelectionStatistics * myTAZSelectionStatistics
TAZ Edges selection parameters.
TAZEdgesGraphic * myTAZEdgesGraphic
TAZ Edges Graphic.
TAZParameters * myTAZParameters
TAZ parameters.
bool addOrRemoveTAZMember(GNEEdge *edge)
add or remove a TAZSource and a TAZSink, or remove it if edge is in the list of TAZ Children
void dropTAZMembers()
drop all TAZSources and TAZ Sinks of current TAZ
bool processClick(const Position &clickedPosition, const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
process click over Viewnet
TAZSelectionStatistics * getTAZSelectionStatisticsModul() const
get TAZ Selection Statistics modul
TAZCommonStatistics * myTAZCommonStatistics
TAZ Edges common parameters.
TAZCurrent * myTAZCurrent
current TAZ
bool shapeDrawed()
build a shaped element using the drawed shape return true if was sucesfully created
GNEFrameModuls::DrawingShape * myDrawingShape
Drawing shape.
~GNETAZFrame()
Destructor.
TAZSaveChanges * myTAZSaveChanges
save TAZ Edges
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
GNEFrameModuls::DrawingShape * getDrawingShapeModul() const
get drawing mode modul
TAZCurrent * getTAZCurrentModul() const
get Current TAZ modul
GNETAZFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void hide()
hide TAZ frame
void processEdgeSelection(const std::vector< GNEEdge * > &edges)
process selection of edges in view net
TAZSaveChanges * getTAZSaveChangesModul() const
get TAZ Save Changes modul
TAZChildDefaultParameters * myTAZChildDefaultParameters
TAZ child defaults parameters.
class used to group all variables related with objects under cursor after a click over view
A point in 2D or 3D with translation and scaling methods.
struct for edges and the source/sink colors
TAZCurrent * myTAZCurrentParent
pointer to TAZCurrentParent
int sourceColor
color by source [0-9]
int sourceMinusSinkColor
color by source - sink [0-9]
int sinkColor
color by sink [0-9]
int sourcePlusSinkColor
color by source + sink [0-9]
TAZEdge(TAZCurrent *TAZCurrentParent, GNEEdge *_edge, GNETAZSourceSink *_TAZSource, GNETAZSourceSink *_TAZSink)
constructor
void updateColors()
update colors
GNETAZSourceSink * TAZSink
@brif sink TAZ
~TAZEdge()
destructor (needed because RGBColors has to be deleted)
GNETAZSourceSink * TAZSource
source TAZ