![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
| void | abortDrawing () |
| abort drawing More... | |
| void | addNewPoint (const Position &P) |
| add new point to temporal shape More... | |
| DrawingShape (GNEFrame *frameParent) | |
| FOX-declaration. More... | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
| bool | getDeleteLastCreatedPoint () |
| get flag delete last created point More... | |
| const PositionVector & | getTemporalShape () const |
| get Temporal shape More... | |
| void | hideDrawingShape () |
| hide Drawing mode More... | |
| bool | isDrawing () const |
| return true if currently a shape is drawed More... | |
| long | onCollapseButton (FXObject *, FXSelector, void *) |
| draw FXGroupBoxModule More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw FXGroupBoxModule More... | |
| void | removeLastPoint () |
| remove last added point More... | |
| void | setDeleteLastCreatedPoint (bool value) |
| enable or disable delete last created point More... | |
| void | setText (const std::string &text) |
| set text More... | |
| void | showDrawingShape () |
| show Drawing mode More... | |
| void | startDrawing () |
| start drawing More... | |
| void | stopDrawing () |
| stop drawing and check if shape can be created More... | |
| ~DrawingShape () | |
| destructor More... | |
FOX-callbacks | |
Called when the user press start drawing button | |
| long | onCmdStartDrawing (FXObject *, FXSelector, void *) |
| long | onCmdStopDrawing (FXObject *, FXSelector, void *) |
| Called when the user press stop drawing button. More... | |
| long | onCmdAbortDrawing (FXObject *, FXSelector, void *) |
| Called when the user press abort drawing button. More... | |
Private Attributes | |
| FXButton * | myAbortDrawingButton |
| button for abort drawing More... | |
| 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... | |
| bool | myDeleteLastCreatedPoint |
| flag to enable/disable delete point mode More... | |
| GNEFrame * | myFrameParent |
| pointer to frame parent More... | |
| FXLabel * | myInformationLabel |
| Label with information. More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable FXGroupBoxModule More... | |
| FXButton * | myStartDrawingButton |
| button for start drawing More... | |
| FXButton * | myStopDrawingButton |
| button for stop drawing More... | |
| PositionVector | myTemporalShapeShape |
| current drawed shape More... | |
Definition at line 631 of file GNEFrameAttributesModuls.h.
| GNEFrameAttributesModuls::DrawingShape::DrawingShape | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 2289 of file GNEFrameAttributesModuls.cpp.
References FXGroupBoxModule::getCollapsableFrame(), GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_ABORTDRAWING, MID_GNE_STARTDRAWING, MID_GNE_STOPDRAWING, myAbortDrawingButton, myInformationLabel, myStartDrawingButton, and myStopDrawingButton.
| GNEFrameAttributesModuls::DrawingShape::~DrawingShape | ( | ) |
destructor
Definition at line 2315 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::abortDrawing | ( | ) |
abort drawing
Definition at line 2365 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::addNewPoint | ( | const Position & | P | ) |
add new point to temporal shape
Definition at line 2377 of file GNEFrameAttributesModuls.cpp.
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toogled)
Definition at line 73 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributesModuls::AttributesCreator::AttributesCreator(), GNEFrameAttributesModuls::AttributesCreatorFlow::AttributesCreatorFlow(), GNEFrameAttributesModuls::AttributesEditor::AttributesEditor(), GNEFrameAttributesModuls::AttributesEditorExtended::AttributesEditorExtended(), GNEFrameAttributesModuls::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(), GNEFrameModuls::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameModuls::DrawingShape::DrawingShape(), DrawingShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModuls::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributesModuls::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEFrameAttributesModuls::ParametersEditorCreator::ParametersEditorCreator(), GNEInspectorFrame::ParametersEditorInspector::ParametersEditorInspector(), GNEFrameModuls::PathCreator::PathCreator(), GNEFrameModuls::PathLegend::PathLegend(), GNEPersonTypeFrame::PersonTypeEditor::PersonTypeEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEAdditionalFrame::SelectorChildEdges::SelectorChildEdges(), GNEAdditionalFrame::SelectorChildLanes::SelectorChildLanes(), GNEFrameModuls::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(), GNEVehicleTypeFrame::VehicleTypeEditor::VehicleTypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
| bool GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint | ( | ) |
get flag delete last created point
Definition at line 2411 of file GNEFrameAttributesModuls.cpp.
| const PositionVector & GNEFrameAttributesModuls::DrawingShape::getTemporalShape | ( | ) | const |
get Temporal shape
Definition at line 2393 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::hideDrawingShape | ( | ) |
hide Drawing mode
Definition at line 2326 of file GNEFrameAttributesModuls.cpp.
| bool GNEFrameAttributesModuls::DrawingShape::isDrawing | ( | ) | const |
return true if currently a shape is drawed
Definition at line 2399 of file GNEFrameAttributesModuls.cpp.
| long GNEFrameAttributesModuls::DrawingShape::onCmdAbortDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press abort drawing button.
Definition at line 2431 of file GNEFrameAttributesModuls.cpp.
| long GNEFrameAttributesModuls::DrawingShape::onCmdStartDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 2417 of file GNEFrameAttributesModuls.cpp.
| long GNEFrameAttributesModuls::DrawingShape::onCmdStopDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press stop drawing button.
Definition at line 2424 of file GNEFrameAttributesModuls.cpp.
|
inherited |
draw FXGroupBoxModule
Definition at line 92 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
|
inherited |
draw FXGroupBoxModule
Definition at line 79 of file FXGroupBoxModule.cpp.
| void GNEFrameAttributesModuls::DrawingShape::removeLastPoint | ( | ) |
remove last added point
Definition at line 2387 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::setDeleteLastCreatedPoint | ( | bool | value | ) |
enable or disable delete last created point
Definition at line 2405 of file GNEFrameAttributesModuls.cpp.
|
inherited |
set text
Definition at line 67 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNEFrameAttributesModuls::DrawingShape::showDrawingShape | ( | ) |
show Drawing mode
Definition at line 2318 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::startDrawing | ( | ) |
start drawing
Definition at line 2335 of file GNEFrameAttributesModuls.cpp.
| void GNEFrameAttributesModuls::DrawingShape::stopDrawing | ( | ) |
stop drawing and check if shape can be created
Definition at line 2347 of file GNEFrameAttributesModuls.cpp.
|
private |
button for abort drawing
Definition at line 707 of file GNEFrameAttributesModuls.h.
Referenced by DrawingShape().
|
privateinherited |
vertical collapsable frame
Definition at line 55 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCollapseButton().
|
privateinherited |
button for collapse elements
Definition at line 61 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 64 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCollapseButton().
|
private |
flag to enable/disable delete point mode
Definition at line 695 of file GNEFrameAttributesModuls.h.
|
private |
pointer to frame parent
Definition at line 692 of file GNEFrameAttributesModuls.h.
|
private |
Label with information.
Definition at line 710 of file GNEFrameAttributesModuls.h.
Referenced by DrawingShape().
|
privateinherited |
label used in non collapsable FXGroupBoxModule
Definition at line 58 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::setText().
|
private |
button for start drawing
Definition at line 701 of file GNEFrameAttributesModuls.h.
Referenced by DrawingShape().
|
private |
button for stop drawing
Definition at line 704 of file GNEFrameAttributesModuls.h.
Referenced by DrawingShape().
|
private |
current drawed shape
Definition at line 698 of file GNEFrameAttributesModuls.h.