55 myTAZRelDataFrame(TAZRelDataFrame) {
57 myConfirmTAZButton->disable();
59 myClearTAZButton->disable();
68 myTAZRelDataFrame->buildTAZRelationData();
75 if (myTAZRelDataFrame->myFirstTAZ && myTAZRelDataFrame->mySecondTAZ) {
76 myConfirmTAZButton->enable();
78 myConfirmTAZButton->disable();
80 if (myTAZRelDataFrame->myFirstTAZ || myTAZRelDataFrame->mySecondTAZ) {
81 myClearTAZButton->enable();
83 myClearTAZButton->disable();
91 myTAZRelDataFrame->clearTAZSelection();
92 myTAZRelDataFrame->getViewNet()->update();
102 myFromTAZLabel(nullptr),
103 myToTAZLabel(nullptr) {
120 myFromTAZLabel->setText((
"From TAZ: " + fromTAZ->
getID()).c_str());
122 myFromTAZLabel->setText(
TL(
"From TAZ"));
126 myToTAZLabel->setText((
"To TAZ: " + toTAZ->
getID()).c_str());
128 myToTAZLabel->setText(
TL(
"To TAZ"));
194 delete dataIntervalObject;
FXDEFMAP(GNETAZRelDataFrame::ConfirmTAZRelation) ConfirmTAZRelationMap[]
@ MID_GNE_CREATE
create element
@ MID_GNE_ABORT
abort lane path creation
#define GUIDesignLabel(justify)
#define WRITE_WARNINGF(...)
@ SUMO_TAG_TAZREL
a relation between two TAZs
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_END
weights: time range end
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void addDoubleAttribute(const SumoXMLAttr attr, const double value)
add double attribute into current SumoBaseObject node
void addStringAttribute(const SumoXMLAttr attr, const std::string &value)
add string attribute into current SumoBaseObject node
An Element which don't belong to GNENet but has influence in the simulation.
const std::string getID() const
get ID (all Attribute Carriers have one)
void buildTAZRelationData(const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &fromTAZID, const std::string &toTAZID, const Parameterised::Map ¶meters)
Builds TAZRelationData.
double getAttributeDouble(SumoXMLAttr key) const
bool TAZRelExists(const GNEAdditional *TAZ) const
check if there is already a TAZRel defined in one TAZ
bool areAttributesValid() const
check if current attributes are valid
const Parameterised::Map & getParametersMap() const
get parameters as map
GNEViewNet * myViewNet
FOX need this.
GNEDataInterval * getDataInterval() const
get current select data set ID
GNEFrameAttributeModules::GenericDataAttributes * myGenericDataAttributes
parameters editor creator
IntervalSelector * myIntervalSelector
interval selector modul
long onCmdConfirmTAZRelation(FXObject *, FXSelector, void *)
called when user press confirm TAZ Relation button
~ConfirmTAZRelation()
destructor
long onUpdConfirmTAZRelation(FXObject *, FXSelector, void *)
called when TAZ Relation button is updated
long onCmdClearSelection(FXObject *, FXSelector, void *)
called when user press clear TAZ Relation button
void setLabels(const GNETAZ *fromTAZ, const GNETAZ *toTAZ)
set labels
FXLabel * myToTAZLabel
to TAZ Label
FXLabel * myFromTAZLabel
from TAZ label
Legend(GNETAZRelDataFrame *TAZRelDataFrame)
constructor
GNETAZ * mySecondTAZ
first selected TAZ Element
bool setTAZ(const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
set clicked TAZ
void buildTAZRelationData()
build TAZRelation data
~GNETAZRelDataFrame()
Destructor.
GNETAZRelDataFrame::Legend * myLegend
TAZRel legend.
GNEAdditional * getSecondTAZ() const
get first selected TAZ Element
GNETAZRelDataFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
void clearTAZSelection()
clear TAZ selection
GNETAZRelDataFrame::ConfirmTAZRelation * myConfirmTAZRelation
confirm TAZ Relation
GNETAZ * myFirstTAZ
first selected TAZ Element
GNEAdditional * getFirstTAZ() const
get first selected TAZ Element
class used to group all variables related with objects under cursor after a click over view
GNETAZ * getTAZFront() const
get front TAZ or a pointer to nullptr
GNENet * getNet() const
get the net object
A single child window which contains a view of the simulation area.
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
MFXGroupBoxModule (based on FXGroupBox)
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
static const RGBColor GREEN
static const RGBColor MAGENTA