Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIVisualizationRainbowSettings Struct Reference

#include <GUIVisualizationSettings.h>

Public Member Functions

 GUIVisualizationRainbowSettings (bool _hideMin, double _minThreshold, bool _hideMax, double _maxThreshold, bool _setNeutral, double _neutralThreshold, bool _fixRange, int _rainboScheme)
 constructor
bool operator!= (const GUIVisualizationRainbowSettings &other)
 inequality comparator
bool operator== (const GUIVisualizationRainbowSettings &other)
 equality comparator
void print (OutputDevice &dev, const std::string &name) const
 print values in output device

Data Fields

std::vector< RGBColorcolors
 color steps for the rainbow;
bool fixRange
 whether the color scale should be fixed to the given min/max values
bool hideMax
 whether data above threshold should not be colored
bool hideMin
 whether data below threshold should not be colored
double maxThreshold
 threshold above which value should not be colored
double minThreshold
 threshold below which value should not be colored
double neutralThreshold
 neutral point of scale
int rainbowScheme
 index in the list of color schemes
bool setNeutral
 whether the scale should be centered at a specific value

Detailed Description

Definition at line 89 of file GUIVisualizationSettings.h.

Constructor & Destructor Documentation

◆ GUIVisualizationRainbowSettings()

GUIVisualizationRainbowSettings::GUIVisualizationRainbowSettings ( bool _hideMin,
double _minThreshold,
bool _hideMax,
double _maxThreshold,
bool _setNeutral,
double _neutralThreshold,
bool _fixRange,
int _rainboScheme )

constructor

Definition at line 290 of file GUIVisualizationSettings.cpp.

References colors, fixRange, hideMax, hideMin, maxThreshold, minThreshold, neutralThreshold, rainbowScheme, and setNeutral.

Referenced by operator!=(), and operator==().

Here is the caller graph for this function:

Member Function Documentation

◆ operator!=()

bool GUIVisualizationRainbowSettings::operator!= ( const GUIVisualizationRainbowSettings & other)

inequality comparator

Definition at line 318 of file GUIVisualizationSettings.cpp.

References GUIVisualizationRainbowSettings().

◆ operator==()

bool GUIVisualizationRainbowSettings::operator== ( const GUIVisualizationRainbowSettings & other)

◆ print()

void GUIVisualizationRainbowSettings::print ( OutputDevice & dev,
const std::string & name ) const

print values in output device

Definition at line 324 of file GUIVisualizationSettings.cpp.

References fixRange, hideMax, hideMin, maxThreshold, minThreshold, neutralThreshold, rainbowScheme, setNeutral, and OutputDevice::writeAttr().

Field Documentation

◆ colors

std::vector<RGBColor> GUIVisualizationRainbowSettings::colors

color steps for the rainbow;

Definition at line 121 of file GUIVisualizationSettings.h.

Referenced by GUISUMOAbstractView::buildMinMaxRainbow(), and GUIVisualizationRainbowSettings().

◆ fixRange

bool GUIVisualizationRainbowSettings::fixRange

◆ hideMax

◆ hideMin

◆ maxThreshold

◆ minThreshold

◆ neutralThreshold

◆ rainbowScheme

◆ setNeutral

bool GUIVisualizationRainbowSettings::setNeutral

The documentation for this struct was generated from the following files: