 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
55 std::map<std::string, GUIGlObject_AbstractAdd*>::iterator i;
82 const std::vector<GUIGlObject_AbstractAdd*>&
90 std::vector<GUIGlID> ret;
97 ret.push_back(i->getGlID());
104 ret.push_back(i->getGlID());
111 ret.push_back(i->getGlID());
118 ret.push_back(i->getGlID());
123 if ((i->getType() & typeFilter) != 0) {
124 ret.push_back(i->getGlID());
static std::vector< GUIGlID > getIDList(GUIGlObjectType typeFilter)
Returns the list of gl-ids of all additional objects that match the given type.
GUIGlObject_AbstractAdd(GUIGlObjectType type, const std::string &id)
constructor
const std::string & getFullName() const
static std::vector< GUIGlObject_AbstractAdd * > myObjectList
The list of all addtional objects currently loaded.
static void remove(GUIGlObject_AbstractAdd *o)
Removes an object.
static GUIGlObject_AbstractAdd * get(const std::string &name)
Returns a named object.
@ GLO_ROUTEELEMENT
reserved GLO type to pack all RouteElements (note: In this case the sorting of GLO_<element> is impor...
@ GLO_SHAPE
reserved GLO type to pack shapes
static void clearDictionary()
Clears the dictionary (the objects will not be deleted)
@ GLO_NETELEMENT
reserved GLO type to pack all netElements
static const std::vector< GUIGlObject_AbstractAdd * > & getObjectList()
Returns the list of all additional objects.
static std::map< std::string, GUIGlObject_AbstractAdd * > myObjects
Map from names of loaded additional objects to the objects themselves.
@ GLO_ADDITIONAL
reserved GLO type to pack all additionals
~GUIGlObject_AbstractAdd()
destructor
@ GLO_NETWORK
The network - empty.