00001 /****************************************************************************/ 00007 // The GUI-version of a polygon 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 GUIPolygon2D_h 00020 #define GUIPolygon2D_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 <string> 00033 #include <utils/shapes/Polygon2D.h> 00034 #include <utils/gui/globjects/GUIGlObject_AbstractAdd.h> 00035 00036 00037 // =========================================================================== 00038 // class definitions 00039 // =========================================================================== 00040 /* 00041 * @class GUIPolygon2D 00042 * @brief The GUI-version of a polygon 00043 */ 00044 class GUIPolygon2D : public Polygon2D, public GUIGlObject_AbstractAdd { 00045 public: 00047 GUIPolygon2D(GUIGlObjectStorage &idStorage, int layer, 00048 const std::string name, const std::string type, 00049 const RGBColor &color, const Position2DVector &Pos, 00050 bool fill) throw(); 00051 00053 ~GUIPolygon2D() throw(); 00054 00055 00056 00058 00059 00067 GUIGLObjectPopupMenu *getPopUpMenu(GUIMainWindow &app, 00068 GUISUMOAbstractView &parent) throw(); 00069 00070 00078 GUIParameterTableWindow *getParameterWindow(GUIMainWindow &app, 00079 GUISUMOAbstractView &parent) throw(); 00080 00081 00087 const std::string &getMicrosimID() const throw(); 00088 00089 00095 Boundary getCenteringBoundary() const throw(); 00096 00097 00102 void drawGL(const GUIVisualizationSettings &s) const throw(); 00104 00105 00106 00108 int getLayer() const; 00109 00110 protected: 00115 int myLayer; 00116 00117 }; 00118 00119 00120 #endif 00121 00122 /****************************************************************************/ 00123
1.5.6