Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributesModuls::DrawingShape Class Reference

#include <GNEFrameAttributesModuls.h>

Inheritance diagram for GNEFrameAttributesModuls::DrawingShape:
[legend]
Collaboration diagram for GNEFrameAttributesModuls::DrawingShape:
[legend]

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 PositionVectorgetTemporalShape () 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...
 
GNEFramemyFrameParent
 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...
 

Detailed Description

Definition at line 631 of file GNEFrameAttributesModuls.h.

Constructor & Destructor Documentation

◆ DrawingShape()

◆ ~DrawingShape()

GNEFrameAttributesModuls::DrawingShape::~DrawingShape ( )

destructor

Definition at line 2315 of file GNEFrameAttributesModuls.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameAttributesModuls::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 2365 of file GNEFrameAttributesModuls.cpp.

◆ addNewPoint()

void GNEFrameAttributesModuls::DrawingShape::addNewPoint ( const Position P)

add new point to temporal shape

Definition at line 2377 of file GNEFrameAttributesModuls.cpp.

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
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().

◆ getDeleteLastCreatedPoint()

bool GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 2411 of file GNEFrameAttributesModuls.cpp.

◆ getTemporalShape()

const PositionVector & GNEFrameAttributesModuls::DrawingShape::getTemporalShape ( ) const

get Temporal shape

Definition at line 2393 of file GNEFrameAttributesModuls.cpp.

◆ hideDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 2326 of file GNEFrameAttributesModuls.cpp.

◆ isDrawing()

bool GNEFrameAttributesModuls::DrawingShape::isDrawing ( ) const

return true if currently a shape is drawed

Definition at line 2399 of file GNEFrameAttributesModuls.cpp.

◆ onCmdAbortDrawing()

long GNEFrameAttributesModuls::DrawingShape::onCmdAbortDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press abort drawing button.

Definition at line 2431 of file GNEFrameAttributesModuls.cpp.

◆ onCmdStartDrawing()

long GNEFrameAttributesModuls::DrawingShape::onCmdStartDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 2417 of file GNEFrameAttributesModuls.cpp.

◆ onCmdStopDrawing()

long GNEFrameAttributesModuls::DrawingShape::onCmdStopDrawing ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press stop drawing button.

Definition at line 2424 of file GNEFrameAttributesModuls.cpp.

◆ onCollapseButton()

long FXGroupBoxModule::onCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

◆ onPaint()

long FXGroupBoxModule::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

draw FXGroupBoxModule

Definition at line 79 of file FXGroupBoxModule.cpp.

◆ removeLastPoint()

void GNEFrameAttributesModuls::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 2387 of file GNEFrameAttributesModuls.cpp.

◆ setDeleteLastCreatedPoint()

void GNEFrameAttributesModuls::DrawingShape::setDeleteLastCreatedPoint ( bool  value)

enable or disable delete last created point

Definition at line 2405 of file GNEFrameAttributesModuls.cpp.

◆ setText()

void FXGroupBoxModule::setText ( const std::string &  text)
inherited

set text

Definition at line 67 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showDrawingShape()

void GNEFrameAttributesModuls::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 2318 of file GNEFrameAttributesModuls.cpp.

◆ startDrawing()

void GNEFrameAttributesModuls::DrawingShape::startDrawing ( )

start drawing

Definition at line 2335 of file GNEFrameAttributesModuls.cpp.

◆ stopDrawing()

void GNEFrameAttributesModuls::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 2347 of file GNEFrameAttributesModuls.cpp.

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 707 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 55 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 61 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 64 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCollapseButton().

◆ myDeleteLastCreatedPoint

bool GNEFrameAttributesModuls::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 695 of file GNEFrameAttributesModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameAttributesModuls::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 692 of file GNEFrameAttributesModuls.h.

◆ myInformationLabel

FXLabel* GNEFrameAttributesModuls::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 710 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 58 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myStartDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 701 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameAttributesModuls::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 704 of file GNEFrameAttributesModuls.h.

Referenced by DrawingShape().

◆ myTemporalShapeShape

PositionVector GNEFrameAttributesModuls::DrawingShape::myTemporalShapeShape
private

current drawed shape

Definition at line 698 of file GNEFrameAttributesModuls.h.


The documentation for this class was generated from the following files: