38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
46 bool GUIVisualizationSettings::UseMesoSim =
false;
53 : name(
""), antialiase(false), dither(false),
55 showGrid(false), gridXSize(100), gridYSize(100),
56 laneShowBorders(false), showLinkDecals(true), showRails(true),
57 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
58 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
59 streetName(false, 55,
RGBColor::YELLOW),
60 hideConnectors(false), laneWidthExaggeration(1),
61 vehicleQuality(0), minVehicleSize(1), vehicleExaggeration(1), showBlinker(true),
62 drawLaneChangePreference(false), drawMinGap(false),
63 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
64 personQuality(0), minPersonSize(1), personExaggeration(1),
65 personName(false, 50,
RGBColor(0, 153, 204, 255)),
66 drawLinkTLIndex(false), drawLinkJunctionIndex(false),
67 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
68 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
69 showLane2Lane(false), drawJunctionShape(true), addMode(0), minAddSize(1), addExaggeration(1),
70 addName(false, 50,
RGBColor(255, 0, 128, 255)),
71 minPOISize(0), poiExaggeration(1), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
72 minPolySize(0), polyExaggeration(1), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
79 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(179, 179, 179, 255),
"unselected",
true);
249 edgeColorer.addScheme(scheme);
253 edgeColorer.addScheme(scheme);
256 edgeColorer.addScheme(scheme);
259 edgeColorer.addScheme(scheme);
262 edgeColorer.addScheme(scheme);
265 edgeColorer.addScheme(scheme);
268 edgeColorer.addScheme(scheme);
282 return edgeColorer.getActive();
293 return edgeColorer.getScheme();
302 dev <<
"<viewsettings>\n";
303 dev <<
" <scheme name=\"" <<
name <<
"\">\n";
304 dev <<
" <opengl antialiase=\"" <<
antialiase <<
"\" dither=\"" <<
dither <<
"\"/>\n";
318 edgeColorer.save(dev);
320 dev <<
" </edges>\n";
330 dev <<
" </vehicles>\n";
338 dev <<
" </persons>\n";
348 dev <<
" </junctions>\n";
350 dev <<
" <additionals addMode=\"" <<
addMode
366 dev <<
" <legend showSizeLegend=\"" <<
showSizeLegend <<
"\"/>\n";
367 dev <<
" </scheme>\n";
368 dev <<
"</viewsettings>\n";
394 if (!(edgeColorer == v2.edgeColorer)) {
float vehicleExaggeration
The vehicle exaggeration (upscale)
GUIVisualizationTextSettings junctionName
static const RGBColor BLUE
bool showSizeLegend
Information whether the size legend shall be drawn.
GUIVisualizationTextSettings streetName
float laneWidthExaggeration
The lane exaggeration (upscale thickness)
size_t getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings addName
std::string print(const std::string &name) const
GUIVisualizationTextSettings personName
float minAddSize
The minimum size of additional structures to let them be drawn.
bool drawLinkTLIndex
Information whether a link's tls index shall be drawn.
GUIVisualizationTextSettings poiName
static const RGBColor WHITE
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
float polyExaggeration
The additional shapes (upscale)
GUIColorer laneColorer
The lane colorer.
Stores the information about how to visualize structures.
float poiExaggeration
The additional shapes (upscale)
bool drawLaneChangePreference
Information whether the lane change preference shall be drawn.
bool showRails
Information whether rails shall be drawn.
GUIVisualizationTextSettings vehicleName
void addScheme(GUIColorScheme scheme)
bool operator==(const GUIVisualizationSettings &vs2)
Assignment operator.
GUIVisualizationSettings()
constructor
bool laneShowBorders
Information whether lane borders shall be drawn.
static const RGBColor BLACK
bool dither
Information whether dithering shall be enabled.
float personExaggeration
The person exaggeration (upscale)
GUIColorer vehicleColorer
The vehicle colorer.
GUIVisualizationTextSettings edgeName
static const RGBColor GREEN
static const RGBColor GREY
std::string name
The name of this setting.
float addExaggeration
The additional structures exaggeration (upscale)
GUIVisualizationTextSettings internalEdgeName
bool drawMinGap
Information whether the minimum gap shall be drawn.
int addMode
The additional structures visualization scheme.
static const RGBColor MAGENTA
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
void setAllowsNegativeValues(bool value)
SUMOReal gridXSize
Information about the grid spacings.
const SVCPermissions SVCFreeForAll
vehicle is a passenger car (a "normal" car)
RGBColor backgroundColor
The background color to use.
bool antialiase
Information whether antialiase shall be enabled.
float minPOISize
The minimum size of shapes to let them be drawn.
static const RGBColor YELLOW
static const RGBColor RED
float minPersonSize
The minimum size of persons to let them be drawn.
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
GUIColorScheme & getScheme()
unsigned int addColor(const RGBColor &color, const SUMOReal threshold, const std::string &name="")
bool drawLinkJunctionIndex
Information whether a link's junction index shall be drawn.
int personQuality
The quality of person drawing.
bool showGrid
Information whether a grid shall be shown.
float minVehicleSize
The minimum size of vehicles to let them be drawn.
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
const SUMOReal DEFAULT_VEH_ACCEL
Static storage of an output device and its base (abstract) implementation.
void save(OutputDevice &dev) const
Writes the settings into an output device.
bool drawJunctionShape
whether the shape of the junction should be drawn
int vehicleQuality
The quality of vehicle drawing.
const SUMOReal DEFAULT_VEH_DECEL
void save(OutputDevice &dev) const
float minPolySize
The minimum size of shapes to let them be drawn.
GUIVisualizationTextSettings polyName