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
 

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 shap return true if was sucesfully created More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEPolygonFrame::DrawingMode * getDrawingMode () const
 get drawing mode More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEPolygonFrame::NeteditAttributes * getNetEditParameters () const
 get editor parameters 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)
 process click over Viewnet More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show additional frame and update use selected edges/lanes More...
 
 ~GNEPolygonFrame ()
 Destructor. More...
 
FOX-callbacks

Called when the user select another additional 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 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...
 
FXFont * myFrameHeaderFont
 Font for the Header. More...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header 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
 the window to inform when the tls is modfied More...
 

Private Member Functions

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

Private Attributes

SumoXMLTag myActualShapeType
 actual additional type selected in the match Box More...
 
GNEPolygonFrame::DrawingMode * myDrawingMode
 drawing mode More...
 
GNEPolygonFrame::NeteditAttributes * myEditorParameters
 Netedit parameter. More...
 
FXGroupBox * myGroupBoxForMyShapeMatchBox
 groupBox for Match Box of additionals More...
 
GNEPolygonFrame::ShapeAttributes * myShapeAttributes
 additional internal attributes More...
 
FXComboBox * myShapeMatchBox
 combo box with the list of additional elements More...
 

Detailed Description

The Widget for setting internal attributes of additional elements

Definition at line 49 of file GNEPolygonFrame.h.

Member Enumeration Documentation

FOX-declaration.

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

Enumerator
ADDSHAPE_SUCCESS 
ADDSHAPE_NEWPOINT 
ADDSHAPE_INVALID 
ADDSHAPE_NOTHING 

Definition at line 56 of file GNEPolygonFrame.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 99 of file GNEPolygonFrame.cpp.

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

GNEPolygonFrame::~GNEPolygonFrame ( )

Destructor.

Definition at line 141 of file GNEPolygonFrame.cpp.

References gSelected, and GUISelectedStorage::remove2Update().

GNEPolygonFrame::GNEPolygonFrame ( )
inlineprotected

FOX needs this.

Definition at line 420 of file GNEPolygonFrame.h.

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

Member Function Documentation

void GNEFrame::focusUpperElement ( )
inherited
GNEPolygonFrame::DrawingMode * GNEPolygonFrame::getDrawingMode ( ) const
FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 129 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectMultisection().

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

get list of selecte id's in string format

Definition at line 1038 of file GNEPolygonFrame.cpp.

References text().

GNEPolygonFrame::NeteditAttributes * GNEPolygonFrame::getNetEditParameters ( ) const

get editor parameters

Definition at line 219 of file GNEPolygonFrame.cpp.

References myEditorParameters.

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

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 116 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

void GNEPolygonFrame::show ( )
virtual

show additional frame and update use selected edges/lanes

Reimplemented from GNEFrame.

Definition at line 489 of file GNEPolygonFrame.cpp.

References GNEFrame::show().

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

Field Documentation

SumoXMLTag GNEPolygonFrame::myActualShapeType
private

actual additional type selected in the match Box

Definition at line 448 of file GNEPolygonFrame.h.

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

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 104 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().

GNEPolygonFrame::DrawingMode* GNEPolygonFrame::myDrawingMode
private

drawing mode

Definition at line 445 of file GNEPolygonFrame.h.

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

GNEPolygonFrame::NeteditAttributes* GNEPolygonFrame::myEditorParameters
private

Netedit parameter.

Definition at line 442 of file GNEPolygonFrame.h.

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

FXFont* GNEFrame::myFrameHeaderFont
protectedinherited

Font for the Header.

Definition at line 98 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

FXLabel* GNEFrame::myFrameHeaderLabel
protectedinherited

the label for the frame's header

Definition at line 101 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

FXGroupBox* GNEPolygonFrame::myGroupBoxForMyShapeMatchBox
private

groupBox for Match Box of additionals

Definition at line 433 of file GNEPolygonFrame.h.

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 107 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited
FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 113 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

GNEPolygonFrame::ShapeAttributes* GNEPolygonFrame::myShapeAttributes
private

additional internal attributes

Definition at line 439 of file GNEPolygonFrame.h.

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

FXComboBox* GNEPolygonFrame::myShapeMatchBox
private

combo box with the list of additional elements

Definition at line 436 of file GNEPolygonFrame.h.

Referenced by onCmdSelectShape().

GNEViewNet* GNEFrame::myViewNet
protectedinherited

the window to inform when the tls is modfied

Definition at line 95 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), addPOI(), 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: