54 std::map<std::string, GUIGlObject_AbstractAdd*>::iterator i;
81const std::vector<GUIGlObject_AbstractAdd*>&
89 std::vector<GUIGlID> ret;
96 ret.push_back(i->getGlID());
103 ret.push_back(i->getGlID());
110 ret.push_back(i->getGlID());
117 ret.push_back(i->getGlID());
122 if ((i->getType() & typeFilter) != 0) {
123 ret.push_back(i->getGlID());
@ GLO_ROUTEELEMENT
reserved GLO type to pack all RouteElements (note: In this case the sorting of GLO_<element> is impor...
@ GLO_ADDITIONALELEMENT
reserved GLO type for packing all additionals elements
@ GLO_NETWORK
The network - empty.
@ GLO_SHAPE
reserved GLO type to pack shapes
@ GLO_NETWORKELEMENT
reserved GLO type to pack all network elements
static const std::vector< GUIGlObject_AbstractAdd * > & getObjectList()
Returns the list of all additional objects.
static void remove(GUIGlObject_AbstractAdd *o)
Removes an object.
static void clearDictionary()
Clears the dictionary (the objects will not be deleted)
~GUIGlObject_AbstractAdd()
destructor
static GUIGlObject_AbstractAdd * get(const std::string &name)
Returns a named object.
static std::vector< GUIGlObject_AbstractAdd * > myObjectList
The list of all addtional objects currently loaded.
GUIGlObject_AbstractAdd(GUIGlObjectType type, const std::string &id, FXIcon *icon)
constructor
static std::vector< GUIGlID > getIDList(GUIGlObjectType typeFilter)
Returns the list of gl-ids of all additional objects that match the given type.
static std::map< std::string, GUIGlObject_AbstractAdd * > myObjects
Map from names of loaded additional objects to the objects themselves.
const std::string & getFullName() const