Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPlanCreator.h>
Data Structures | |
class | PlanPath |
FOX-declaration. More... | |
Public Types | |
enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
GroupBoxModule options. More... | |
Public Member Functions | |
void | abortPathCreation () |
abort path creation | |
bool | addEdge (GNELane *lane) |
add edge (clicking over lanes) | |
bool | addJunction (GNEJunction *junction) |
add junction | |
bool | addRoute (GNEDemandElement *route) |
add route | |
bool | addStoppingPlace (GNEAdditional *stoppingPlace) |
add from to stoppingPlace | |
bool | addTAZ (GNEAdditional *taz) |
add TAZ | |
void | drawTemporalRoute (const GUIVisualizationSettings &s) const |
draw temporal route | |
double | getClickedPositionOverLane () const |
get clicked position over lane | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
const std::vector< PlanPath > & | getPath () const |
get path route | |
const CommonXMLStructure::PlanParameters & | getPlanParameteres () const |
get plan parameters | |
GNEPlanCreator (GNEFrame *frameParent, GNEPathManager *pathManager) | |
default constructor | |
void | hidePathCreatorModule () |
show GNEPlanCreator | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule | |
long | onCmdExtendButton (FXObject *, FXSelector, void *) |
extends GroupBoxModule | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents | |
long | onCmdResetButton (FXObject *, FXSelector, void *) |
reset GroupBoxModule | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents | |
long | onPaint (FXObject *, FXSelector, void *) |
draw MFXGroupBoxModule | |
long | onUpdResetButton (FXObject *, FXSelector, void *) |
update reset GroupBoxModule | |
bool | planCanBeCreated (const GNEDemandElement *planTemplate) const |
check if plan can be created | |
void | removeLastElement () |
remove path element | |
void | setText (const std::string &text) |
set text | |
void | showPlanCreatorModule (const GNEPlanSelector *planSelector, const GNEDemandElement *previousPlan) |
show plan creator for the given tag property | |
~GNEPlanCreator () | |
destructor | |
FOX-callbacks | |
Called when the user click over button "Finish route creation" | |
long | onCmdCreatePath (FXObject *, FXSelector, void *) |
long | onCmdUseLastRoute (FXObject *, FXSelector, void *) |
Called when the user click over button "Use last route". | |
long | onUpdUseLastRoute (FXObject *, FXSelector, void *) |
Called when update button "Use last route". | |
long | onCmdAbortPathCreation (FXObject *, FXSelector, void *) |
Called when the user click over button "Abort route creation". | |
long | onCmdRemoveLastElement (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove las inserted edge". | |
Protected Types | |
enum | PlanParents { CONSECUTIVE_EDGES = 1 << 0 , ROUTE = 1 << 1 , EDGE = 1 << 2 , STOPPINGPLACE = 1 << 3 , START_EDGE = 1 << 4 , START_TAZ = 1 << 5 , START_JUNCTION = 1 << 6 , START_STOPPINGPLACE = 1 << 7 , END_EDGE = 1 << 8 , END_TAZ = 1 << 9 , END_JUNCTION = 1 << 10 , END_STOPPINGPLACE = 1 << 11 } |
FOX need this. More... | |
Protected Member Functions | |
void | clearPath () |
clear edges | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) | |
void | recalculatePath () |
recalculate path | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) | |
void | toggleSaveButton (const bool value) |
enable or disable save buttons | |
Protected Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation | |
double | myClickedPositionOverLane = 0 |
clicked position over lane | |
FXButton * | myFinishCreationButton |
button for finish route creation | |
GNEFrame * | myFrameParent |
current frame parent | |
FXLabel * | myInfoLabel |
info label | |
std::vector< PlanPath > | myPath |
vector with current path | |
GNEPathManager * | myPathManager |
path manager used in this plan creator | |
CommonXMLStructure::PlanParameters | myPlanParameteres |
plan parameters | |
int | myPlanParents |
allowed plan parents | |
const GNEDemandElement * | myPreviousPlanElement = nullptr |
previous person plan element | |
FXButton * | myRemoveLastInsertedElement |
button for removing last inserted element | |
FXButton * | myUseLastRoute |
button for use last inserted route | |
SUMOVehicleClass | myVClass |
current vClass | |
Private Member Functions | |
bool | addConsecutiveEdge (GNEEdge *edge) |
add consecutive edge | |
bool | addFromToEdge (GNEEdge *edge) |
add from to edge | |
bool | addFromToJunction (GNEJunction *junction) |
add junction | |
bool | addFromToStoppingPlace (GNEAdditional *stoppingPlace) |
add from to stoppingPlace | |
bool | addFromToTAZ (GNEAdditional *taz) |
add TAZ | |
bool | addSingleEdge (GNELane *lane) |
add edge | |
bool | addSingleStoppingPlace (GNEAdditional *stoppingPlace) |
add stoppingPlace | |
int | getNumberOfSelectedElements () const |
get number of selected elements | |
GNEPlanCreator (GNEPlanCreator *)=delete | |
Invalidated copy constructor. | |
void | hideCreationButtons () |
hide creation buttons | |
GNEPlanCreator & | operator= (GNEPlanCreator *)=delete |
Invalidated assignment operator. | |
void | showCreationButtons () |
show creation buttons | |
void | updateInfoLabel () |
update info label | |
void | updateRemoveLastItemButton () const |
check if enable remove last item button | |
Private Attributes | |
FXVerticalFrame * | myCollapsableFrame = nullptr |
vertical collapsable frame | |
FXButton * | myCollapseButton = nullptr |
button for collapse elements | |
bool | myCollapsed |
flag to check if this groupbox is collapsed | |
MFXButtonTooltip * | myExtendButton = nullptr |
button for extend elements | |
FXLabel * | myLabel = nullptr |
label used in non collapsable MFXGroupBoxModule | |
FXButton * | myLoadButton = nullptr |
button for load elements | |
const int | myOptions |
GroupBoxModule options. | |
FXButton * | myResetWidthButton = nullptr |
button for reset frame width | |
FXButton * | mySaveButton = nullptr |
button for save elements | |
Definition at line 36 of file GNEPlanCreator.h.
|
inherited |
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
EXTENSIBLE | |
SAVE | |
LOAD |
Definition at line 38 of file MFXGroupBoxModule.h.
|
protected |
FOX need this.
Enumerator | |
---|---|
CONSECUTIVE_EDGES | |
ROUTE | |
EDGE | |
STOPPINGPLACE | |
START_EDGE | |
START_TAZ | |
START_JUNCTION | |
START_STOPPINGPLACE | |
END_EDGE | |
END_TAZ | |
END_JUNCTION | |
END_STOPPINGPLACE |
Definition at line 158 of file GNEPlanCreator.h.
GNEPlanCreator::GNEPlanCreator | ( | GNEFrame * | frameParent, |
GNEPathManager * | pathManager | ||
) |
default constructor
Definition at line 155 of file GNEPlanCreator.cpp.
References GUIDesigns::buildFXButton(), MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_PATHCREATOR_ABORT, MID_GNE_PATHCREATOR_FINISH, MID_GNE_PATHCREATOR_REMOVELAST, MID_GNE_PATHCREATOR_USELASTROUTE, myAbortCreationButton, myFinishCreationButton, myInfoLabel, myRemoveLastInsertedElement, myUseLastRoute, ROUTE, and TL.
GNEPlanCreator::~GNEPlanCreator | ( | ) |
destructor
Definition at line 178 of file GNEPlanCreator.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEPlanCreator::abortPathCreation | ( | ) |
abort path creation
Definition at line 468 of file GNEPlanCreator.cpp.
References clearPath(), GNEApplicationWindow::enableUndoRedoTemporally(), GNEViewParent::getGNEAppWindows(), getNumberOfSelectedElements(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, and GNEViewNet::updateViewNet().
Referenced by GNEViewNet::abortOperation(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), onCmdAbortPathCreation(), and showPlanCreatorModule().
|
private |
add consecutive edge
Definition at line 755 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::consecutiveEdges, GNEAttributeCarrier::getID(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addEdge().
bool GNEPlanCreator::addEdge | ( | GNELane * | lane | ) |
add edge (clicking over lanes)
Definition at line 313 of file GNEPlanCreator.cpp.
References addConsecutiveEdge(), addFromToEdge(), addSingleEdge(), CONSECUTIVE_EDGES, EDGE, END_EDGE, GNELane::getParentEdge(), myPlanParents, and START_EDGE.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
|
private |
add from to edge
Definition at line 847 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::fromEdge, GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, CommonXMLStructure::PlanParameters::toEdge, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addEdge(), and showPlanCreatorModule().
|
private |
add junction
Definition at line 779 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::fromJunction, GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, CommonXMLStructure::PlanParameters::toJunction, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addJunction(), and showPlanCreatorModule().
|
private |
add from to stoppingPlace
Definition at line 882 of file GNEPlanCreator.cpp.
References GNEApplicationWindow::disableUndoRedoTemporally(), CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTrainStop, GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myPlanParameteres, recalculatePath(), SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, SUMO_TAG_TRAIN_STOP, TL, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTrainStop, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addStoppingPlace(), and showPlanCreatorModule().
|
private |
add TAZ
Definition at line 813 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::fromTAZ, getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TAZ, TL, CommonXMLStructure::PlanParameters::toTAZ, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addTAZ(), and showPlanCreatorModule().
bool GNEPlanCreator::addJunction | ( | GNEJunction * | junction | ) |
add junction
Definition at line 328 of file GNEPlanCreator.cpp.
References addFromToJunction(), END_JUNCTION, myPlanParents, and START_JUNCTION.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
bool GNEPlanCreator::addRoute | ( | GNEDemandElement * | route | ) |
add route
Definition at line 300 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), GNEAttributeCarrier::getID(), myFrameParent, myPlanParameteres, myPlanParents, ROUTE, and CommonXMLStructure::PlanParameters::toRoute.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
|
private |
add edge
Definition at line 715 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), GNEAttributeCarrier::getID(), GNELane::getLaneShape(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GNEFrame::getViewNet(), myClickedPositionOverLane, myFrameParent, myPlanParameteres, PositionVector::nearest_offset_to_point2D(), and CommonXMLStructure::PlanParameters::toEdge.
Referenced by addEdge().
|
private |
add stoppingPlace
Definition at line 727 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFrameParent, myPlanParameteres, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, SUMO_TAG_TRAIN_STOP, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toParkingArea, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by addStoppingPlace().
bool GNEPlanCreator::addStoppingPlace | ( | GNEAdditional * | stoppingPlace | ) |
add from to stoppingPlace
Definition at line 348 of file GNEPlanCreator.cpp.
References addFromToStoppingPlace(), addSingleStoppingPlace(), END_STOPPINGPLACE, myPlanParents, START_STOPPINGPLACE, and STOPPINGPLACE.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
bool GNEPlanCreator::addTAZ | ( | GNEAdditional * | taz | ) |
add TAZ
Definition at line 338 of file GNEPlanCreator.cpp.
References addFromToTAZ(), END_TAZ, myPlanParents, and START_TAZ.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
|
protected |
clear edges
Definition at line 571 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::clear(), myClickedPositionOverLane, myPath, and myPlanParameteres.
Referenced by abortPathCreation(), and hidePathCreatorModule().
void GNEPlanCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 378 of file GNEPlanCreator.cpp.
References GUIVisualizationSettings::candidateColorSettings, GUIVisualizationCandidateColorSettings::conflict, Position::distanceTo2D(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GNELane2laneConnection::exist(), CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromTAZ, GNENet::getAttributeCarriers(), GNELane::getLane2laneConnections(), GNELane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GNEViewNet::getNet(), GUIGeometry::getShape(), GNEPlanCreator::PlanPath::getSubPath(), GNEFrame::getViewNet(), GLO_MAX, RGBColor::GREY, GNEPlanCreator::PlanPath::isConflictDisconnected(), GNEPlanCreator::PlanPath::isConflictVClass(), M_PI, myFrameParent, myPath, myPlanParameteres, RGBColor::ORANGE, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), GUIVisualizationCandidateColorSettings::special, SUMO_TAG_TAZ, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toTAZ, Position::x(), and Position::y().
Referenced by GNEViewNet::doPaintGL().
double GNEPlanCreator::getClickedPositionOverLane | ( | ) | const |
get clicked position over lane
Definition at line 366 of file GNEPlanCreator.cpp.
References myClickedPositionOverLane.
Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 123 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
|
private |
get number of selected elements
Definition at line 641 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::getNumberOfDefinedParameters(), and myPlanParameteres.
Referenced by abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and updateRemoveLastItemButton().
const std::vector< GNEPlanCreator::PlanPath > & GNEPlanCreator::getPath | ( | ) | const |
const CommonXMLStructure::PlanParameters & GNEPlanCreator::getPlanParameteres | ( | ) | const |
get plan parameters
Definition at line 360 of file GNEPlanCreator.cpp.
References myPlanParameteres.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), GNEEdge::checkDrawFromContour(), GNEJunction::checkDrawFromContour(), GNEAdditional::checkDrawToContour(), GNEEdge::checkDrawToContour(), and GNEJunction::checkDrawToContour().
|
private |
hide creation buttons
Definition at line 673 of file GNEPlanCreator.cpp.
References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.
Referenced by showPlanCreatorModule().
void GNEPlanCreator::hidePathCreatorModule | ( | ) |
show GNEPlanCreator
Definition at line 291 of file GNEPlanCreator.cpp.
References clearPath().
Referenced by GNEContainerFrame::demandElementSelected(), GNEContainerPlanFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 231 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
long GNEPlanCreator::onCmdAbortPathCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Abort route creation".
Definition at line 555 of file GNEPlanCreator.cpp.
References abortPathCreation().
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 142 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
long GNEPlanCreator::onCmdCreatePath | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 532 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), and myFrameParent.
Referenced by FXDEFMAP(), and GNEViewNet::hotkeyEnter().
|
inherited |
extends GroupBoxModule
Definition at line 158 of file MFXGroupBoxModule.cpp.
References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 212 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
long GNEPlanCreator::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted edge".
Definition at line 563 of file GNEPlanCreator.cpp.
References removeLastElement().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 184 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 206 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
long GNEPlanCreator::onCmdUseLastRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Use last route".
Definition at line 539 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), and myFrameParent.
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 129 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 193 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
long GNEPlanCreator::onUpdUseLastRoute | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Called when update button "Use last route".
Definition at line 546 of file GNEPlanCreator.cpp.
References GNEViewNet::getLastCreatedRoute(), GNEFrame::getViewNet(), myFrameParent, myPlanParents, and ROUTE.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
bool GNEPlanCreator::planCanBeCreated | ( | const GNEDemandElement * | planTemplate | ) | const |
check if plan can be created
Definition at line 182 of file GNEPlanCreator.cpp.
References GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEAttributeCarrier::getTagProperty(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNETagProperties::isPlanPersonTrip(), GNETagProperties::isPlanRide(), GNETagProperties::isPlanStopContainer(), GNETagProperties::isPlanStopPerson(), GNETagProperties::isPlanTranship(), GNETagProperties::isPlanTransport(), GNETagProperties::isPlanWalk(), myPlanParameteres, and SUMO_TAG_NOTHING.
Referenced by GNEContainerFrame::createPath(), and GNEPersonFrame::createPath().
|
protected |
recalculate path
Definition at line 581 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTrainStop, GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEHierarchicalElement::getParentLanes(), GNEFrame::getViewNet(), myFrameParent, myPath, myPathManager, myPlanParameteres, myVClass, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, SUMO_TAG_TRAIN_STOP, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().
void GNEPlanCreator::removeLastElement | ( | ) |
remove path element
Definition at line 486 of file GNEPlanCreator.cpp.
References CommonXMLStructure::PlanParameters::consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, myPlanParameteres, myRemoveLastInsertedElement, recalculatePath(), CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTAZ, CommonXMLStructure::PlanParameters::toTrainStop, and updateRemoveLastItemButton().
Referenced by GNEViewNet::hotkeyBackSpace(), and onCmdRemoveLastElement().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 224 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
|
inherited |
set text
Definition at line 117 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETLSEditorFrame::TLSDefinition::onCmdDefSwitchTLSProgram(), GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
private |
show creation buttons
Definition at line 665 of file GNEPlanCreator.cpp.
References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.
Referenced by showPlanCreatorModule().
void GNEPlanCreator::showPlanCreatorModule | ( | const GNEPlanSelector * | planSelector, |
const GNEDemandElement * | previousPlan | ||
) |
show plan creator for the given tag property
Definition at line 206 of file GNEPlanCreator.cpp.
References abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), CONSECUTIVE_EDGES, EDGE, END_EDGE, END_JUNCTION, END_STOPPINGPLACE, END_TAZ, GNEPlanSelector::getCurrentPlanTagProperties(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagProperty(), hideCreationButtons(), myPlanParents, myPreviousPlanElement, myUseLastRoute, myVClass, ROUTE, showCreationButtons(), START_EDGE, START_JUNCTION, START_STOPPINGPLACE, START_TAZ, STOPPINGPLACE, SVC_PASSENGER, SVC_PEDESTRIAN, and updateInfoLabel().
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
|
protectedinherited |
enable or disable save buttons
Definition at line 238 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
|
private |
update info label
Definition at line 681 of file GNEPlanCreator.cpp.
References CONSECUTIVE_EDGES, EDGE, END_EDGE, END_JUNCTION, END_STOPPINGPLACE, END_TAZ, myInfoLabel, myPlanParents, ROUTE, START_EDGE, START_JUNCTION, START_STOPPINGPLACE, START_TAZ, STOPPINGPLACE, and TL.
Referenced by showPlanCreatorModule().
|
private |
check if enable remove last item button
Definition at line 647 of file GNEPlanCreator.cpp.
References getNumberOfSelectedElements(), myPreviousPlanElement, and myRemoveLastInsertedElement.
Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().
|
protected |
button for abort route creation
Definition at line 210 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), GNEPlanCreator(), hideCreationButtons(), and showCreationButtons().
|
protected |
clicked position over lane
Definition at line 198 of file GNEPlanCreator.h.
Referenced by addSingleEdge(), clearPath(), and getClickedPositionOverLane().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
protected |
button for finish route creation
Definition at line 207 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), GNEPlanCreator(), hideCreationButtons(), and showCreationButtons().
|
protected |
current frame parent
Definition at line 180 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addFromToStoppingPlace(), addRoute(), addSingleEdge(), addSingleStoppingPlace(), drawTemporalRoute(), onCmdCreatePath(), onCmdUseLastRoute(), onUpdUseLastRoute(), and recalculatePath().
|
protected |
info label
Definition at line 216 of file GNEPlanCreator.h.
Referenced by GNEPlanCreator(), and updateInfoLabel().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
protected |
vector with current path
Definition at line 201 of file GNEPlanCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), and recalculatePath().
|
protected |
path manager used in this plan creator
Definition at line 183 of file GNEPlanCreator.h.
Referenced by recalculatePath().
|
protected |
plan parameters
Definition at line 195 of file GNEPlanCreator.h.
Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), addRoute(), addSingleEdge(), addSingleStoppingPlace(), clearPath(), drawTemporalRoute(), getNumberOfSelectedElements(), getPlanParameteres(), planCanBeCreated(), recalculatePath(), and removeLastElement().
|
protected |
allowed plan parents
Definition at line 189 of file GNEPlanCreator.h.
Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), addTAZ(), onUpdUseLastRoute(), showPlanCreatorModule(), and updateInfoLabel().
|
protected |
previous person plan element
Definition at line 192 of file GNEPlanCreator.h.
Referenced by showPlanCreatorModule(), and updateRemoveLastItemButton().
|
protected |
button for removing last inserted element
Definition at line 213 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), GNEPlanCreator(), hideCreationButtons(), removeLastElement(), showCreationButtons(), and updateRemoveLastItemButton().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
protected |
button for use last inserted route
Definition at line 204 of file GNEPlanCreator.h.
Referenced by GNEPlanCreator(), and showPlanCreatorModule().
|
protected |
current vClass
Definition at line 186 of file GNEPlanCreator.h.
Referenced by recalculatePath(), and showPlanCreatorModule().