GUIGlObject_AbstractAdd.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Base class for additional objects (emitter, detectors etc.)
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUIGlObject_AbstractAdd_h
00020 #define GUIGlObject_AbstractAdd_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include "GUIGlObjectTypes.h"
00033 #include "GUIGlObject.h"
00034 #include <utils/geom/Position2D.h>
00035 #include <vector>
00036 #include <map>
00037 
00038 
00039 // ===========================================================================
00040 // class definitions
00041 // ===========================================================================
00045 class GUIGlObject_AbstractAdd :
00046             public GUIGlObject {
00047 public:
00048     GUIGlObject_AbstractAdd(GUIGlObjectStorage &idStorage,
00049                             std::string fullName, GUIGlObjectType type) throw();
00050 
00052     GUIGlObject_AbstractAdd(std::string fullName, GLuint glID, GUIGlObjectType type) throw();
00053 
00054     ~GUIGlObject_AbstractAdd() throw();
00055 
00056 
00059 
00064     GUIGlObjectType getType() const throw();
00066 
00067 
00068     void drawGLName(const Position2D &p, const std::string &id, SUMOReal nameScale) const;
00069 
00070 
00072     static void clearDictionary();
00073 
00075     static GUIGlObject_AbstractAdd *get(const std::string &name);
00076 
00078     static const std::vector<GUIGlObject_AbstractAdd*> &getObjectList();
00079 
00081     static std::vector<GLuint> getIDList();
00082 
00083 protected:
00085     GUIGlObjectType myGlType;
00086 
00087 protected:
00089     static std::map<std::string, GUIGlObject_AbstractAdd*> myObjects;
00090 
00092     static std::vector<GUIGlObject_AbstractAdd*> myObjectList;
00093 
00094 };
00095 
00096 
00097 #endif
00098 
00099 /****************************************************************************/
00100 

Generated on Wed May 5 00:06:29 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6