Eclipse SUMO - Simulation of Urban MObility
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 More...
 
bool operator!= (const GUIVisualizationRainbowSettings &other)
 inequality comparator More...
 
bool operator== (const GUIVisualizationRainbowSettings &other)
 equality comparator More...
 
void print (OutputDevice &dev, const std::string &name) const
 print values in output device More...
 

Data Fields

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

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 285 of file GUIVisualizationSettings.cpp.

Member Function Documentation

◆ operator!=()

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

inequality comparator

Definition at line 310 of file GUIVisualizationSettings.cpp.

◆ operator==()

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

equality comparator

Definition at line 298 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 316 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: