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)
 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
 
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 
)

constructor

Definition at line 289 of file GUIVisualizationSettings.cpp.

Member Function Documentation

◆ operator!=()

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

inequality comparator

Definition at line 314 of file GUIVisualizationSettings.cpp.

◆ operator==()

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

equality comparator

Definition at line 302 of file GUIVisualizationSettings.cpp.

References fixRange, hideMin, maxThreshold, minThreshold, neutralThreshold, and setNeutral.

◆ print()

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

print values in output device

Definition at line 320 of file GUIVisualizationSettings.cpp.

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

Referenced by GUIVisualizationSettings::save().

Here is the caller graph for this function:

Field Documentation

◆ colors

std::vector<RGBColor> GUIVisualizationRainbowSettings::colors

color steps for the rainbow;

Definition at line 118 of file GUIVisualizationSettings.h.

Referenced by GUISUMOAbstractView::buildMinMaxRainbow(), and GUIDialog_ViewSettings::RainbowPanel::getSettings().

◆ fixRange

bool GUIVisualizationRainbowSettings::fixRange

◆ hideMax

bool GUIVisualizationRainbowSettings::hideMax

◆ hideMin

◆ maxThreshold

double GUIVisualizationRainbowSettings::maxThreshold

◆ minThreshold

double GUIVisualizationRainbowSettings::minThreshold

◆ neutralThreshold

◆ setNeutral

bool GUIVisualizationRainbowSettings::setNeutral

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