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