SUMO - Simulation of Urban MObility
Shape.cpp
Go to the documentation of this file.
1 /****************************************************************************/
8 // A 2D- or 3D-Shape
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2012-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include "Shape.h"
33 
34 // ===========================================================================
35 // static member definitions
36 // ===========================================================================
37 const std::string Shape::DEFAULT_TYPE = "";
38 const double Shape::DEFAULT_LAYER = 128;
39 const double Shape::DEFAULT_ANGLE = 0;
40 const std::string Shape::DEFAULT_IMG_FILE = "";
41 const double Shape::DEFAULT_IMG_WIDTH = 1;
42 const double Shape::DEFAULT_IMG_HEIGHT = 1;
43 
44 // ===========================================================================
45 // member definitions
46 // ===========================================================================
47 Shape::Shape(const std::string& id, const std::string& type,
48  const RGBColor& color, double layer,
49  double angle, const std::string& imgFile) :
50  Named(id),
51  myType(type),
52  myColor(color),
53  myLayer(layer),
54  myNaviDegreeAngle(angle),
55  myImgFile(imgFile) {
56 }
57 
58 
60 
61 
62 /****************************************************************************/
63 
static const std::string DEFAULT_IMG_FILE
Definition: Shape.h:152
static const double DEFAULT_IMG_HEIGHT
Definition: Shape.h:154
Shape(const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile)
Constructor.
Definition: Shape.cpp:47
static const std::string DEFAULT_TYPE
Definition: Shape.h:149
virtual ~Shape()
Destructor.
Definition: Shape.cpp:59
Base class for objects which have an id.
Definition: Named.h:46
static const double DEFAULT_IMG_WIDTH
Definition: Shape.h:153
static const double DEFAULT_ANGLE
Definition: Shape.h:151
static const double DEFAULT_LAYER
Definition: Shape.h:150