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

#include <GNEFrameModules.h>

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

Public Types

enum  Options { NOTHING = 1 << 0, COLLAPSIBLE = 1 << 1, SAVE = 1 << 2, LOAD = 1 << 3 }
 GroupBoxModule options. More...
 

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 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 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...
 

Protected Member Functions

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...
 

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 * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
FXButton * myStartDrawingButton
 button for start drawing More...
 
FXButton * myStopDrawingButton
 button for stop drawing More...
 
PositionVector myTemporalShape
 current drawed shape More...
 

Detailed Description

Definition at line 318 of file GNEFrameModules.h.

Member Enumeration Documentation

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ DrawingShape()

◆ ~DrawingShape()

GNEFrameModules::DrawingShape::~DrawingShape ( )

destructor

Definition at line 1739 of file GNEFrameModules.cpp.

Member Function Documentation

◆ abortDrawing()

void GNEFrameModules::DrawingShape::abortDrawing ( )

abort drawing

Definition at line 1788 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ addNewPoint()

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

add new point to temporal shape

Definition at line 1799 of file GNEFrameModules.cpp.

Referenced by GNEShapeFrame::processClick(), and GNETAZFrame::processClick().

Here is the caller graph for this function:

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
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::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECommonNetworkModules::ConsecutiveLaneSelector::ConsecutiveLaneSelector(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), DrawingShape(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), 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(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::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(), 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().

◆ getDeleteLastCreatedPoint()

bool GNEFrameModules::DrawingShape::getDeleteLastCreatedPoint ( )

get flag delete last created point

Definition at line 1835 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::drawTemporalDrawingShape(), GNEShapeFrame::processClick(), and GNETAZFrame::processClick().

Here is the caller graph for this function:

◆ getTemporalShape()

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

get Temporal shape

Definition at line 1817 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::drawTemporalDrawingShape(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ hideDrawingShape()

void GNEFrameModules::DrawingShape::hideDrawingShape ( )

hide Drawing mode

Definition at line 1750 of file GNEFrameModules.cpp.

Referenced by GNEShapeFrame::tagSelected().

Here is the caller graph for this function:

◆ isDrawing()

bool GNEFrameModules::DrawingShape::isDrawing ( ) const

return true if currently a shape is drawed

Definition at line 1823 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEShapeFrame::processClick(), GNETAZFrame::processClick(), and GNEViewNet::processMoveMouseNetwork().

Here is the caller graph for this function:

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdAbortDrawing()

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

Called when the user press abort drawing button.

Definition at line 1855 of file GNEFrameModules.cpp.

◆ onCmdCollapseButton()

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

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

◆ onCmdStartDrawing()

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

Definition at line 1841 of file GNEFrameModules.cpp.

◆ onCmdStopDrawing()

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

Called when the user press stop drawing button.

Definition at line 1848 of file GNEFrameModules.cpp.

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

◆ removeLastPoint()

void GNEFrameModules::DrawingShape::removeLastPoint ( )

remove last added point

Definition at line 1809 of file GNEFrameModules.cpp.

Referenced by GNEShapeFrame::processClick(), and GNETAZFrame::processClick().

Here is the caller graph for this function:

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setDeleteLastCreatedPoint()

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

enable or disable delete last created point

Definition at line 1829 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::processMoveMouseNetwork().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

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

Here is the caller graph for this function:

◆ showDrawingShape()

void GNEFrameModules::DrawingShape::showDrawingShape ( )

show Drawing mode

Definition at line 1742 of file GNEFrameModules.cpp.

Referenced by GNEShapeFrame::tagSelected().

Here is the caller graph for this function:

◆ startDrawing()

void GNEFrameModules::DrawingShape::startDrawing ( )

start drawing

Definition at line 1759 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ stopDrawing()

void GNEFrameModules::DrawingShape::stopDrawing ( )

stop drawing and check if shape can be created

Definition at line 1771 of file GNEFrameModules.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::mySaveButton.

Field Documentation

◆ myAbortDrawingButton

FXButton* GNEFrameModules::DrawingShape::myAbortDrawingButton
private

button for abort drawing

Definition at line 394 of file GNEFrameModules.h.

Referenced by DrawingShape().

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

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

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myDeleteLastCreatedPoint

bool GNEFrameModules::DrawingShape::myDeleteLastCreatedPoint
private

flag to enable/disable delete point mode

Definition at line 382 of file GNEFrameModules.h.

◆ myFrameParent

GNEFrame* GNEFrameModules::DrawingShape::myFrameParent
private

pointer to frame parent

Definition at line 379 of file GNEFrameModules.h.

◆ myInformationLabel

FXLabel* GNEFrameModules::DrawingShape::myInformationLabel
private

Label with information.

Definition at line 397 of file GNEFrameModules.h.

Referenced by DrawingShape().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().

◆ myStartDrawingButton

FXButton* GNEFrameModules::DrawingShape::myStartDrawingButton
private

button for start drawing

Definition at line 388 of file GNEFrameModules.h.

Referenced by DrawingShape().

◆ myStopDrawingButton

FXButton* GNEFrameModules::DrawingShape::myStopDrawingButton
private

button for stop drawing

Definition at line 391 of file GNEFrameModules.h.

Referenced by DrawingShape().

◆ myTemporalShape

PositionVector GNEFrameModules::DrawingShape::myTemporalShape
private

current drawed shape

Definition at line 385 of file GNEFrameModules.h.


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