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  DrawingMode
 
class  NeteditAttributes
 
class  ShapeAttributes
 
class  ShapeAttributeSingle
 
class  ShapeSelector
 

Public Types

enum  AddShapeResult { ADDSHAPE_SUCCESS, ADDSHAPE_NEWPOINT, ADDSHAPE_INVALID, ADDSHAPE_NOTHING }
 enum with all possible values after try to create an shape using frame 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...
 
DrawingMode * getDrawingMode () 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...
 
NeteditAttributes * getNeteditAttributes () const
 get netedit attributes editor More...
 
ShapeAttributes * getShapeAttributes () const
 get shape attributes More...
 
ShapeSelector * getShapeSelector () const
 get shape selector More...
 
GNEViewNet * getViewNet () 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...
 

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...
 
void openHelpAttributesDialog (SumoXMLTag tag) const
 Open help attributes dialog. More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEViewNet * myViewNet
 View Net for changes. More...
 

Private Attributes

DrawingMode * myDrawingMode
 drawing mode More...
 
NeteditAttributes * myNeteditAttributes
 Netedit parameter. More...
 
ShapeAttributes * myShapeAttributes
 shape internal attributes More...
 
ShapeSelector * myShapeSelector
 additional selector More...
 

Detailed Description

The Widget for setting internal attributes of shape elements

Definition at line 42 of file GNEPolygonFrame.h.

Member Enumeration Documentation

◆ AddShapeResult

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 47 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

◆ GNEPolygonFrame()

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

Constructor.

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

Definition at line 810 of file GNEPolygonFrame.cpp.

References myDrawingMode, myNeteditAttributes, myShapeAttributes, myShapeSelector, GNEPolygonFrame::ShapeSelector::setCurrentShape(), and SUMO_TAG_POLY.

◆ ~GNEPolygonFrame()

GNEPolygonFrame::~GNEPolygonFrame ( )

Destructor.

Definition at line 830 of file GNEPolygonFrame.cpp.

Member Function Documentation

◆ addPOI()

◆ addPOILane()

◆ addPolygon()

◆ buildPoly()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getDrawingMode()

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 778 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 772 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

◆ getIdsSelected()

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

get list of selecte id's in string format

Definition at line 942 of file GNEPolygonFrame.cpp.

◆ getNeteditAttributes()

GNEPolygonFrame::NeteditAttributes * GNEPolygonFrame::getNeteditAttributes ( ) const

get netedit attributes editor

Definition at line 970 of file GNEPolygonFrame.cpp.

References myNeteditAttributes.

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape(), and GNEPolygonFrame::DrawingMode::stopDrawing().

◆ getShapeAttributes()

GNEPolygonFrame::ShapeAttributes * GNEPolygonFrame::getShapeAttributes ( ) const

get shape attributes

Definition at line 964 of file GNEPolygonFrame.cpp.

References myShapeAttributes.

Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().

◆ getShapeSelector()

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 766 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNETLSEditorFrame::TLSFile::myStartElement(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEPolygonFrame::DrawingMode::stopDrawing(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().

◆ hide()

◆ openHelpAttributesDialog()

◆ processClick()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 759 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

void GNEPolygonFrame::show ( )
virtual

show shape frame and update use selected edges/lanes

Reimplemented from GNEFrame.

Definition at line 935 of file GNEPolygonFrame.cpp.

References GNEFrame::show().

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

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myDrawingMode

DrawingMode* GNEPolygonFrame::myDrawingMode
private

drawing mode

Definition at line 445 of file GNEPolygonFrame.h.

Referenced by getDrawingMode(), GNEPolygonFrame(), and processClick().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 238 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 244 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributes

NeteditAttributes* GNEPolygonFrame::myNeteditAttributes
private

Netedit parameter.

Definition at line 442 of file GNEPolygonFrame.h.

Referenced by buildPoly(), getNeteditAttributes(), GNEPolygonFrame(), and processClick().

◆ myShapeAttributes

ShapeAttributes* GNEPolygonFrame::myShapeAttributes
private

shape internal attributes

Definition at line 439 of file GNEPolygonFrame.h.

Referenced by buildPoly(), getShapeAttributes(), GNEPolygonFrame(), and processClick().

◆ myShapeSelector

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 232 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), addPOI(), addPOILane(), addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), buildPoly(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectElement(), GNEConnectorFrame::onCmdCancel(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNETLSEditorFrame::parseTLSPrograms(), processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::show(), and GNEFrame::show().


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