SUMO - Simulation of Urban MObility
GUIPolygon.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // The GUI-version of a polygon
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 #ifndef GUIPolygon_h
00023 #define GUIPolygon_h
00024 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <string>
00036 #include <utils/shapes/Polygon.h>
00037 #include <utils/gui/globjects/GUIGlObject_AbstractAdd.h>
00038 
00039 
00040 // ===========================================================================
00041 // class definitions
00042 // ===========================================================================
00043 /*
00044  * @class GUIPolygon
00045  * @brief The GUI-version of a polygon
00046  */
00047 class GUIPolygon : public Polygon, public GUIGlObject_AbstractAdd {
00048 public:
00057     GUIPolygon(int layer,
00058                const std::string name, const std::string type,
00059                const RGBColor& color, const PositionVector& shape,
00060                bool fill) ;
00061 
00063     ~GUIPolygon() ;
00064 
00065 
00066 
00068 
00069 
00077     GUIGLObjectPopupMenu* getPopUpMenu(GUIMainWindow& app,
00078                                        GUISUMOAbstractView& parent) ;
00079 
00080 
00088     GUIParameterTableWindow* getParameterWindow(GUIMainWindow& app,
00089             GUISUMOAbstractView& parent) ;
00090 
00091 
00097     Boundary getCenteringBoundary() const ;
00098 
00099 
00104     void drawGL(const GUIVisualizationSettings& s) const ;
00106 
00107 
00108 
00110     int getLayer() const;
00111 
00112 protected:
00116     int myLayer;
00117 
00118 };
00119 
00120 
00121 #endif
00122 
00123 /****************************************************************************/
00124 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines