![]() |
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 More... | |
bool | addEdge (GNELane *lane) |
add edge (clicking over lanes) More... | |
bool | addJunction (GNEJunction *junction) |
add junction More... | |
bool | addRoute (GNEDemandElement *route) |
add route More... | |
bool | addStoppingPlace (GNEAdditional *stoppingPlace) |
add from to stoppingPlace More... | |
bool | addTAZ (GNEAdditional *taz) |
add TAZ More... | |
void | drawTemporalRoute (const GUIVisualizationSettings &s) const |
draw temporal route More... | |
GNEAdditional * | getBusStop () const |
get busStop More... | |
double | getClickedPositionOverLane () const |
get clicked position over lane More... | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toggled) More... | |
const std::vector< std::string > | getConsecutiveEdgeIDs () const |
get consecutive edge IDs More... | |
const std::vector< GNEEdge * > | getConsecutiveEdges () const |
get consecutive edge More... | |
GNEAdditional * | getContainerStop () const |
get containerStop More... | |
GNEEdge * | getEdge () const |
get edge More... | |
GNEAdditional * | getFromBusStop () const |
get from bus stop More... | |
GNEAdditional * | getFromContainerStop () const |
get from container stop More... | |
GNEEdge * | getFromEdge () const |
get from edge More... | |
GNEJunction * | getFromJunction () const |
get from junction More... | |
GNEAdditional * | getFromTAZ () const |
get from TAZ More... | |
GNEAdditional * | getFromTrainStop () const |
get from train stop More... | |
const std::vector< PlanPath > & | getPath () const |
get path route More... | |
GNEDemandElement * | getRoute () const |
get route More... | |
GNEAdditional * | getToBusStop () const |
get to bus stop More... | |
GNEAdditional * | getToContainerStop () const |
get to container stop More... | |
GNEEdge * | getToEdge () const |
get to edge More... | |
GNEJunction * | getToJunction () const |
get to junction More... | |
GNEAdditional * | getToTAZ () const |
get to TAZ More... | |
GNEAdditional * | getToTrainStop () const |
get to train stop More... | |
GNEAdditional * | getTrainStop () const |
get trainStop More... | |
GNEPlanCreator (GNEFrame *frameParent) | |
default constructor More... | |
void | hidePathCreatorModule () |
show GNEPlanCreator More... | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule More... | |
long | onCmdExtendButton (FXObject *, FXSelector, void *) |
extends GroupBoxModule More... | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents More... | |
long | onCmdResetButton (FXObject *, FXSelector, void *) |
reset GroupBoxModule More... | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents More... | |
long | onPaint (FXObject *, FXSelector, void *) |
draw MFXGroupBoxModule More... | |
long | onUpdResetButton (FXObject *, FXSelector, void *) |
update reset GroupBoxModule More... | |
bool | planCanBeCreated (const GNEDemandElement *planTemplate) const |
check if plan can be created More... | |
void | removeLastElement () |
remove path element More... | |
void | setText (const std::string &text) |
set text More... | |
void | showPlanCreatorModule (const GNEPlanSelector *planSelector, const GNEDemandElement *previousPlan) |
show plan creator for the given tag property More... | |
~GNEPlanCreator () | |
destructor More... | |
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". More... | |
long | onUpdUseLastRoute (FXObject *, FXSelector, void *) |
Called when update button "Use last route". More... | |
long | onCmdAbortPathCreation (FXObject *, FXSelector, void *) |
Called when the user click over button "Abort route creation". More... | |
long | onCmdRemoveLastElement (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove las inserted edge". More... | |
Protected Types | |
enum | PlanParents { CONSECUTIVE_EDGES = 1 << 0 , ROUTE = 1 << 1 , EDGE = 1 << 2 , BUSSTOP = 1 << 3 , TRAINSTOP = 1 << 4 , CONTAINERSTOP = 1 << 5 , START_EDGE = 1 << 6 , START_TAZ = 1 << 7 , START_JUNCTION = 1 << 8 , START_BUSSTOP = 1 << 9 , START_TRAINSTOP = 1 << 10 , START_CONTAINERSTOP = 1 << 11 , END_EDGE = 1 << 12 , END_TAZ = 1 << 13 , END_JUNCTION = 1 << 14 , END_BUSSTOP = 1 << 15 , END_TRAINSTOP = 1 << 16 , END_CONTAINERSTOP = 1 << 17 } |
FOX need this. More... | |
Protected Member Functions | |
void | clearPath () |
clear edges More... | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) More... | |
void | recalculatePath () |
recalculate path More... | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) More... | |
void | toggleSaveButton (const bool value) |
enable or disable save buttons More... | |
Protected Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
double | myClickedPositionOverLane = 0 |
clicked position over lane More... | |
std::vector< GNEEdge * > | myConsecutiveEdges |
vector with consecutive edges More... | |
GNEEdge * | myEdge = nullptr |
ege More... | |
FXButton * | myFinishCreationButton |
button for finish route creation More... | |
GNEFrame * | myFrameParent |
current frame parent More... | |
GNEEdge * | myFromEdge = nullptr |
from edge More... | |
GNEJunction * | myFromJunction = nullptr |
from junction More... | |
GNEAdditional * | myFromStoppingPlace = nullptr |
from StoppingPlace More... | |
GNEAdditional * | myFromTAZ = nullptr |
from TAZ More... | |
FXLabel * | myInfoLabel |
info label More... | |
std::vector< PlanPath > | myPath |
vector with current path More... | |
int | myPlanParents |
allowed plan parents More... | |
const GNEDemandElement * | myPreviousPlanElement = nullptr |
previous person plan element More... | |
FXButton * | myRemoveLastInsertedElement |
button for removing last inserted element More... | |
GNEDemandElement * | myRoute = nullptr |
route More... | |
GNEAdditional * | myStoppingPlace = nullptr |
stoppingPlace More... | |
GNEEdge * | myToEdge = nullptr |
to edge More... | |
GNEJunction * | myToJunction = nullptr |
to junction More... | |
GNEAdditional * | myToStoppingPlace = nullptr |
to StoppingPlace More... | |
GNEAdditional * | myToTAZ = nullptr |
to TAZ More... | |
FXButton * | myUseLastRoute |
button for use last inserted route More... | |
SUMOVehicleClass | myVClass |
current vClass More... | |
Private Member Functions | |
bool | addConsecutiveEdge (GNEEdge *edge) |
add consecutive edge More... | |
bool | addFromToEdge (GNEEdge *edge) |
add from to edge More... | |
bool | addFromToJunction (GNEJunction *junction) |
add junction More... | |
bool | addFromToStoppingPlace (GNEAdditional *stoppingPlace) |
add from to stoppingPlace More... | |
bool | addFromToTAZ (GNEAdditional *taz) |
add TAZ More... | |
bool | addSingleEdge (GNELane *lane) |
add edge More... | |
bool | addSingleStoppingPlace (GNEAdditional *stoppingPlace) |
add stoppingPlace More... | |
int | getNumberOfSelectedElements () const |
get number of selected elements More... | |
GNEPlanCreator (GNEPlanCreator *)=delete | |
Invalidated copy constructor. More... | |
void | hideCreationButtons () |
hide creation buttons More... | |
GNEPlanCreator & | operator= (GNEPlanCreator *)=delete |
Invalidated assignment operator. More... | |
void | showCreationButtons () |
show creation buttons More... | |
void | updateInfoLabel () |
update info label More... | |
void | updateRemoveLastItemButton () const |
check if enable remove last item button More... | |
Private Attributes | |
FXVerticalFrame * | myCollapsableFrame = nullptr |
vertical collapsable frame More... | |
FXButton * | myCollapseButton = nullptr |
button for collapse elements More... | |
bool | myCollapsed |
flag to check if this groupbox is collapsed More... | |
MFXButtonTooltip * | myExtendButton = nullptr |
button for extend elements More... | |
FXLabel * | myLabel = nullptr |
label used in non collapsable MFXGroupBoxModule More... | |
FXButton * | myLoadButton = nullptr |
button for load elements More... | |
const int | myOptions |
GroupBoxModule options. More... | |
FXButton * | myResetWidthButton = nullptr |
button for reset frame width More... | |
FXButton * | mySaveButton = nullptr |
button for save elements More... | |
Definition at line 35 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.
Definition at line 211 of file GNEPlanCreator.h.
GNEPlanCreator::GNEPlanCreator | ( | GNEFrame * | frameParent | ) |
default constructor
Definition at line 154 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 176 of file GNEPlanCreator.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEPlanCreator::abortPathCreation | ( | ) |
abort path creation
Definition at line 662 of file GNEPlanCreator.cpp.
References clearPath(), GNEApplicationWindow::enableUndoRedo(), 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 920 of file GNEPlanCreator.cpp.
References myAbortCreationButton, myConsecutiveEdges, myFinishCreationButton, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addEdge().
bool GNEPlanCreator::addEdge | ( | GNELane * | lane | ) |
add edge (clicking over lanes)
Definition at line 350 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 1012 of file GNEPlanCreator.cpp.
References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromEdge, myToEdge, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addEdge(), and showPlanCreatorModule().
|
private |
add junction
Definition at line 944 of file GNEPlanCreator.cpp.
References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromJunction, myToJunction, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addJunction(), and showPlanCreatorModule().
|
private |
add from to stoppingPlace
Definition at line 1047 of file GNEPlanCreator.cpp.
References GNEApplicationWindow::disableUndoRedo(), GNEViewParent::getGNEAppWindows(), getNumberOfSelectedElements(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myFromStoppingPlace, myRemoveLastInsertedElement, myToStoppingPlace, recalculatePath(), TL, and WRITE_WARNING.
Referenced by addStoppingPlace(), and showPlanCreatorModule().
|
private |
add TAZ
Definition at line 978 of file GNEPlanCreator.cpp.
References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromTAZ, myToTAZ, recalculatePath(), TAZ, TL, updateRemoveLastItemButton(), and WRITE_WARNING.
Referenced by addTAZ(), and showPlanCreatorModule().
bool GNEPlanCreator::addJunction | ( | GNEJunction * | junction | ) |
add junction
Definition at line 365 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 337 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), myFrameParent, myPlanParents, myRoute, and ROUTE.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
|
private |
add edge
Definition at line 899 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), GNELane::getLaneShape(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GNEFrame::getViewNet(), myClickedPositionOverLane, myEdge, myFrameParent, and PositionVector::nearest_offset_to_point2D().
Referenced by addEdge().
|
private |
add stoppingPlace
Definition at line 911 of file GNEPlanCreator.cpp.
References GNEFrame::createPath(), myFrameParent, and myStoppingPlace.
Referenced by addStoppingPlace().
bool GNEPlanCreator::addStoppingPlace | ( | GNEAdditional * | stoppingPlace | ) |
add from to stoppingPlace
Definition at line 385 of file GNEPlanCreator.cpp.
References addFromToStoppingPlace(), addSingleStoppingPlace(), BUSSTOP, CONTAINERSTOP, END_BUSSTOP, END_CONTAINERSTOP, END_TRAINSTOP, GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myPlanParents, START_BUSSTOP, START_CONTAINERSTOP, START_TRAINSTOP, SUMO_TAG_BUS_STOP, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_TRAIN_STOP, and TRAINSTOP.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
bool GNEPlanCreator::addTAZ | ( | GNEAdditional * | taz | ) |
add TAZ
Definition at line 375 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 749 of file GNEPlanCreator.cpp.
References myClickedPositionOverLane, myConsecutiveEdges, myEdge, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myPath, myRoute, myStoppingPlace, myToEdge, myToJunction, myToStoppingPlace, and myToTAZ.
Referenced by abortPathCreation(), and hidePathCreatorModule().
void GNEPlanCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 573 of file GNEPlanCreator.cpp.
References GUIVisualizationSettings::candidateColorSettings, GUIVisualizationCandidateColorSettings::conflict, Position::distanceTo2D(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GNELane2laneConnection::exist(), GNELane::getLane2laneConnections(), GNELane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GNEJunction::getPositionInView(), GNEAdditional::getPositionInView(), GUIGeometry::getShape(), GNEPlanCreator::PlanPath::getSubPath(), GLO_MAX, RGBColor::GREY, GNEPlanCreator::PlanPath::isConflictDisconnected(), GNEPlanCreator::PlanPath::isConflictVClass(), M_PI, myFromJunction, myFromTAZ, myPath, myToJunction, myToTAZ, RGBColor::ORANGE, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), GUIVisualizationCandidateColorSettings::special, Position::x(), and Position::y().
Referenced by GNEViewNet::doPaintGL().
GNEAdditional * GNEPlanCreator::getBusStop | ( | ) | const |
get busStop
Definition at line 531 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_BUS_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().
double GNEPlanCreator::getClickedPositionOverLane | ( | ) | const |
get clicked position over lane
Definition at line 561 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 GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), 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(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), 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(), 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(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
const std::vector< std::string > GNEPlanCreator::getConsecutiveEdgeIDs | ( | ) | const |
get consecutive edge IDs
Definition at line 413 of file GNEPlanCreator.cpp.
References myConsecutiveEdges.
Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().
const std::vector< GNEEdge * > GNEPlanCreator::getConsecutiveEdges | ( | ) | const |
get consecutive edge
Definition at line 407 of file GNEPlanCreator.cpp.
References myConsecutiveEdges.
Referenced by GNEEdge::checkDrawFromContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getContainerStop | ( | ) | const |
get containerStop
Definition at line 551 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_CONTAINER_STOP.
Referenced by GNERouteHandler::buildContainerPlan(), and planCanBeCreated().
GNEEdge * GNEPlanCreator::getEdge | ( | ) | const |
get edge
Definition at line 525 of file GNEPlanCreator.cpp.
References myEdge.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getFromBusStop | ( | ) | const |
get from bus stop
Definition at line 459 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_BUS_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getFromContainerStop | ( | ) | const |
get from container stop
Definition at line 499 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_CONTAINER_STOP.
Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().
GNEEdge * GNEPlanCreator::getFromEdge | ( | ) | const |
get from edge
Definition at line 423 of file GNEPlanCreator.cpp.
References myFromEdge.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdge::checkDrawFromContour(), and planCanBeCreated().
GNEJunction * GNEPlanCreator::getFromJunction | ( | ) | const |
get from junction
Definition at line 435 of file GNEPlanCreator.cpp.
References myFromJunction.
Referenced by GNERouteHandler::buildPersonPlan(), GNEJunction::checkDrawFromContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getFromTAZ | ( | ) | const |
get from TAZ
Definition at line 447 of file GNEPlanCreator.cpp.
References myFromTAZ.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getFromTrainStop | ( | ) | const |
get from train stop
Definition at line 479 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_TRAIN_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().
|
private |
get number of selected elements
Definition at line 809 of file GNEPlanCreator.cpp.
References myConsecutiveEdges, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myToEdge, myToJunction, myToStoppingPlace, and myToTAZ.
Referenced by abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and updateRemoveLastItemButton().
const std::vector< GNEPlanCreator::PlanPath > & GNEPlanCreator::getPath | ( | ) | const |
GNEDemandElement * GNEPlanCreator::getRoute | ( | ) | const |
get route
Definition at line 519 of file GNEPlanCreator.cpp.
References myRoute.
Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getToBusStop | ( | ) | const |
get to bus stop
Definition at line 469 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_BUS_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getToContainerStop | ( | ) | const |
get to container stop
Definition at line 509 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_CONTAINER_STOP.
Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().
GNEEdge * GNEPlanCreator::getToEdge | ( | ) | const |
get to edge
Definition at line 429 of file GNEPlanCreator.cpp.
References myToEdge.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdge::checkDrawToContour(), and planCanBeCreated().
GNEJunction * GNEPlanCreator::getToJunction | ( | ) | const |
get to junction
Definition at line 441 of file GNEPlanCreator.cpp.
References myToJunction.
Referenced by GNERouteHandler::buildPersonPlan(), GNEJunction::checkDrawToContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getToTAZ | ( | ) | const |
get to TAZ
Definition at line 453 of file GNEPlanCreator.cpp.
References myToTAZ.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getToTrainStop | ( | ) | const |
get to train stop
Definition at line 489 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_TRAIN_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().
GNEAdditional * GNEPlanCreator::getTrainStop | ( | ) | const |
get trainStop
Definition at line 541 of file GNEPlanCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_TRAIN_STOP.
Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().
|
private |
hide creation buttons
Definition at line 849 of file GNEPlanCreator.cpp.
References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.
Referenced by showPlanCreatorModule().
void GNEPlanCreator::hidePathCreatorModule | ( | ) |
show GNEPlanCreator
Definition at line 328 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 733 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 710 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 741 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 717 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 724 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 180 of file GNEPlanCreator.cpp.
References getBusStop(), getConsecutiveEdges(), getContainerStop(), GNEDemandElementPlan::getContainerStopTagIcon(), getEdge(), getFromBusStop(), getFromContainerStop(), getFromEdge(), getFromJunction(), getFromTAZ(), getFromTrainStop(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), getRoute(), GNEAttributeCarrier::getTagProperty(), getToBusStop(), getToContainerStop(), getToEdge(), getToJunction(), getToTAZ(), getToTrainStop(), getTrainStop(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNETagProperties::isPersonTrip(), GNETagProperties::isPlanRide(), GNETagProperties::isPlanStopContainer(), GNETagProperties::isPlanStopPerson(), GNETagProperties::isPlanTranship(), GNETagProperties::isPlanTransport(), GNETagProperties::isPlanWalk(), and SUMO_TAG_NOTHING.
Referenced by GNEContainerFrame::createPath(), and GNEPersonFrame::createPath().
|
protected |
recalculate path
Definition at line 770 of file GNEPlanCreator.cpp.
References GNEHierarchicalElement::getParentLanes(), GNEFrame::getViewNet(), myConsecutiveEdges, myFrameParent, myFromEdge, myFromJunction, myFromStoppingPlace, myPath, myToEdge, myToJunction, myToStoppingPlace, and myVClass.
Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().
void GNEPlanCreator::removeLastElement | ( | ) |
remove path element
Definition at line 680 of file GNEPlanCreator.cpp.
References myConsecutiveEdges, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myRemoveLastInsertedElement, myToEdge, myToJunction, myToStoppingPlace, myToTAZ, recalculatePath(), and updateRemoveLastItemButton().
Referenced by GNEViewNet::hotkeyBackSpace(), and onCmdRemoveLastElement().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixNetworkElements::FixOptions, and GNEFixDemandElements::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 GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
private |
show creation buttons
Definition at line 841 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 225 of file GNEPlanCreator.cpp.
References abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), BUSSTOP, CONSECUTIVE_EDGES, CONTAINERSTOP, EDGE, END_BUSSTOP, END_CONTAINERSTOP, END_EDGE, END_JUNCTION, END_TAZ, END_TRAINSTOP, GNEPlanSelector::getCurrentPlanTagProperties(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEAttributeCarrier::getTagProperty(), hideCreationButtons(), myPlanParents, myPreviousPlanElement, myUseLastRoute, myVClass, ROUTE, showCreationButtons(), START_BUSSTOP, START_CONTAINERSTOP, START_EDGE, START_JUNCTION, START_TAZ, START_TRAINSTOP, SVC_PASSENGER, SVC_PEDESTRIAN, TRAINSTOP, 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 857 of file GNEPlanCreator.cpp.
References BUSSTOP, CONSECUTIVE_EDGES, CONTAINERSTOP, EDGE, END_BUSSTOP, END_CONTAINERSTOP, END_EDGE, END_JUNCTION, END_TAZ, END_TRAINSTOP, myInfoLabel, myPlanParents, ROUTE, START_BUSSTOP, START_CONTAINERSTOP, START_EDGE, START_JUNCTION, START_TAZ, START_TRAINSTOP, TL, and TRAINSTOP.
Referenced by showPlanCreatorModule().
|
private |
check if enable remove last item button
Definition at line 823 of file GNEPlanCreator.cpp.
References getNumberOfSelectedElements(), myPreviousPlanElement, and myRemoveLastInsertedElement.
Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToTAZ(), and removeLastElement().
|
protected |
button for abort route creation
Definition at line 299 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), GNEPlanCreator(), hideCreationButtons(), and showCreationButtons().
|
protected |
clicked position over lane
Definition at line 287 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().
|
protected |
vector with consecutive edges
Definition at line 251 of file GNEPlanCreator.h.
Referenced by addConsecutiveEdge(), clearPath(), getConsecutiveEdgeIDs(), getConsecutiveEdges(), getNumberOfSelectedElements(), recalculatePath(), and removeLastElement().
|
protected |
ege
Definition at line 281 of file GNEPlanCreator.h.
Referenced by addSingleEdge(), clearPath(), and getEdge().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
protected |
button for finish route creation
Definition at line 296 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), GNEPlanCreator(), hideCreationButtons(), and showCreationButtons().
|
protected |
current frame parent
Definition at line 239 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addFromToStoppingPlace(), addRoute(), addSingleEdge(), addSingleStoppingPlace(), onCmdCreatePath(), onCmdUseLastRoute(), onUpdUseLastRoute(), and recalculatePath().
|
protected |
from edge
Definition at line 254 of file GNEPlanCreator.h.
Referenced by addFromToEdge(), clearPath(), getFromEdge(), getNumberOfSelectedElements(), recalculatePath(), and removeLastElement().
|
protected |
from junction
Definition at line 260 of file GNEPlanCreator.h.
Referenced by addFromToJunction(), clearPath(), drawTemporalRoute(), getFromJunction(), getNumberOfSelectedElements(), recalculatePath(), and removeLastElement().
|
protected |
from StoppingPlace
Definition at line 272 of file GNEPlanCreator.h.
Referenced by addFromToStoppingPlace(), clearPath(), getFromBusStop(), getFromContainerStop(), getFromTrainStop(), getNumberOfSelectedElements(), recalculatePath(), and removeLastElement().
|
protected |
from TAZ
Definition at line 266 of file GNEPlanCreator.h.
Referenced by addFromToTAZ(), clearPath(), drawTemporalRoute(), getFromTAZ(), getNumberOfSelectedElements(), and removeLastElement().
|
protected |
info label
Definition at line 305 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 290 of file GNEPlanCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), and recalculatePath().
|
protected |
allowed plan parents
Definition at line 245 of file GNEPlanCreator.h.
Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), addTAZ(), onUpdUseLastRoute(), showPlanCreatorModule(), and updateInfoLabel().
|
protected |
previous person plan element
Definition at line 248 of file GNEPlanCreator.h.
Referenced by showPlanCreatorModule(), and updateRemoveLastItemButton().
|
protected |
button for removing last inserted element
Definition at line 302 of file GNEPlanCreator.h.
Referenced by abortPathCreation(), addFromToStoppingPlace(), GNEPlanCreator(), hideCreationButtons(), removeLastElement(), showCreationButtons(), and updateRemoveLastItemButton().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
|
protected |
route
Definition at line 278 of file GNEPlanCreator.h.
Referenced by addRoute(), clearPath(), and getRoute().
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
protected |
stoppingPlace
Definition at line 284 of file GNEPlanCreator.h.
Referenced by addSingleStoppingPlace(), clearPath(), getBusStop(), getContainerStop(), and getTrainStop().
|
protected |
to edge
Definition at line 257 of file GNEPlanCreator.h.
Referenced by addFromToEdge(), clearPath(), getNumberOfSelectedElements(), getToEdge(), recalculatePath(), and removeLastElement().
|
protected |
to junction
Definition at line 263 of file GNEPlanCreator.h.
Referenced by addFromToJunction(), clearPath(), drawTemporalRoute(), getNumberOfSelectedElements(), getToJunction(), recalculatePath(), and removeLastElement().
|
protected |
to StoppingPlace
Definition at line 275 of file GNEPlanCreator.h.
Referenced by addFromToStoppingPlace(), clearPath(), getNumberOfSelectedElements(), getToBusStop(), getToContainerStop(), getToTrainStop(), recalculatePath(), and removeLastElement().
|
protected |
to TAZ
Definition at line 269 of file GNEPlanCreator.h.
Referenced by addFromToTAZ(), clearPath(), drawTemporalRoute(), getNumberOfSelectedElements(), getToTAZ(), and removeLastElement().
|
protected |
button for use last inserted route
Definition at line 293 of file GNEPlanCreator.h.
Referenced by GNEPlanCreator(), and showPlanCreatorModule().
|
protected |
current vClass
Definition at line 242 of file GNEPlanCreator.h.
Referenced by recalculatePath(), and showPlanCreatorModule().