Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIGlObject.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
21// Base class for all objects that may be displayed within the openGL-gui
22/****************************************************************************/
23#include <config.h>
24
25#include <string>
26#include <stack>
44
45#include "GUIGlObject.h"
46#include "GUIGlObjectStorage.h"
47
48// ===========================================================================
49// static members
50// ===========================================================================
51
53 {"network", GLO_NETWORK},
54 //
55 {"networkElement", GLO_NETWORKELEMENT},
56 {"edge", GLO_EDGE},
57 {"lane", GLO_LANE},
58 {"junction", GLO_JUNCTION},
59 {"connection", GLO_CONNECTION},
60 {"crossing", GLO_CROSSING},
61 {"walkingArea", GLO_WALKINGAREA},
62 {"tlLogic", GLO_TLLOGIC},
63 {"edgeType", GLO_EDGETYPE},
64 {"laneType", GLO_LANETYPE},
65 //
66 {"parentChildLine", GLO_PARENTCHILDLINE},
67 //
68 {"additional", GLO_ADDITIONALELEMENT},
69 {"stoppingPlace", GLO_STOPPING_PLACE},
70 {"busStop", GLO_BUS_STOP},
71 {"trainStop", GLO_TRAIN_STOP},
72 {"access", GLO_ACCESS},
73 {"taz", GLO_TAZ},
74 {"containerStop", GLO_CONTAINER_STOP},
75 {"chargingStation", GLO_CHARGING_STATION},
76 {"parkingArea", GLO_PARKING_AREA},
77 {"stoppingPlaceLast", GLO_STOPPING_PLACE_LAST},
78 {"parkingSpace", GLO_PARKING_SPACE},
79 {"e1Detector", GLO_E1DETECTOR},
80 {"e1DetectorME", GLO_E1DETECTOR_ME},
81 {"e1DetectorInstant", GLO_E1DETECTOR_INSTANT},
82 {"e2Detector", GLO_E2DETECTOR},
83 {"e3Detector", GLO_E3DETECTOR},
84 {"entryDetector", GLO_DET_ENTRY},
85 {"exitDetector", GLO_DET_EXIT},
86 {"rerouter", GLO_REROUTER},
87 {"rerouterInterval", GLO_REROUTER_INTERVAL},
88 {"closingreroute", GLO_REROUTER_CLOSINGREROUTE},
89 {"closingLaneReroute", GLO_REROUTER_CLOSINGLANEREROUTE},
90 {"parkingAreaReroute", GLO_REROUTER_PARKINGAREAREROUTE},
91 {"destProbReroute", GLO_REROUTER_DESTPROBREROUTE},
92 {"routeProbReroute", GLO_REROUTER_ROUTEPROBREROUTE},
93 {"rerouterEdge", GLO_REROUTER_EDGE},
94 {"variableSpeedSign", GLO_VSS},
95 {"variableSpeedSignStep", GLO_VSS_STEP},
96 {"calibrator", GLO_CALIBRATOR},
97 {"routeProbe", GLO_ROUTEPROBE},
98 {"vaporizer", GLO_VAPORIZER},
99 {"wire", GLO_WIRE},
100 {"overheadWireSegment", GLO_OVERHEAD_WIRE_SEGMENT},
101 {"tractionsubstation", GLO_TRACTIONSUBSTATION},
102 {"additionalLast", GLO_ADDITIONALELEMENT_LAST},
103 //
104 {"laneArrows", GLO_LANEARROWS},
105 //
106 {"shape", GLO_SHAPE},
107 {"polygon", GLO_POLYGON},
108 {"poi", GLO_POI},
109 {"jupedsim.walkable_area", GLO_JPS_WALKABLEAREA},
110 {"jupedsim.obstacle", GLO_JPS_OBSTACLE},
111 {"shapeLast", GLO_SHAPE_LAST},
112 //
113 {"routeElement", GLO_ROUTEELEMENT},
114 {"vType", GLO_VTYPE},
115 //
116 {"route", GLO_ROUTE},
117 {"routeEmbedded", GLO_ROUTE_EMBEDDED},
118 //
119 {"ride", GLO_RIDE},
120 {"walk", GLO_WALK},
121 {"personTrip", GLO_PERSONTRIP},
122 {"transport", GLO_TRANSPORT},
123 {"tranship", GLO_TRANSHIP},
124 //
125 {"stop", GLO_STOP},
126 {"stopPlan", GLO_STOP_PLAN},
127 //
128 {"vehicle", GLO_VEHICLE},
129 {"trip", GLO_TRIP},
130 {"flow", GLO_FLOW},
131 {"routeFlow", GLO_ROUTEFLOW},
132 //
133 {"container", GLO_CONTAINER},
134 {"containerFlow", GLO_CONTAINERFLOW},
135 //
136 {"person", GLO_PERSON},
137 {"personFlow", GLO_PERSONFLOW},
138 //
139 {"edgeData", GLO_EDGEDATA},
140 {"edgeRelData", GLO_EDGERELDATA},
141 {"TAZRelData", GLO_TAZRELDATA},
142 //
143 {"lockIcon", GLO_LOCKICON},
144 {"textName", GLO_TEXTNAME},
145 {"frontElement", GLO_FRONTELEMENT},
146 {"geometryPoint", GLO_GEOMETRYPOINT},
147 {"dottedContour", GLO_DOTTEDCONTOUR},
148 {"temporalShape", GLO_TEMPORALSHAPE},
149 {"rectangleSelection", GLO_RECTANGLESELECTION},
150 {"testElement", GLO_TESTELEMENT},
151 //
152 {"undefined", GLO_MAX}
153};
154
155
156StringBijection<GUIGlObjectType> GUIGlObject::TypeNames(GUIGlObjectTypeNamesInitializer, GLO_MAX);
158const double GUIGlObject::INVALID_PRIORITY(-std::numeric_limits<double>::max());
159
160// ===========================================================================
161// method definitions
162// ===========================================================================
163
164GUIGlObject::GUIGlObject(GUIGlObjectType type, const std::string& microsimID, FXIcon* icon) :
165 myGlID(GUIGlObjectStorage::gIDStorage.registerObject(this)),
166 myGLObjectType(type),
167 myMicrosimID(microsimID),
168 myIcon(icon) {
169 // make sure that reserved GLO_ADDITIONALELEMENT isn't used
173}
174
175
177 // remove all paramWindow related with this object
178 for (const auto& paramWindow : myParamWindows) {
179 paramWindow->removeObject(this);
180 }
181 // remove object from GLObjectValuePassConnector and GUIGlObjectStorage
184}
185
186
187std::string
191
192
193FXIcon*
195 return myIcon;
196}
197
198
201 UNUSED_PARAMETER(&app);
202 UNUSED_PARAMETER(&parent);
203 return nullptr;
204}
205
206
207bool
209 // by default unlocked
210 return false;
211}
212
213
214void
216 // by default nothing to do
217}
218
219
220void
222 // by default nothing to do
223}
224
225
226void
228 // by default nothing to do
229}
230
231
232void
234 // by default nothing to update
235}
236
237
238const std::string
240 return "";
241}
242
243
244void
250
251
252void
257
258#ifdef HAVE_OSG
259
260osg::Node*
261GUIGlObject::getNode() const {
262 return myOSGNode;
263}
264
265
266void
267GUIGlObject::setNode(osg::Node* node) {
268 myOSGNode = node;
269}
270
271#endif
272
273void
275 new MFXMenuHeader(ret, app.getBoldFont(), getFullName().c_str(), myIcon, nullptr, 0);
276 if (OptionsCont::getOptions().getBool("gui-testing")) {
277 GUIDesigns::buildFXMenuCommand(ret, TL("Copy test coordinates to clipboard"), nullptr, ret, MID_COPY_TEST_COORDINATES);
278 }
279 if (addSeparator) {
280 new FXMenuSeparator(ret);
281 }
282}
283
284
285void
288 if (addSeparator) {
289 new FXMenuSeparator(ret);
290 }
291}
292
293
294void
296 GUIDesigns::buildFXMenuCommand(ret, TL("Copy name to clipboard"), nullptr, ret, MID_COPY_NAME);
297 GUIDesigns::buildFXMenuCommand(ret, TL("Copy typed name to clipboard"), nullptr, ret, MID_COPY_TYPED_NAME);
298 if (addSeparator) {
299 new FXMenuSeparator(ret);
300 }
301}
302
303
304void
308 } else {
310 }
311 if (addSeparator) {
312 new FXMenuSeparator(ret);
313 }
314}
315
316
317void
320 if (addSeparator) {
321 new FXMenuSeparator(ret);
322 }
323}
324
325
326void
329 if (addSeparator) {
330 new FXMenuSeparator(ret);
331 }
332}
333
334
335void
337 GUIDesigns::buildFXMenuCommand(ret, TL("Copy cursor position to clipboard"), nullptr, ret, MID_COPY_CURSOR_POSITION);
338 if (GeoConvHelper::getFinal().usingGeoProjection()) {
339 GUIDesigns::buildFXMenuCommand(ret, TL("Copy cursor geo-position to clipboard"), nullptr, ret, MID_COPY_CURSOR_GEOPOSITION);
340 // create menu pane for edge operations
341 FXMenuPane* showCursorGeoPositionPane = new FXMenuPane(ret);
342 ret->insertMenuPaneChild(showCursorGeoPositionPane);
343 new FXMenuCascade(ret, TL("Show cursor geo-position in "), nullptr, showCursorGeoPositionPane);
344 for (const auto& mapper : app.getOnlineMaps()) {
345 if (mapper.first == "GeoHack") {
347 } else if (mapper.first == "Google Maps") {
349 } else if (mapper.first == "OSM") {
351 } else {
352 GUIDesigns::buildFXMenuCommand(showCursorGeoPositionPane, mapper.first, nullptr, ret, MID_SHOW_GEOPOSITION_ONLINE);
353 }
354 }
355 }
356}
357
358
359void
362 if (addSeparator) {
363 new FXMenuSeparator(ret);
364 }
365}
366
367
368void
372
373
374void
376 std::set<GUIParameterTableWindow*>::iterator i = myParamWindows.find(t);
377 if (i != myParamWindows.end()) {
378 myParamWindows.erase(i);
379 }
380}
381
382
383void
385 assert(ret);
386 // build header (<tag>:<ID>
387 buildPopupHeader(ret, app, false);
388 // build center
390 // build copy name
392 // build select/unselect
394 // build show parameters
395 buildShowParamsPopupEntry(ret, false);
396 // build copy cursor position to clipboard
397 buildPositionCopyEntry(ret, app);
398 // only show type if isn't empty
399 if (type != "") {
400 GUIDesigns::buildFXMenuCommand(ret, TLF("type: %", type).c_str(), nullptr, nullptr, 0);
401 new FXMenuSeparator(ret);
402 }
403}
404
405
406void
408 assert(ret);
409 // build header (<tag>:<ID>
410 buildPopupHeader(ret, app, false);
411 // build center
413 // build copy name
415 // build select/unselect
417 // build show parameters
418 buildShowParamsPopupEntry(ret, false);
419 // build copy cursor position to clipboard
420 buildPositionCopyEntry(ret, app);
421 // only show type if isn't empty
422 if (type != "") {
423 GUIDesigns::buildFXMenuCommand(ret, TLF("type: %", type).c_str(), nullptr, nullptr, 0);
424 new FXMenuSeparator(ret);
425 }
426}
427
428
429std::string
433
434
435void
436GUIGlObject::drawName(const Position& pos, const double scale, const GUIVisualizationTextSettings& settings, const double angle, bool forceShow) const {
437 if (settings.show(this) || forceShow) {
438 GLHelper::drawTextSettings(settings, getMicrosimID(), pos, scale, angle);
439 }
440}
441
442
443/****************************************************************************/
@ MID_MANIP
Open the object's manipulator.
Definition GUIAppEnum.h:489
@ MID_ADDSELECT
Add to selected items - menu entry.
Definition GUIAppEnum.h:485
@ MID_COPY_CURSOR_GEOPOSITION
Copy cursor geo-coordinate position - popup entry.
Definition GUIAppEnum.h:463
@ MID_CENTER
Center view to object - popup entry.
Definition GUIAppEnum.h:451
@ MID_COPY_TEST_COORDINATES
Copy test coordinates.
Definition GUIAppEnum.h:457
@ MID_SHOW_GEOPOSITION_ONLINE
Show the cursor geo-coordinate position online in GeoHack - popup entry.
Definition GUIAppEnum.h:467
@ MID_COPY_TYPED_NAME
Copy typed object name - popup entry.
Definition GUIAppEnum.h:455
@ MID_COPY_CURSOR_POSITION
Copy cursor position - popup entry.
Definition GUIAppEnum.h:461
@ MID_SHOWPARS
Show object parameter - popup entry.
Definition GUIAppEnum.h:471
@ MID_COPY_NAME
Copy object name - popup entry.
Definition GUIAppEnum.h:453
@ MID_SHOWTYPEPARS
Show object type parameter - popup entry.
Definition GUIAppEnum.h:473
@ MID_REMOVESELECT
Remove from selected items - Menu Entry.
Definition GUIAppEnum.h:487
unsigned int GUIGlID
Definition GUIGlObject.h:43
GUIGlObjectType
@ GLO_EDGERELDATA
edge relation data
@ GLO_DET_EXIT
a DetExit detector
@ GLO_TAZRELDATA
TAZ relation data.
@ GLO_WALKINGAREA
a walkingArea
@ GLO_TEMPORALSHAPE
temporal shape (used in netedit)
@ GLO_VTYPE
@bief vTypes
@ GLO_ROUTEELEMENT
reserved GLO type to pack all RouteElements (note: In this case the sorting of GLO_<element> is impor...
@ GLO_JPS_WALKABLEAREA
walkable area
@ GLO_REROUTER_EDGE
a Rerouter over edge
@ GLO_TRIP
a trip
@ GLO_ROUTE_EMBEDDED
a route
@ GLO_BUS_STOP
a busStop
@ GLO_REROUTER_DESTPROBREROUTE
a destination probability reroute
@ GLO_TESTELEMENT
test element (used in netedit)
@ GLO_E2DETECTOR
a E2 detector
@ GLO_DET_ENTRY
a DetEntry detector
@ GLO_TRANSHIP
a container tranship
@ GLO_ROUTEPROBE
a RouteProbe
@ GLO_E1DETECTOR
a E1 detector
@ GLO_STOPPING_PLACE_LAST
reserved GLO type for packing all StoppingPlace elements
@ GLO_STOP_PLAN
a stop plan stop
@ GLO_ACCESS
a Acces
@ GLO_VAPORIZER
a Vaporizer
@ GLO_ROUTEFLOW
a routeFlow
@ GLO_WALK
a walk
@ GLO_CONTAINER_STOP
a containerStop
@ GLO_MAX
empty max
@ GLO_ROUTE
a route
@ GLO_WIRE
reserved GLO type for packing all wire elements
@ GLO_CALIBRATOR
a Calibrator
@ GLO_DOTTEDCONTOUR
dotted contour (used in netedit)
@ GLO_JUNCTION
a junction
@ GLO_E3DETECTOR
a E3 detector
@ GLO_FRONTELEMENT
front element (used in netedit)
@ GLO_LANE
a lane
@ GLO_TRAIN_STOP
a trainStop
@ GLO_RIDE
a ride
@ GLO_FLOW
a flow
@ GLO_GEOMETRYPOINT
geometry point (used in netedit)
@ GLO_CHARGING_STATION
a chargingStation
@ GLO_EDGETYPE
an edgeType
@ GLO_PARKING_AREA
a ParkingArea
@ GLO_VSS_STEP
a Variable Speed Sign step
@ GLO_TAZ
Traffic Assignment Zones (TAZs)
@ GLO_LANEARROWS
lane details
@ GLO_CONTAINER
a container
@ GLO_PARENTCHILDLINE
line between parent and childrens
@ GLO_JPS_OBSTACLE
obstacles
@ GLO_EDGEDATA
edge data
@ GLO_CONNECTION
a connection
@ GLO_REROUTER_PARKINGAREAREROUTE
a parking area reroute
@ GLO_ADDITIONALELEMENT
reserved GLO type for packing all additionals elements
@ GLO_PERSONTRIP
a person trip
@ GLO_EDGE
an edge
@ GLO_STOPPING_PLACE
reserved GLO type for packing all StoppingPlace elements
@ GLO_VEHICLE
a vehicle
@ GLO_PERSON
a person
@ GLO_SHAPE_LAST
reserved GLO type to pack shapes
@ GLO_TRANSPORT
a container transport
@ GLO_NETWORK
The network - empty.
@ GLO_SHAPE
reserved GLO type to pack shapes
@ GLO_POI
poi (over view, geo and lane)
@ GLO_REROUTER_CLOSINGLANEREROUTE
a closing lane reroute
@ GLO_RECTANGLESELECTION
rectangle selection shape (used in netedit)
@ GLO_STOP
a stop
@ GLO_LANETYPE
a laneType
@ GLO_OVERHEAD_WIRE_SEGMENT
a segment of an overhead line
@ GLO_TEXTNAME
text element (used in netedit)
@ GLO_NETWORKELEMENT
reserved GLO type to pack all network elements
@ GLO_REROUTER_CLOSINGREROUTE
a closing reroute
@ GLO_PARKING_SPACE
a ParkingSpace
@ GLO_CONTAINERFLOW
a person flow
@ GLO_POLYGON
polygon
@ GLO_TLLOGIC
a tl-logic
@ GLO_E1DETECTOR_ME
a E1 detector
@ GLO_CROSSING
a tl-logic
@ GLO_REROUTER
a Rerouter
@ GLO_PERSONFLOW
a person flow
@ GLO_E1DETECTOR_INSTANT
a E1 detector
@ GLO_REROUTER_INTERVAL
a rerouter interval
@ GLO_REROUTER_ROUTEPROBREROUTE
a route probability reroute
@ GLO_TRACTIONSUBSTATION
a segment of an overhead line
@ GLO_ADDITIONALELEMENT_LAST
reserved GLO type for packing all additionals elements
@ GLO_VSS
a Variable Speed Sign
@ GLO_LOCKICON
Lock icon (used in netedit)
GUISelectedStorage gSelected
A global holder of selected objects.
@ RECENTERVIEW
@ GEOHACK
icons for geo tools
#define TL(string)
Definition MsgHandler.h:315
#define TLF(string,...)
Definition MsgHandler.h:317
#define UNUSED_PARAMETER(x)
Definition StdDefs.h:30
static void drawTextSettings(const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048, const int align=0)
Definition GLHelper.cpp:787
static void removeObject(GUIGlObject &o)
Removes all instances that pass values from the object with the given id.
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel, const bool disable=false)
build menu command
The popup menu of a globject.
void insertMenuPaneChild(FXMenuPane *child)
Insert a sub-menu pane in this GUIGLObjectPopupMenu.
FXIcon * getGLIcon() const
get icon associated with this GL Object
static const double INVALID_PRIORITY
Definition GUIGlObject.h:73
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
std::string myMicrosimID
ID of GL object.
virtual void markAsFrontElement()
mark element as front element (Currently used only in netedit)
std::string myFullName
full name of GL Object
void buildShowTypeParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the type parameter window.
void buildShowManipulatorPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the manipulator window.
virtual void deleteGLObject()
delete GLObject (Currently used only in netedit)
const GUIGlObjectType myGLObjectType
The type of the object.
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
virtual const std::string getOptionalName() const
Returns the name of the object (default "")
static const GUIGlID INVALID_ID
Definition GUIGlObject.h:72
void buildShapePopupOptions(GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer[]
vector for TypeNames Initializer
Definition GUIGlObject.h:52
virtual void setMicrosimID(const std::string &newID)
Changes the microsimID of the object.
const std::string & getFullName() const
Definition GUIGlObject.h:94
virtual std::string getParentName() const
Returns the name of the parent object (if any)
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
virtual void updateGLObject()
update GLObject (geometry, ID, etc.) (optional)
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
void addParameterTable(GUIParameterTableWindow *w)
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
static StringBijection< GUIGlObjectType > TypeNames
associates object types with strings
Definition GUIGlObject.h:71
void buildAdditionalsPopupOptions(GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual ~GUIGlObject()
Destructor.
void removeParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was closed.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additional, user-triggered visualisations.
virtual bool isGLObjectLocked() const
check if element is locked (Currently used only in netedit)
virtual void selectGLObject()
select GLObject (Currently used only in netedit)
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
FXIcon * myIcon
icon associatd with this GL Object
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, const GUIMainWindow &app) const
Builds an entry which allows to copy the cursor position if geo projection is used,...
GUIGlID getGlID() const
Returns the numerical id of the object.
std::string createFullName() const
create full name
std::set< GUIParameterTableWindow * > myParamWindows
Parameter table windows which refer to this object.
GUIGlObject(GUIGlObjectType type, const std::string &microsimID, FXIcon *icon)
Constructor.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const
draw name of item
A storage for of displayed objects via their numerical id.
void changeName(GUIGlObject *object, const std::string &fullName)
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
bool remove(GUIGlID id)
Removes the named object from this container.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
FXFont * getBoldFont()
get bold front
const std::map< std::string, std::string > & getOnlineMaps() const
A window containing a gl-object's parameter.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
Stores the information about how to visualize structures.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
static OptionsCont & getOptions()
Retrieves the options.
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
const std::string & getString(const T key) const
static std::string emptyString
An empty string.
Definition StringUtils.h:86
bool show(const GUIGlObject *o) const
whether to show the text