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  GEOPOICreator
 

Public Types

enum  AddShapeResult { ADDSHAPE_SUCCESS, ADDSHAPE_UPDATEDTEMPORALSHAPE, ADDSHAPE_INVALID, ADDSHAPE_NOTHING }
 enum with all possible values after try to create an shape using frame More...
 

Public Member Functions

void focusUpperElement ()
 focus upper element of frame More...
 
DrawingShapegetDrawingShapeModul () 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...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEPolygonFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
AddShapeResult processClick (const Position &clickedPosition, const GNEViewNet::ObjectsUnderCursor &objectsUnderCursor)
 process click over Viewnet More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame 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...
 
bool buildShape ()
 build a shaped element using the drawed shape return true if was sucesfully created More...
 
void disableModuls ()
 disable moduls if element selected in itemSelector isn't valid More...
 
void enableModuls (const GNEAttributeCarrier::TagProperties &tagProperties)
 enable moduls depending of item selected in ItemSelector More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) 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...
 
GNEViewNetmyViewNet
 View Net for changes. More...
 

Private Attributes

DrawingShapemyDrawingShape
 Drawing shape. More...
 
GEOPOICreatormyGEOPOICreator
 GEOPOICreator. More...
 
ItemSelector * myItemSelector
 item selector More...
 
NeteditAttributes * myNeteditAttributes
 Netedit parameter. More...
 
ACAttributesmyShapeAttributes
 shape internal attributes More...
 

Detailed Description

The Widget for setting internal attributes of shape elements

Definition at line 33 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_UPDATEDTEMPORALSHAPE 
ADDSHAPE_INVALID 
ADDSHAPE_NOTHING 

Definition at line 38 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

create GEOPOICreator

Definition at line 214 of file GNEPolygonFrame.cpp.

References myDrawingShape, myGEOPOICreator, myItemSelector, myNeteditAttributes, myShapeAttributes, GNEFrame::ItemSelector::setCurrentTypeTag(), and SUMO_TAG_POLY.

◆ ~GNEPolygonFrame()

GNEPolygonFrame::~GNEPolygonFrame ( )

Destructor.

Definition at line 237 of file GNEPolygonFrame.cpp.

Member Function Documentation

◆ addPOI()

◆ addPOILane()

◆ addPolygon()

◆ buildShape()

◆ disableModuls()

void GNEPolygonFrame::disableModuls ( )
protectedvirtual

◆ enableModuls()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getDrawingShapeModul()

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 1732 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 1726 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 325 of file GNEPolygonFrame.cpp.

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 1720 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrame::DrawingShape::abortDrawing(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChilds::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChilds::getLaneIdsSelected(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorAdditionalParent::refreshSelectorAdditionalParentModul(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChilds::showSelectorEdgeChildsModul(), GNEAdditionalFrame::SelectorLaneChilds::showSelectorLaneChildsModul(), GNEFrame::ACAttributes::showWarningMessage(), GNEFrame::DrawingShape::stopDrawing(), GNEAdditionalFrame::SelectorEdgeChilds::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChilds::updateUseSelectedLanes().

◆ hide()

◆ openHelpAttributesDialog()

◆ processClick()

GNEPolygonFrame::AddShapeResult GNEPolygonFrame::processClick ( const Position clickedPosition,
const GNEViewNet::ObjectsUnderCursor objectsUnderCursor 
)

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 1713 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

Referenced by GNEViewParent::Frames::setWidth().

◆ show()

void GNEPolygonFrame::show ( )
virtual

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 615 of file GNEFrame.h.

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

◆ myDrawingShape

DrawingShape* GNEPolygonFrame::myDrawingShape
private

Drawing shape.

Definition at line 163 of file GNEPolygonFrame.h.

Referenced by buildShape(), disableModuls(), enableModuls(), getDrawingShapeModul(), GNEPolygonFrame(), and processClick().

◆ myGEOPOICreator

GEOPOICreator* GNEPolygonFrame::myGEOPOICreator
private

GEOPOICreator.

Definition at line 166 of file GNEPolygonFrame.h.

Referenced by disableModuls(), enableModuls(), and GNEPolygonFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

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

Referenced by GNEFrame::GNEFrame().

◆ myItemSelector

ItemSelector* GNEPolygonFrame::myItemSelector
private

◆ myNeteditAttributes

NeteditAttributes* GNEPolygonFrame::myNeteditAttributes
private

◆ myShapeAttributes

ACAttributes* GNEPolygonFrame::myShapeAttributes
private

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 612 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), addPOI(), addPOILane(), addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), buildShape(), GNETAZFrame::buildShape(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), processClick(), GNEInspectorFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEDeleteFrame::show(), GNEFrame::show(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().


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