SUMO - Simulation of Urban MObility
GNEPolygonFrame Class Reference

#include <GNEPolygonFrame.h>

Inheritance diagram for GNEPolygonFrame:
Inheritance graph
Collaboration diagram for GNEPolygonFrame:
Collaboration graph

Data Structures

class  ShapeAttributes
 
class  ShapeAttributeSingle
 

Public Types

enum  AddShapeResult { ADDSHAPE_SUCCESS, ADDSHAPE_NEWPOINT, ADDSHAPE_INVALID, ADDSHAPE_NOTHING }
 FOX-declaration. More...
 

Public Member Functions

bool buildPoly (const PositionVector &drawedShape)
 build Polygon using values of Fields and drawed shape return true if was sucesfully created More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrame::DrawingModegetDrawingMode () const
 get drawing mode editor More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEFrame::GEOAttributesgetGEOAttributes () const
 get GEO Parameters editor More...
 
GNEFrame::NeteditAttributesgetNeteditAttributes () const
 get netedit attributes editor More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEPolygonFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
AddShapeResult processClick (const Position &clickedPosition, GNELane *lane)
 process click over Viewnet More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show shape frame and update use selected edges/lanes More...
 
 ~GNEPolygonFrame ()
 Destructor. More...
 
FOX-callbacks

Called when the user select another shape Type

long onCmdSelectShape (FXObject *, FXSelector, void *)
 

Static Public Member Functions

static std::string getIdsSelected (const FXList *list)
 get list of selecte id's in string format More...
 

Protected Member Functions

bool addPOI (const std::map< SumoXMLAttr, std::string > &POIValues)
 add POI More...
 
bool addPOILane (const std::map< SumoXMLAttr, std::string > &POIValues)
 add POILane More...
 
bool addPolygon (const std::map< SumoXMLAttr, std::string > &POIValues)
 add Polygon More...
 
 GNEPolygonFrame ()
 FOX needs this. More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
GNEFrame::DrawingModemyDrawingMode
 drawing mode More...
 
GNEFrame::GEOAttributesmyGEOAttributes
 GEO Parameters. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEFrame::NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
GNEViewNetmyViewNet
 View Net for changes. More...
 

Private Member Functions

void setParametersOfShape (SumoXMLTag actualShapeType)
 set parameters depending of the new shapeType More...
 

Private Attributes

SumoXMLTag myActualShapeType
 actual shape type selected in the match Box More...
 
FXGroupBox * myGroupBoxForMyShapeMatchBox
 groupBox for Match Box of shapes More...
 
GNEPolygonFrame::ShapeAttributesmyShapeAttributes
 shape internal attributes More...
 
FXComboBox * myShapeMatchBox
 combo box with the list of shape elements More...
 

Detailed Description

The Widget for setting internal attributes of shape elements

Definition at line 48 of file GNEPolygonFrame.h.

Member Enumeration Documentation

◆ AddShapeResult

FOX-declaration.

enum with all possible values after try to create an shape using frame

Enumerator
ADDSHAPE_SUCCESS 
ADDSHAPE_NEWPOINT 
ADDSHAPE_INVALID 
ADDSHAPE_NOTHING 

Definition at line 55 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ GNEPolygonFrame() [1/2]

GNEPolygonFrame::GNEPolygonFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame

Definition at line 82 of file GNEPolygonFrame.cpp.

References GNEAttributeCarrier::allowedShapeTags(), GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignGroupBoxFrame, MID_GNE_ADDITIONALFRAME_SELECTADDITIONALTYPE, SUMO_TAG_POLY, and toString().

◆ ~GNEPolygonFrame()

GNEPolygonFrame::~GNEPolygonFrame ( )

Destructor.

Definition at line 124 of file GNEPolygonFrame.cpp.

References gSelected, and GUISelectedStorage::remove2Update().

◆ GNEPolygonFrame() [2/2]

GNEPolygonFrame::GNEPolygonFrame ( )
inlineprotected

FOX needs this.

Definition at line 264 of file GNEPolygonFrame.h.

References addPOI(), addPOILane(), addPolygon(), and setParametersOfShape().

Member Function Documentation

◆ addPOI()

◆ addPOILane()

◆ addPolygon()

◆ buildPoly()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getDrawingMode()

GNEFrame::DrawingMode * GNEFrame::getDrawingMode ( ) const
inherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 583 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 577 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ getGEOAttributes()

GNEFrame::GEOAttributes * GNEFrame::getGEOAttributes ( ) const
inherited

get GEO Parameters editor

Definition at line 599 of file GNEFrame.cpp.

References GNEFrame::myGEOAttributes.

◆ getIdsSelected()

std::string GNEPolygonFrame::getIdsSelected ( const FXList *  list)
static

get list of selecte id's in string format

Definition at line 264 of file GNEPolygonFrame.cpp.

◆ getNeteditAttributes()

GNEFrame::NeteditAttributes * GNEFrame::getNeteditAttributes ( ) const
inherited

get netedit attributes editor

Definition at line 589 of file GNEFrame.cpp.

References GNEFrame::myNeteditAttributes.

Referenced by GNEFrame::DrawingMode::stopDrawing().

◆ getViewNet()

◆ hide()

◆ onCmdSelectShape()

◆ processClick()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 564 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ setParametersOfShape()

◆ show()

void GNEPolygonFrame::show ( )
virtual

show shape frame and update use selected edges/lanes

Reimplemented from GNEFrame.

Definition at line 257 of file GNEPolygonFrame.cpp.

References GNEFrame::show().

Referenced by GNEPolygonFrame::ShapeAttributeSingle::showParameter(), GNEPolygonFrame::ShapeAttributes::showShapeParameters(), and GNEViewNet::updateModeSpecificControls().

Field Documentation

◆ myActualShapeType

SumoXMLTag GNEPolygonFrame::myActualShapeType
private

actual shape type selected in the match Box

Definition at line 289 of file GNEPolygonFrame.h.

Referenced by onCmdSelectShape(), processClick(), and setParametersOfShape().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myDrawingMode

GNEFrame::DrawingMode* GNEFrame::myDrawingMode
protectedinherited

drawing mode

Definition at line 358 of file GNEFrame.h.

Referenced by GNEFrame::getDrawingMode(), onCmdSelectShape(), and processClick().

◆ myGEOAttributes

GNEFrame::GEOAttributes* GNEFrame::myGEOAttributes
protectedinherited

◆ myGroupBoxForMyShapeMatchBox

FXGroupBox* GNEPolygonFrame::myGroupBoxForMyShapeMatchBox
private

groupBox for Match Box of shapes

Definition at line 280 of file GNEPolygonFrame.h.

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 343 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 349 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributes

GNEFrame::NeteditAttributes* GNEFrame::myNeteditAttributes
protectedinherited

Netedit parameter.

Definition at line 352 of file GNEFrame.h.

Referenced by buildPoly(), GNEFrame::getNeteditAttributes(), onCmdSelectShape(), and processClick().

◆ myShapeAttributes

GNEPolygonFrame::ShapeAttributes* GNEPolygonFrame::myShapeAttributes
private

shape internal attributes

Definition at line 286 of file GNEPolygonFrame.h.

Referenced by buildPoly(), onCmdSelectShape(), processClick(), and setParametersOfShape().

◆ myShapeMatchBox

FXComboBox* GNEPolygonFrame::myShapeMatchBox
private

combo box with the list of shape elements

Definition at line 283 of file GNEPolygonFrame.h.

Referenced by onCmdSelectShape().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 337 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), addPOI(), addPOILane(), addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), buildPoly(), GNEDeleteFrame::createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEDeleteFrame::onCmdCenterChildItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectChildItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().


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