Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributesModuls.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // Auxiliar class for GNEFrame Moduls (only for attributes edition)
16 /****************************************************************************/
17 #ifndef GNEFrameAttributesModuls_h
18 #define GNEFrameAttributesModuls_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
27 
28 // ===========================================================================
29 // class declaration
30 // ===========================================================================
31 
32 class GNEFrame;
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
37 
39 
40 public:
41  // ===========================================================================
42  // class declaration
43  // ===========================================================================
44 
45  class AttributesCreator;
46  class AttributesEditor;
47 
48  // ===========================================================================
49  // class AttributesCreatorRow
50  // ===========================================================================
51 
52  class AttributesCreatorRow : public FXHorizontalFrame {
55 
56  public:
58  AttributesCreatorRow(AttributesCreator* AttributesCreatorParent, const GNEAttributeCarrier::AttributeProperties& attrProperties);
59 
61  void destroy();
62 
65 
67  std::string getValue() const;
68 
70  bool getAttributeRadioButtonCheck() const;
71 
73  void setAttributeRadioButtonCheck(bool value);
74 
76  bool getAttributeCheckButtonCheck() const;
77 
79  void setAttributeCheckButtonCheck(bool value);
80 
83 
86 
88  bool isAttributesCreatorRowEnabled() const;
89 
91  const std::string& isAttributeValid() const;
92 
95 
99  long onCmdSetAttribute(FXObject*, FXSelector, void*);
100 
102  long onCmdSelectCheckButton(FXObject*, FXSelector, void*);
103 
105  long onCmdSelectColorButton(FXObject*, FXSelector, void*);
106 
108  long onCmdSelectRadioButton(FXObject*, FXSelector, void*);
110 
111  protected:
114 
116  std::string checkComplexAttribute(const std::string& value);
117 
118  private:
121 
124 
126  std::string myInvalidValue;
127 
130 
132  FXRadioButton* myAttributeRadioButton;
133 
135  FXCheckButton* myAttributeCheckButton;
136 
139 
141  FXTextField* myValueTextFieldInt;
142 
144  FXTextField* myValueTextFieldReal;
145 
148 
150  FXCheckButton* myValueCheckButton;
151  };
152 
153  // ===========================================================================
154  // class AttributesCreator
155  // ===========================================================================
156 
157  class AttributesCreator : public FXGroupBox {
160 
161  // declare friend class
162  friend class Row;
163 
164  public:
166  AttributesCreator(GNEFrame* frameParent);
167 
170 
173 
176 
178  std::map<SumoXMLAttr, std::string> getAttributesAndValues(bool includeAll) const;
179 
181  GNEAttributeCarrier::TagProperties getCurrentTagProperties() const;
182 
184  bool areValuesValid() const;
185 
187  void showWarningMessage(std::string extra = "") const;
188 
192  long onCmdHelp(FXObject*, FXSelector, void*);
194 
197 
198  protected:
201 
202  private:
205 
208 
210  std::vector<AttributesCreatorRow*> myAttributesCreatorRows;
211 
213  FXButton* myHelpButton;
214  };
215 
216  // ===========================================================================
217  // class AttributesEditorRow
218  // ===========================================================================
219 
220  class AttributesEditorRow : protected FXHorizontalFrame {
223 
224  public:
226  AttributesEditorRow(AttributesEditor* attributeEditorParent, const GNEAttributeCarrier::AttributeProperties& ACAttr, const std::string& value, bool attributeEnabled);
227 
229  void destroy();
230 
232  void refreshAttributesEditorRow(const std::string& value, bool forceRefresh, bool disjointAttributeEnabled);
233 
235  bool isAttributesEditorRowValid() const;
236 
239 
241  long onCmdSetAttribute(FXObject*, FXSelector, void*);
242 
244  long onCmdSelectCheckButton(FXObject*, FXSelector, void*);
245 
247  long onCmdSelectRadioButton(FXObject*, FXSelector, void*);
248 
250  long onCmdOpenAttributeDialog(FXObject*, FXSelector, void*);
252 
253  protected:
256 
258  std::string stripWhitespaceAfterComma(const std::string& stringValue);
259 
260  private:
263 
266 
268  const bool myMultiple;
269 
272 
274  FXRadioButton* myAttributeRadioButton;
275 
277  FXCheckButton* myAttributeCheckButton;
278 
281 
284 
286  FXTextField* myValueTextFieldInt;
287 
289  FXTextField* myValueTextFieldReal;
290 
293 
296 
298  FXCheckButton* myValueCheckButton;
299  };
300 
301  // ===========================================================================
302  // class AttributesEditor
303  // ===========================================================================
304 
305  class AttributesEditor : public FXGroupBox {
308 
309  public:
311  AttributesEditor(GNEFrame* inspectorFrameParent);
312 
314  void showAttributeEditorModul(const std::vector<GNEAttributeCarrier*>& ACs, bool includeExtended);
315 
318 
320  void refreshAttributeEditor(bool forceRefreshShape, bool forceRefreshPosition);
321 
323  GNEFrame* getFrameParent() const;
324 
326  const std::vector<GNEAttributeCarrier*>& getEditedACs() const;
327 
330 
334  long onCmdAttributesEditorHelp(FXObject*, FXSelector, void*);
336 
337  protected:
340 
341  private:
344 
346  std::vector<AttributesEditorRow*> myAttributesEditorRows;
347 
349  FXButton* myHelpButton;
350 
352  std::vector<GNEAttributeCarrier*> myEditedACs;
353 
356  };
357 
358  // ===========================================================================
359  // class AttributesEditorExtended
360  // ===========================================================================
361 
362  class AttributesEditorExtended : protected FXGroupBox {
365 
366  public:
368  AttributesEditorExtended(GNEFrame* frameParent);
369 
372 
375 
378 
382  long onCmdOpenDialog(FXObject*, FXSelector, void*);
384 
385  protected:
388 
389  private:
392  };
393 
394  // ===========================================================================
395  // class GenericParametersEditor
396  // ===========================================================================
397 
398  class GenericParametersEditor : private FXGroupBox {
401 
402  public:
404  GenericParametersEditor(GNEFrame* frameParent);
405 
408 
411 
413  void showGenericParametersEditor(std::vector<GNEAttributeCarrier*> ACs);
414 
417 
420 
422  std::string getGenericParametersStr() const;
423 
427  long onCmdEditGenericParameter(FXObject*, FXSelector, void*);
428 
430  long onCmdSetGenericParameter(FXObject*, FXSelector, void*);
432 
433  protected:
436 
437  private:
440 
443 
445  std::vector<GNEAttributeCarrier*> myACs;
446 
448  std::vector<std::pair<std::string, std::string> >* myGenericParameters;
449 
452 
455  };
456 
457  // ===========================================================================
458  // class DrawingShape
459  // ===========================================================================
460 
461  class DrawingShape : private FXGroupBox {
464 
465  public:
467  DrawingShape(GNEFrame* frameParent);
468 
470  ~DrawingShape();
471 
473  void showDrawingShape();
474 
476  void hideDrawingShape();
477 
479  void startDrawing();
480 
482  void stopDrawing();
483 
485  void abortDrawing();
486 
488  void addNewPoint(const Position& P);
489 
491  void removeLastPoint();
492 
494  const PositionVector& getTemporalShape() const;
495 
497  bool isDrawing() const;
498 
500  void setDeleteLastCreatedPoint(bool value);
501 
504 
508  long onCmdStartDrawing(FXObject*, FXSelector, void*);
509 
511  long onCmdStopDrawing(FXObject*, FXSelector, void*);
512 
514  long onCmdAbortDrawing(FXObject*, FXSelector, void*);
516 
517  protected:
520 
521  private:
524 
527 
530 
533 
536 
539 
542  };
543 
544  // ===========================================================================
545  // class NeteditAttributes
546  // ===========================================================================
547 
548  class NeteditAttributes : protected FXGroupBox {
551 
552  public:
554  NeteditAttributes(GNEFrame* frameParent);
555 
558 
561 
564 
566  bool getNeteditAttributesAndValues(std::map<SumoXMLAttr, std::string>& valuesMap, const GNELane* lane) const;
567 
571  long onCmdSetNeteditAttribute(FXObject*, FXSelector, void*);
572 
574  long onCmdHelp(FXObject*, FXSelector, void*);
576 
577  protected:
580 
581  private:
588  };
589 
591  double setStartPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const;
592 
594  double setEndPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const;
595 
598 
601 
603  FXLabel* myLengthLabel;
604 
606  FXTextField* myLengthTextField;
607 
610 
613 
616 
618  FXCheckButton* myBlockShapeCheckButton;
619 
622 
624  FXCheckButton* myCloseShapeCheckButton;
625 
628 
631 
634  };
635 };
636 
637 
638 #endif
639 
640 /****************************************************************************/
GNEFrameAttributesModuls::AttributesEditorExtended::~AttributesEditorExtended
~AttributesEditorExtended()
destructor
Definition: GNEFrameAttributesModuls.cpp:1592
GNEFrameAttributesModuls::AttributesEditorRow
Definition: GNEFrameAttributesModuls.h:220
GNEFrameAttributesModuls::AttributesCreatorRow::getAttributesCreatorParent
AttributesCreator * getAttributesCreatorParent() const
get AttributesCreator parent
Definition: GNEFrameAttributesModuls.cpp:377
GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldStrings
FXTextField * myValueTextFieldStrings
textField to modify the default value of string parameters
Definition: GNEFrameAttributesModuls.h:147
GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeRadioButtonCheck
bool getAttributeRadioButtonCheck() const
return status of radio button
Definition: GNEFrameAttributesModuls.cpp:245
GNEFrameAttributesModuls::NeteditAttributes::AdditionalReferencePoint
AdditionalReferencePoint
list of the reference points
Definition: GNEFrameAttributesModuls.h:583
GNEFrameAttributesModuls::AttributesEditorRow::myAttributeCheckButton
FXCheckButton * myAttributeCheckButton
pointer to attribute menu check
Definition: GNEFrameAttributesModuls.h:277
GNEFrameAttributesModuls::AttributesCreatorRow::AttributesCreatorRow
AttributesCreatorRow()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:113
GNEFrameAttributesModuls::AttributesEditorExtended::onCmdOpenDialog
long onCmdOpenDialog(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:1608
GNEAttributeCarrier::TagProperties
struct with the attribute Properties
Definition: GNEAttributeCarrier.h:324
GNEFrameAttributesModuls::GenericParametersEditor::GenericParametersEditor
GenericParametersEditor()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:435
GNEFrameAttributesModuls::AttributesCreatorRow::checkComplexAttribute
std::string checkComplexAttribute(const std::string &value)
check if given complex attribute is valid
Definition: GNEFrameAttributesModuls.cpp:557
GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor
void refreshGenericParametersEditor()
refresh netedit attributes
Definition: GNEFrameAttributesModuls.cpp:1689
GNEFrameAttributesModuls::AttributesCreatorRow
Definition: GNEFrameAttributesModuls.h:52
GNEFrameAttributesModuls::AttributesEditor::getEditedACs
const std::vector< GNEAttributeCarrier * > & getEditedACs() const
get current edited ACs
Definition: GNEFrameAttributesModuls.cpp:1546
GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes
void updateDisjointAttributes(AttributesCreatorRow *row)
update disjoint attributes
Definition: GNEFrameAttributesModuls.cpp:738
GNEFrameAttributesModuls::AttributesCreator::myHelpButton
FXButton * myHelpButton
help button
Definition: GNEFrameAttributesModuls.h:213
GNEFrameAttributesModuls::NeteditAttributes::NeteditAttributes
NeteditAttributes()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:579
GNEFrameAttributesModuls::DrawingShape::addNewPoint
void addNewPoint(const Position &P)
add new point to temporal shape
Definition: GNEFrameAttributesModuls.cpp:1933
GNEFrameAttributesModuls::NeteditAttributes::myCloseShapeCheckButton
FXCheckButton * myCloseShapeCheckButton
checkbox to enable/disable closing polygon
Definition: GNEFrameAttributesModuls.h:624
GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
Definition: GNEFrameAttributesModuls.cpp:1363
GNEFrameAttributesModuls::NeteditAttributes
Definition: GNEFrameAttributesModuls.h:548
GNEFrameAttributesModuls::AttributesEditor::removeEditedAC
void removeEditedAC(GNEAttributeCarrier *AC)
remove edited ACs
Definition: GNEFrameAttributesModuls.cpp:1552
GNEFrameAttributesModuls::AttributesCreator::getCurrentTagProperties
GNEAttributeCarrier::TagProperties getCurrentTagProperties() const
get current edited Tag Properties
Definition: GNEFrameAttributesModuls.cpp:692
GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow
void enableAttributesCreatorRow()
enable row
Definition: GNEFrameAttributesModuls.cpp:327
GNEFrameAttributesModuls::NeteditAttributes::GNE_ADDITIONALREFERENCEPOINT_INVALID
Definition: GNEFrameAttributesModuls.h:587
GNEFrameAttributesModuls::AttributesCreator
Definition: GNEFrameAttributesModuls.h:157
GNEFrameAttributesModuls::AttributesEditorRow::myAttributeButtonCombinableChoices
FXButton * myAttributeButtonCombinableChoices
pointer to buttonCombinableChoices
Definition: GNEFrameAttributesModuls.h:280
GNEFrameAttributesModuls::AttributesEditor::myAttributesEditorRows
std::vector< AttributesEditorRow * > myAttributesEditorRows
list of Attribute editor rows
Definition: GNEFrameAttributesModuls.h:346
GNEFrameAttributesModuls::NeteditAttributes::GNE_ADDITIONALREFERENCEPOINT_RIGHT
Definition: GNEFrameAttributesModuls.h:585
GNEFrameAttributesModuls::AttributesCreator::areValuesValid
bool areValuesValid() const
check if parameters of attributes are valid
Definition: GNEFrameAttributesModuls.cpp:725
GNEFrameAttributesModuls::GenericParametersEditor::~GenericParametersEditor
~GenericParametersEditor()
destructor
Definition: GNEFrameAttributesModuls.cpp:1631
GNEFrameAttributesModuls::AttributesEditorRow::myAttributeLabel
FXLabel * myAttributeLabel
pointer to attribute label
Definition: GNEFrameAttributesModuls.h:271
GNEFrameAttributesModuls::AttributesEditor::myEditedACs
std::vector< GNEAttributeCarrier * > myEditedACs
the multi-selection currently being inspected
Definition: GNEFrameAttributesModuls.h:352
GNEFrameAttributesModuls::GenericParametersEditor::myACs
std::vector< GNEAttributeCarrier * > myACs
list of edited ACs
Definition: GNEFrameAttributesModuls.h:445
GNEFrameAttributesModuls::AttributesEditorRow::myValueComboBoxChoices
FXComboBox * myValueComboBoxChoices
pointer to combo box choices
Definition: GNEFrameAttributesModuls.h:295
GNEFrameAttributesModuls::AttributesCreatorRow::isAttributeValid
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
Definition: GNEFrameAttributesModuls.cpp:371
GNEFrameAttributesModuls::GenericParametersEditor::showGenericParametersEditor
void showGenericParametersEditor(GNEAttributeCarrier *AC)
show netedit attributes editor (used for edit generic parameters of an existent AC)
Definition: GNEFrameAttributesModuls.cpp:1637
GNEFrame
Definition: GNEFrame.h:35
GNEFrameAttributesModuls::AttributesCreator::myTagProperties
GNEAttributeCarrier::TagProperties myTagProperties
current edited Tag Properties
Definition: GNEFrameAttributesModuls.h:207
GNEFrameAttributesModuls::GenericParametersEditor::myEditGenericParameterButton
FXButton * myEditGenericParameterButton
button for add generic parameter
Definition: GNEFrameAttributesModuls.h:454
GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog
long onCmdOpenAttributeDialog(FXObject *, FXSelector, void *)
open model dialog for more comfortable attribute editing
Definition: GNEFrameAttributesModuls.cpp:1176
GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow
void refreshAttributesEditorRow(const std::string &value, bool forceRefresh, bool disjointAttributeEnabled)
refresh current row
Definition: GNEFrameAttributesModuls.cpp:1060
GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeCheckButton
FXCheckButton * myAttributeCheckButton
check button to enable/disable Label attribute
Definition: GNEFrameAttributesModuls.h:135
GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectRadioButton
long onCmdSelectRadioButton(FXObject *, FXSelector, void *)
called when user press a radio button
Definition: GNEFrameAttributesModuls.cpp:547
GNEFrameAttributesModuls::DrawingShape::myFrameParent
GNEFrame * myFrameParent
pointer to frame parent
Definition: GNEFrameAttributesModuls.h:523
GNEFrameAttributesModuls::DrawingShape::isDrawing
bool isDrawing() const
return true if currently a shape is drawed
Definition: GNEFrameAttributesModuls.cpp:1955
GNEFrameAttributesModuls::DrawingShape::onCmdStartDrawing
long onCmdStartDrawing(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:1973
GNEFrameAttributesModuls::DrawingShape::myTemporalShapeShape
PositionVector myTemporalShapeShape
current drawed shape
Definition: GNEFrameAttributesModuls.h:529
GNEFrameAttributesModuls::NeteditAttributes::helpReferencePoint
FXButton * helpReferencePoint
Button for help about the reference point.
Definition: GNEFrameAttributesModuls.h:627
GNEFrameAttributesModuls::DrawingShape::getTemporalShape
const PositionVector & getTemporalShape() const
get Temporal shape
Definition: GNEFrameAttributesModuls.cpp:1949
PositionVector
A list of positions.
Definition: PositionVector.h:46
GNEFrameAttributesModuls::GenericParametersEditor::myGenericParameters
std::vector< std::pair< std::string, std::string > > * myGenericParameters
pointer to current vector of generic parameters
Definition: GNEFrameAttributesModuls.h:448
GNEFrameAttributesModuls::DrawingShape::myStopDrawingButton
FXButton * myStopDrawingButton
button for stop drawing
Definition: GNEFrameAttributesModuls.h:535
GNEFrameAttributesModuls::AttributesEditorRow::myAttributeRadioButton
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
Definition: GNEFrameAttributesModuls.h:274
GNEFrameAttributesModuls::NeteditAttributes::~NeteditAttributes
~NeteditAttributes()
destructor
Definition: GNEFrameAttributesModuls.cpp:2032
GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul
void showAttributesCreatorModul(const GNEAttributeCarrier::TagProperties &myTagProperties)
show AttributesCreator modul
Definition: GNEFrameAttributesModuls.cpp:631
GNEFrameAttributesModuls::AttributesEditor
Definition: GNEFrameAttributesModuls.h:305
GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul
void hideAttributesCreatorModul()
hide group box
Definition: GNEFrameAttributesModuls.cpp:662
GNEFrameAttributesModuls::NeteditAttributes::myActualAdditionalReferencePoint
AdditionalReferencePoint myActualAdditionalReferencePoint
actual additional reference point selected in the match Box
Definition: GNEFrameAttributesModuls.h:633
GNEFrameAttributesModuls::AttributesCreator::Row
friend class Row
FOX-declaration.
Definition: GNEFrameAttributesModuls.h:162
GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues
std::map< SumoXMLAttr, std::string > getAttributesAndValues(bool includeAll) const
get attributes and their values
Definition: GNEFrameAttributesModuls.cpp:668
GNEFrameAttributesModuls::NeteditAttributes::setStartPosition
double setStartPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const
obtain the Start position values of StoppingPlaces and E2 detector over the lane
Definition: GNEFrameAttributesModuls.cpp:2262
GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldInt
FXTextField * myValueTextFieldInt
textField to modify the default value of int/float/string parameters
Definition: GNEFrameAttributesModuls.h:141
GNEFrameAttributesModuls::DrawingShape::myAbortDrawingButton
FXButton * myAbortDrawingButton
button for abort drawing
Definition: GNEFrameAttributesModuls.h:538
GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeCheckButtonCheck
bool getAttributeCheckButtonCheck() const
return status of label checkbox button
Definition: GNEFrameAttributesModuls.cpp:286
GNEFrameAttributesModuls::NeteditAttributes::myClosePolygonLabel
FXLabel * myClosePolygonLabel
Label for open/close polygon.
Definition: GNEFrameAttributesModuls.h:621
GNEFrameAttributesModuls::NeteditAttributes::myBlockShapeLabel
FXLabel * myBlockShapeLabel
Label for block shape.
Definition: GNEFrameAttributesModuls.h:615
GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldInt
FXTextField * myValueTextFieldInt
textField to modify the value of int attributes
Definition: GNEFrameAttributesModuls.h:286
GNEFrameAttributesModuls::NeteditAttributes::myLengthLabel
FXLabel * myLengthLabel
Label for length.
Definition: GNEFrameAttributesModuls.h:603
GNEFrameAttributesModuls::AttributesEditorExtended
Definition: GNEFrameAttributesModuls.h:362
GNEFrameAttributesModuls::DrawingShape::removeLastPoint
void removeLastPoint()
remove last added point
Definition: GNEFrameAttributesModuls.cpp:1943
GNEFrameAttributesModuls::AttributesEditorRow::destroy
void destroy()
destroy AttributesCreatorRow (but don't delete)
Definition: GNEFrameAttributesModuls.cpp:1051
GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeLabel
FXLabel * myAttributeLabel
Label with the name of the attribute.
Definition: GNEFrameAttributesModuls.h:129
GNEAttributeCarrier::AttributeProperties
struct with the attribute Properties
Definition: GNEAttributeCarrier.h:99
GNEFrameAttributesModuls::AttributesEditorRow::myAttributeColorButton
FXButton * myAttributeColorButton
Button for open color editor.
Definition: GNEFrameAttributesModuls.h:283
GNEFrameAttributesModuls::DrawingShape::hideDrawingShape
void hideDrawingShape()
hide Drawing mode
Definition: GNEFrameAttributesModuls.cpp:1882
GNEFrameAttributesModuls::AttributesEditorRow::myMultiple
const bool myMultiple
flag to check if input element contains multiple values
Definition: GNEFrameAttributesModuls.h:268
GNEFrameAttributesModuls::AttributesEditor::myHelpButton
FXButton * myHelpButton
button for help
Definition: GNEFrameAttributesModuls.h:349
GNEFrameAttributesModuls::NeteditAttributes::myReferencePointMatchBox
FXComboBox * myReferencePointMatchBox
match box with the list of reference points
Definition: GNEFrameAttributesModuls.h:600
GNEFrameAttributesModuls::AttributesCreatorRow::myValueTextFieldReal
FXTextField * myValueTextFieldReal
textField to modify the default value of real/times parameters
Definition: GNEFrameAttributesModuls.h:144
GNEFrameAttributesModuls::DrawingShape::myInformationLabel
FXLabel * myInformationLabel
Label with information.
Definition: GNEFrameAttributesModuls.h:541
GNEFrameAttributesModuls::AttributesCreator::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameAttributesModuls.h:200
GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck
void setAttributeCheckButtonCheck(bool value)
enable or disable label checkbox button for optional attributes
Definition: GNEFrameAttributesModuls.cpp:296
GNEFrameAttributesModuls::NeteditAttributes::myBlockMovementLabel
FXLabel * myBlockMovementLabel
Label for block movement.
Definition: GNEFrameAttributesModuls.h:609
GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeRadioButton
FXRadioButton * myAttributeRadioButton
Radio button for disjoint attributes.
Definition: GNEFrameAttributesModuls.h:132
GNEFrameAttributesModuls::AttributesCreatorRow::myAttributesCreatorParent
AttributesCreator * myAttributesCreatorParent
pointer to AttributesCreator
Definition: GNEFrameAttributesModuls.h:120
GNEFrameAttributesModuls::AttributesCreatorRow::getValue
std::string getValue() const
return value
Definition: GNEFrameAttributesModuls.cpp:231
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck
void setAttributeRadioButtonCheck(bool value)
enable or disable radio button for disjoint attributes
Definition: GNEFrameAttributesModuls.cpp:255
GNEFrameAttributesModuls::DrawingShape::abortDrawing
void abortDrawing()
abort drawing
Definition: GNEFrameAttributesModuls.cpp:1921
GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul
void showNeteditAttributesModul(const GNEAttributeCarrier::TagProperties &tagValue)
show Netedit attributes modul
Definition: GNEFrameAttributesModuls.cpp:2036
GNEFrameAttributesModuls::AttributesEditor::hideAttributesEditorModul
void hideAttributesEditorModul()
hide attribute editor
Definition: GNEFrameAttributesModuls.cpp:1492
GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectColorButton
long onCmdSelectColorButton(FXObject *, FXSelector, void *)
called when user press the "Color" button
Definition: GNEFrameAttributesModuls.cpp:528
GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute
long onCmdSetAttribute(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:383
GNEFrameAttributesModuls::DrawingShape::getDeleteLastCreatedPoint
bool getDeleteLastCreatedPoint()
get flag delete last created point
Definition: GNEFrameAttributesModuls.cpp:1967
GNEFrameAttributesModuls::DrawingShape::setDeleteLastCreatedPoint
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
Definition: GNEFrameAttributesModuls.cpp:1961
GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues
bool getNeteditAttributesAndValues(std::map< SumoXMLAttr, std::string > &valuesMap, const GNELane *lane) const
fill valuesMap with netedit attributes
Definition: GNEFrameAttributesModuls.cpp:2093
GNEFrameAttributesModuls::GenericParametersEditor::myAC
GNEAttributeCarrier * myAC
edited Attribute Carrier
Definition: GNEFrameAttributesModuls.h:442
GNEFrameAttributesModuls::NeteditAttributes::myCurrentLengthValid
bool myCurrentLengthValid
Flag to check if current length is valid.
Definition: GNEFrameAttributesModuls.h:630
GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton
long onCmdSelectRadioButton(FXObject *, FXSelector, void *)
set new disjoint attribute
Definition: GNEFrameAttributesModuls.cpp:1382
GNEFrameAttributesModuls::DrawingShape::DrawingShape
DrawingShape()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:519
GNEFrameAttributesModuls::AttributesCreatorRow::myInvalidValue
std::string myInvalidValue
string which indicates the reason due current value is invalid
Definition: GNEFrameAttributesModuls.h:126
GNEFrameAttributesModuls::GenericParametersEditor::myFrameParent
GNEFrame * myFrameParent
pointer to inspector frame parent
Definition: GNEFrameAttributesModuls.h:439
GNEFrameAttributesModuls::NeteditAttributes::myBlockMovementCheckButton
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
Definition: GNEFrameAttributesModuls.h:612
GNEFrameAttributesModuls::NeteditAttributes::myLengthTextField
FXTextField * myLengthTextField
textField for length
Definition: GNEFrameAttributesModuls.h:606
GNEFrameAttributesModuls::AttributesCreator::onCmdHelp
long onCmdHelp(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:829
GNEFrameAttributesModuls::AttributesEditorRow::myValueCheckButton
FXCheckButton * myValueCheckButton
pointer to menu check
Definition: GNEFrameAttributesModuls.h:298
GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled
bool isAttributesCreatorRowEnabled() const
check if row is enabled
Definition: GNEFrameAttributesModuls.cpp:355
GNEFrameAttributesModuls::AttributesCreatorRow::myAttributeColorButton
FXButton * myAttributeColorButton
Button for open color editor.
Definition: GNEFrameAttributesModuls.h:138
GNEFrameAttributesModuls::AttributesCreatorRow::destroy
void destroy()
destroy AttributesCreatorRow (but don't delete)
Definition: GNEFrameAttributesModuls.cpp:216
GNEFrameAttributesModuls::AttributesEditorExtended::showAttributesEditorExtendedModul
void showAttributesEditorExtendedModul()
show AttributesEditorExtended modul
Definition: GNEFrameAttributesModuls.cpp:1596
GNEFrameAttributesModuls::DrawingShape::startDrawing
void startDrawing()
start drawing
Definition: GNEFrameAttributesModuls.cpp:1891
GNEFrameAttributesModuls
Definition: GNEFrameAttributesModuls.h:38
GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldReal
FXTextField * myValueTextFieldReal
textField to modify the value of real/Time attributes
Definition: GNEFrameAttributesModuls.h:289
GNEFrameAttributesModuls::AttributesCreatorRow::getAttrProperties
const GNEAttributeCarrier::AttributeProperties & getAttrProperties() const
return Attr
Definition: GNEFrameAttributesModuls.cpp:225
GNEFrameAttributesModuls::DrawingShape::~DrawingShape
~DrawingShape()
destructor
Definition: GNEFrameAttributesModuls.cpp:1871
GNEFrameAttributesModuls::AttributesCreatorRow::myAttrProperties
const GNEAttributeCarrier::AttributeProperties myAttrProperties
attribute properties
Definition: GNEFrameAttributesModuls.h:123
GNEFrameAttributesModuls::DrawingShape::myDeleteLastCreatedPoint
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
Definition: GNEFrameAttributesModuls.h:526
GNEFrameAttributesModuls::GenericParametersEditor::getGenericParametersStr
std::string getGenericParametersStr() const
get generic parameters as string
Definition: GNEFrameAttributesModuls.cpp:1727
GNEFrameAttributesModuls::AttributesEditor::refreshAttributeEditor
void refreshAttributeEditor(bool forceRefreshShape, bool forceRefreshPosition)
refresh attribute editor (only the valid values will be refresh)
Definition: GNEFrameAttributesModuls.cpp:1501
GNEFrameAttributesModuls::DrawingShape::onCmdStopDrawing
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
Definition: GNEFrameAttributesModuls.cpp:1980
GNEFrameAttributesModuls::AttributesEditor::onCmdAttributesEditorHelp
long onCmdAttributesEditorHelp(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:1571
GNEFrameAttributesModuls::AttributesEditorRow::myValueTextFieldStrings
FXTextField * myValueTextFieldStrings
textField to modify the value of string attributes
Definition: GNEFrameAttributesModuls.h:292
GNEFrameAttributesModuls::NeteditAttributes::GNE_ADDITIONALREFERENCEPOINT_LEFT
Definition: GNEFrameAttributesModuls.h:584
GNEFrameAttributesModuls::DrawingShape::onCmdAbortDrawing
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
Definition: GNEFrameAttributesModuls.cpp:1987
GNEFrameAttributesModuls::AttributesEditorRow::myACAttr
const GNEAttributeCarrier::AttributeProperties myACAttr
current AC Attribute
Definition: GNEFrameAttributesModuls.h:265
GNEFrameAttributesModuls::AttributesEditor::myFrameParent
GNEFrame * myFrameParent
pointer to GNEFrame parent
Definition: GNEFrameAttributesModuls.h:343
GNEFrameAttributesModuls::DrawingShape::showDrawingShape
void showDrawingShape()
show Drawing mode
Definition: GNEFrameAttributesModuls.cpp:1874
GNEFrameAttributesModuls::NeteditAttributes::onCmdHelp
long onCmdHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
Definition: GNEFrameAttributesModuls.cpp:2209
GNEFrameAttributesModuls::AttributesEditorRow::myAttributesEditorParent
AttributesEditor * myAttributesEditorParent
pointer to AttributesEditor parent
Definition: GNEFrameAttributesModuls.h:262
GNEFrameAttributesModuls::GenericParametersEditor::hideGenericParametersEditor
void hideGenericParametersEditor()
hide netedit attributes editor
Definition: GNEFrameAttributesModuls.cpp:1681
GNEAttributeCarrier.h
GNEFrameAttributesModuls::GenericParametersEditor::myTextFieldGenericParameter
FXTextField * myTextFieldGenericParameter
text field for write generic parameter
Definition: GNEFrameAttributesModuls.h:451
GNEFrameAttributesModuls::DrawingShape::stopDrawing
void stopDrawing()
stop drawing and check if shape can be created
Definition: GNEFrameAttributesModuls.cpp:1903
GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectCheckButton
long onCmdSelectCheckButton(FXObject *, FXSelector, void *)
called when user press a check button
Definition: GNEFrameAttributesModuls.cpp:509
GNEFrameAttributesModuls::GenericParametersEditor
Definition: GNEFrameAttributesModuls.h:398
GNEFrameAttributesModuls::NeteditAttributes::myBlockShapeCheckButton
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
Definition: GNEFrameAttributesModuls.h:618
config.h
GNEFrameAttributesModuls::AttributesEditorExtended::hideAttributesEditorExtendedModul
void hideAttributesEditorExtendedModul()
hide group box
Definition: GNEFrameAttributesModuls.cpp:1602
GNEFrameAttributesModuls::AttributesEditorExtended::AttributesEditorExtended
AttributesEditorExtended()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:387
GNEViewNetHelper.h
GNEFrameAttributesModuls::AttributesEditor::myIncludeExtended
bool myIncludeExtended
flag used to mark if current edited ACs are bein edited including extended attribute
Definition: GNEFrameAttributesModuls.h:355
GNEFrameAttributesModuls::NeteditAttributes::GNE_ADDITIONALREFERENCEPOINT_CENTER
Definition: GNEFrameAttributesModuls.h:586
GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow
AttributesEditorRow()
FOX needs this.
Definition: GNEFrameAttributesModuls.cpp:1399
GNEFrameAttributesModuls::NeteditAttributes::onCmdSetNeteditAttribute
long onCmdSetNeteditAttribute(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:2150
GNEFrameAttributesModuls::AttributesEditorExtended::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameAttributesModuls.h:387
GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute
long onCmdSetAttribute(FXObject *, FXSelector, void *)
try to set new attribute value
Definition: GNEFrameAttributesModuls.cpp:1234
GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul
void hideNeteditAttributesModul()
hide Netedit attributes modul
Definition: GNEFrameAttributesModuls.cpp:2087
GNEFrameAttributesModuls::NeteditAttributes::setEndPosition
double setEndPosition(double positionOfTheMouseOverLane, double lengthOfAdditional) const
obtain the End position values of StoppingPlaces and E2 detector over the lane
Definition: GNEFrameAttributesModuls.cpp:2277
GNEFrameAttributesModuls::AttributesEditorRow::stripWhitespaceAfterComma
std::string stripWhitespaceAfterComma(const std::string &stringValue)
removed invalid spaces of Positions and shapes
Definition: GNEFrameAttributesModuls.cpp:1405
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:373
GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow
void disableAttributesCreatorRow()
disable row
Definition: GNEFrameAttributesModuls.cpp:341
GNEFrameAttributesModuls::AttributesEditor::getFrameParent
GNEFrame * getFrameParent() const
pointer to GNEFrame parent
Definition: GNEFrameAttributesModuls.cpp:1540
GNEFrameAttributesModuls::GenericParametersEditor::onCmdEditGenericParameter
long onCmdEditGenericParameter(FXObject *, FXSelector, void *)
Definition: GNEFrameAttributesModuls.cpp:1742
GNEFrameAttributesModuls::DrawingShape::myStartDrawingButton
FXButton * myStartDrawingButton
button for start drawing
Definition: GNEFrameAttributesModuls.h:532
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
GNEFrameAttributesModuls::AttributesEditor::AttributesEditor
AttributesEditor()
FOX needs this.
Definition: GNEFrameAttributesModuls.h:339
GNEFrameAttributesModuls::AttributesCreatorRow::myValueCheckButton
FXCheckButton * myValueCheckButton
check button to enable/disable the value of boolean parameters
Definition: GNEFrameAttributesModuls.h:150
GNEAttributeCarrier
Definition: GNEAttributeCarrier.h:54
GNEFrameAttributesModuls::AttributesEditorRow::isAttributesEditorRowValid
bool isAttributesEditorRowValid() const
check if current attribute of TextField/ComboBox is valid
Definition: GNEFrameAttributesModuls.cpp:1169
GNEFrameAttributesModuls::AttributesCreator::showWarningMessage
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
Definition: GNEFrameAttributesModuls.cpp:698
GNEFrameAttributesModuls::AttributesCreator::myAttributesCreatorRows
std::vector< AttributesCreatorRow * > myAttributesCreatorRows
vector with the AttributesCreatorRow
Definition: GNEFrameAttributesModuls.h:210
GNEFrameAttributesModuls::DrawingShape
Definition: GNEFrameAttributesModuls.h:461
GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter
long onCmdSetGenericParameter(FXObject *, FXSelector, void *)
Called when user udpate the generic parameter text field.
Definition: GNEFrameAttributesModuls.cpp:1772
GNEFrameAttributesModuls::AttributesEditor::showAttributeEditorModul
void showAttributeEditorModul(const std::vector< GNEAttributeCarrier * > &ACs, bool includeExtended)
show attributes of multiple ACs
Definition: GNEFrameAttributesModuls.cpp:1429
GNEFrameAttributesModuls::NeteditAttributes::myFrameParent
GNEFrame * myFrameParent
pointer to frame parent
Definition: GNEFrameAttributesModuls.h:597