![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
Public Types | |
enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , SAVE = 1 << 2 , LOAD = 1 << 3 } |
GroupBoxModule options. More... | |
Public Member Functions | |
void | abortPathCreation () |
abort path creation More... | |
bool | addLane (GNELane *lane) |
add lane More... | |
bool | createPath () |
create path More... | |
bool | drawCandidateLanesWithSpecialColor () const |
draw candidate lanes with special color (Only for candidates, special and conflicted) More... | |
void | drawTemporalE2Multilane (const GUIVisualizationSettings &s) const |
draw temporal E2Multilane More... | |
E2MultilaneLaneSelector (GNEAdditionalFrame *additionalFrameParent) | |
FOX-declaration. More... | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
void | hideE2MultilaneLaneSelectorModule () |
show E2MultilaneLaneSelector More... | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule More... | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents More... | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents More... | |
long | onPaint (FXObject *, FXSelector, void *) |
draw FXGroupBoxModule More... | |
void | removeLastElement () |
remove path element More... | |
void | setText (const std::string &text) |
set text More... | |
void | showE2MultilaneLaneSelectorModule () |
show E2MultilaneLaneSelector More... | |
void | updateLaneColors () |
update lane colors More... | |
~E2MultilaneLaneSelector () | |
destructor More... | |
FOX-callbacks | |
Called when the user click over button "Finish route creation" | |
long | onCmdCreatePath (FXObject *, FXSelector, void *) |
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 lane". More... | |
long | onCmdShowCandidateLanes (FXObject *, FXSelector, void *) |
Called when the user click over check button "show candidate lanes". More... | |
Protected Member Functions | |
void | clearPath () |
clear lanes (and restore colors) More... | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) More... | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) More... | |
void | toogleSaveButton (const bool value) |
enable or disable save buttons More... | |
void | updateInfoRouteLabel () |
fox need this More... | |
Protected Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
GNEAdditionalFrame * | myAdditionalFrameParent |
current additional frame parent More... | |
FXButton * | myFinishCreationButton |
button for finish route creation More... | |
FXLabel * | myInfoRouteLabel |
label with route info More... | |
std::vector< std::pair< GNELane *, double > > | myLanePath |
vector with lanes and clicked positions More... | |
FXButton * | myRemoveLastInsertedElement |
button for removing last inserted element More... | |
FXCheckButton * | myShowCandidateLanes |
CheckBox for show candidate lanes. More... | |
Private Member Functions | |
E2MultilaneLaneSelector (E2MultilaneLaneSelector *)=delete | |
Invalidated copy constructor. More... | |
E2MultilaneLaneSelector & | operator= (E2MultilaneLaneSelector *)=delete |
Invalidated assignment operator. 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... | |
FXLabel * | myLabel = nullptr |
label used in non collapsable FXGroupBoxModule More... | |
FXButton * | myLoadButton = nullptr |
button for load elements More... | |
const int | myOptions |
GroupBoxModule options. More... | |
FXButton * | mySaveButton = nullptr |
button for save elements More... | |
Definition at line 254 of file GNEAdditionalFrame.h.
|
inherited |
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
SAVE | |
LOAD |
Definition at line 32 of file FXGroupBoxModule.h.
GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector | ( | GNEAdditionalFrame * | additionalFrameParent | ) |
FOX-declaration.
default constructor
Definition at line 606 of file GNEAdditionalFrame.cpp.
References FXGroupBoxModule::getCollapsableFrame(), GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, GUIDesignLabelFrameThicked, MID_GNE_LANEPATH_ABORT, MID_GNE_LANEPATH_FINISH, MID_GNE_LANEPATH_REMOVELAST, MID_GNE_LANEPATH_SHOWCANDIDATES, myAbortCreationButton, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, and myShowCandidateLanes.
GNEAdditionalFrame::E2MultilaneLaneSelector::~E2MultilaneLaneSelector | ( | ) |
destructor
Definition at line 630 of file GNEAdditionalFrame.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEAdditionalFrame::E2MultilaneLaneSelector::abortPathCreation | ( | ) |
abort path creation
Definition at line 884 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::abortOperation().
bool GNEAdditionalFrame::E2MultilaneLaneSelector::addLane | ( | GNELane * | lane | ) |
add lane
Definition at line 660 of file GNEAdditionalFrame.cpp.
References GNELane::getLaneShape(), GNECandidateElement::isConflictedCandidate(), GNECandidateElement::isPossibleCandidate(), GNECandidateElement::isSpecialCandidate(), PositionVector::nearest_offset_to_point2D(), and WRITE_WARNING.
Referenced by GNEAdditionalFrame::addAdditional().
|
protected |
clear lanes (and restore colors)
Definition at line 989 of file GNEAdditionalFrame.cpp.
bool GNEAdditionalFrame::E2MultilaneLaneSelector::createPath | ( | ) |
create path
Definition at line 825 of file GNEAdditionalFrame.cpp.
References GNE_TAG_E2DETECTOR_MULTILANE, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_ENDPOS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_POSITION, and WRITE_WARNING.
Referenced by GNEViewNet::hotkeyEnter().
bool GNEAdditionalFrame::E2MultilaneLaneSelector::drawCandidateLanesWithSpecialColor | ( | ) | const |
draw candidate lanes with special color (Only for candidates, special and conflicted)
Definition at line 708 of file GNEAdditionalFrame.cpp.
void GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal E2Multilane
Definition at line 756 of file GNEAdditionalFrame.cpp.
References RGBColor::changedBrightness(), GLHelper::drawBoxLines(), GUIGeometry::drawGeometryPoints(), GNELane2laneConnection::exist(), GNELane::getLane2laneConnections(), GNELane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GUIGeometry::getShape(), GLO_TEMPORALSHAPE, RGBColor::GREY, GUIVisualizationSettings::neteditSizeSettings, NETWORK_MOVE, RGBColor::ORANGE, GUIVisualizationNeteditSizeSettings::polylineWidth, GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toogled)
Definition at line 82 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesCreatorFlow::AttributesCreatorFlow(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEFrameAttributeModules::AttributesEditorFlow::AttributesEditorFlow(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNEFrameModules::DrawingShape::DrawingShape(), E2MultilaneLaneSelector(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEAdditionalFrame::SelectorChildEdges::SelectorChildEdges(), GNEAdditionalFrame::SelectorChildLanes::SelectorChildLanes(), GNEFrameModules::SelectorParent::SelectorParent(), 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::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
void GNEAdditionalFrame::E2MultilaneLaneSelector::hideE2MultilaneLaneSelectorModule | ( | ) |
Definition at line 651 of file GNEAdditionalFrame.cpp.
References GNEFrame::hide().
Referenced by GNEAdditionalFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 142 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdLoadButton().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdAbortPathCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Abort route creation".
Definition at line 942 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 101 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 934 of file GNEAdditionalFrame.cpp.
References GNEFrame::createPath().
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted lane".
Definition at line 950 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdShowCandidateLanes | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over check button "show candidate lanes".
Definition at line 958 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
void GNEAdditionalFrame::E2MultilaneLaneSelector::removeLastElement | ( | ) |
remove path element
Definition at line 906 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::hotkeyBackSpace().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions.
Definition at line 135 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdSaveButton().
|
inherited |
set text
Definition at line 76 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
void GNEAdditionalFrame::E2MultilaneLaneSelector::showE2MultilaneLaneSelectorModule | ( | ) |
Definition at line 634 of file GNEAdditionalFrame.cpp.
References GNEAdditionalFrame::show().
Referenced by GNEAdditionalFrame::tagSelected().
|
protectedinherited |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::mySaveButton.
|
protected |
fox need this
update InfoRouteLabel
Definition at line 968 of file GNEAdditionalFrame.cpp.
References toString().
void GNEAdditionalFrame::E2MultilaneLaneSelector::updateLaneColors | ( | ) |
update lane colors
Definition at line 714 of file GNEAdditionalFrame.cpp.
References GNEEdge::getGNEConnections(), and GNECandidateElement::setConflictedCandidate().
|
protected |
button for abort route creation
Definition at line 330 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
current additional frame parent
Definition at line 318 of file GNEAdditionalFrame.h.
|
privateinherited |
vertical collapsable frame
Definition at line 81 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for collapse elements
Definition at line 87 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 96 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
protected |
button for finish route creation
Definition at line 327 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
label with route info
Definition at line 324 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
privateinherited |
label used in non collapsable FXGroupBoxModule
Definition at line 84 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::setText().
|
protected |
vector with lanes and clicked positions
Definition at line 321 of file GNEAdditionalFrame.h.
|
privateinherited |
button for load elements
Definition at line 93 of file FXGroupBoxModule.h.
|
privateinherited |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
protected |
button for removing last inserted element
Definition at line 333 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
privateinherited |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::toogleSaveButton().
|
protected |
CheckBox for show candidate lanes.
Definition at line 336 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().