![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIPropertyScheme.h>
Public Member Functions | |
| int | addColor (const T &color, const double threshold, const std::string &name="") |
| bool | allowsNegativeValues () const |
| void | clear () |
| const RGBColor & | getBackgroundColor () const |
| T | getColor (const double value) const |
| const std::vector< T > & | getColors () const |
| GUIIcon | getIcon () const |
| const std::string & | getName () const |
| const std::vector< std::string > & | getNames () const |
| std::string | getTagName (std::vector< double >) const |
| std::string | getTagName (std::vector< RGBColor >) const |
| const std::vector< double > & | getThresholds () const |
| const std::string & | getTranslatedName () const |
| GUIPropertyScheme (const std::string &name, const std::string &translatedName, const T &baseColor, const std::string &colName="", const bool isFixed=false, double baseValue=0, RGBColor bgColor=RGBColor::WHITE, GUIIcon icon=GUIIcon::EMPTY) | |
| Constructor. | |
| GUIPropertyScheme (const std::string &name, const T &baseColor, const std::string &colName="", const bool isFixed=false, double baseValue=0, RGBColor bgColor=RGBColor::WHITE, GUIIcon icon=GUIIcon::EMPTY) | |
| double | interpolate (const double &min, const double &max, double weight) const |
| specializations for GUIScaleScheme | |
| RGBColor | interpolate (const RGBColor &min, const RGBColor &max, double weight) const |
| specializations for GUIColorScheme | |
| bool | isFixed () const |
| bool | isInterpolated () const |
| bool | operator== (const GUIPropertyScheme &c) const |
| void | removeColor (const int pos) |
| void | save (OutputDevice &dev, const std::string &prefix="") const |
| void | setAllowsNegativeValues (bool value) |
| void | setColor (const int pos, const T &color) |
| bool | setColor (const std::string &name, const T &color) |
| void | setInterpolated (const bool interpolate, double interpolationStart=0.f) |
| void | setThreshold (const int pos, const double threshold) |
Private Attributes | |
| bool | myAllowNegativeValues |
| RGBColor | myBgColor |
| std::vector< T > | myColors |
| GUIIcon | myIcon |
| bool | myIsFixed |
| bool | myIsInterpolated |
| std::string | myName |
| std::vector< std::string > | myNames |
| std::vector< double > | myThresholds |
| std::string | myTranslatedName |
This class provides a mapping from real values to properties (mainly colors). Each color is stored along with a threshold value. Color values between thresholds are obtained by interpolation
Definition at line 43 of file GUIPropertyScheme.h.
|
inline |
Constructor.
Definition at line 46 of file GUIPropertyScheme.h.
|
inline |
Definition at line 60 of file GUIPropertyScheme.h.
|
inline |
Definition at line 94 of file GUIPropertyScheme.h.
Referenced by GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GUISUMOAbstractView::buildMinMaxRainbow(), GUIOverheadWire::drawGL(), GUIPropertyScheme< RGBColor >::GUIPropertyScheme(), GUIPropertyScheme< RGBColor >::GUIPropertyScheme(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GUIDialog_ViewSettings::updateColorRanges(), and GUIDialog_ViewSettings::updateScaleRanges().
|
inline |
Definition at line 179 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrix(), and GUIDialog_ViewSettings::rebuildScaleMatrix().
|
inline |
Definition at line 118 of file GUIPropertyScheme.h.
Referenced by GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GUISUMOAbstractView::buildMinMaxRainbow(), and GUIOverheadWire::drawGL().
|
inline |
Definition at line 191 of file GUIPropertyScheme.h.
|
inline |
Definition at line 124 of file GUIPropertyScheme.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEEdge::drawEdgeName(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GNEWalkingArea::drawWalkingArea(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEDemandElement::getColorByScheme(), GUIBaseVehicle::getExaggeration(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), GNEJunction::setColor(), GNETAZRelData::setColor(), GUIBaseVehicle::setColor(), GUIContainer::setColor(), GUIEdge::setColor(), GUILane::setColor(), GUIPerson::setColor(), GUIPolygon::setColor(), GUILane::setFunctionalColor(), GNELane::setLaneColor(), GNELane::setMultiColor(), GUIEdge::setMultiColor(), GUILane::setMultiColor(), and GUIPointOfInterest::setPOIColor().
|
inline |
Definition at line 159 of file GUIPropertyScheme.h.
Referenced by GUISUMOAbstractView::displayColorLegend(), GUIDialog_ViewSettings::rebuildColorMatrix(), and GUIDialog_ViewSettings::rebuildScaleMatrix().
|
inline |
Definition at line 187 of file GUIPropertyScheme.h.
|
inline |
Definition at line 151 of file GUIPropertyScheme.h.
Referenced by GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GUISUMOAbstractView::buildMinMaxRainbow(), GUISUMOAbstractView::displayColorLegend(), GUIDialog_ViewSettings::onCmdColorChange(), GNEEdgeData::setColor(), and GNEEdgeRelData::setColor().
|
inline |
Definition at line 171 of file GUIPropertyScheme.h.
Referenced by GUISUMOAbstractView::displayColorLegend(), GUIDialog_ViewSettings::rebuildColorMatrix(), and GUIDialog_ViewSettings::rebuildScaleMatrix().
|
inline |
Definition at line 250 of file GUIPropertyScheme.h.
|
inline |
Definition at line 240 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::save().
|
inline |
Definition at line 163 of file GUIPropertyScheme.h.
Referenced by GUISUMOAbstractView::displayColorLegend(), GUIDialog_ViewSettings::rebuildColorMatrix(), and GUIDialog_ViewSettings::rebuildScaleMatrix().
|
inline |
Definition at line 155 of file GUIPropertyScheme.h.
|
inline |
specializations for GUIScaleScheme
Definition at line 246 of file GUIPropertyScheme.h.
|
inline |
specializations for GUIColorScheme
Definition at line 236 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::getColor().
|
inline |
Definition at line 175 of file GUIPropertyScheme.h.
Referenced by GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GUISUMOAbstractView::displayColorLegend(), GUIDialog_ViewSettings::rebuildColorMatrix(), GUIDialog_ViewSettings::rebuildScaleMatrix(), GUIDialog_ViewSettings::updateColorRanges(), and GUIDialog_ViewSettings::updateScaleRanges().
|
inline |
Definition at line 167 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrix(), and GUIDialog_ViewSettings::rebuildScaleMatrix().
|
inline |
Definition at line 230 of file GUIPropertyScheme.h.
|
inline |
Definition at line 111 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::updateColorRanges(), and GUIDialog_ViewSettings::updateScaleRanges().
|
inline |
Definition at line 195 of file GUIPropertyScheme.h.
|
inline |
Definition at line 183 of file GUIPropertyScheme.h.
Referenced by GUIVisualizationSettings::initNeteditDefaults(), and GUIVisualizationSettings::initSumoGuiDefaults().
|
inline |
Definition at line 78 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::updateColorRanges(), and GUIDialog_ViewSettings::updateScaleRanges().
|
inline |
Definition at line 82 of file GUIPropertyScheme.h.
|
inline |
Definition at line 144 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
inline |
Definition at line 74 of file GUIPropertyScheme.h.
Referenced by GUIDialog_ViewSettings::updateColorRanges(), and GUIDialog_ViewSettings::updateScaleRanges().
|
private |
Definition at line 263 of file GUIPropertyScheme.h.
|
private |
Definition at line 265 of file GUIPropertyScheme.h.
|
private |
Definition at line 258 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::operator==().
|
private |
Definition at line 264 of file GUIPropertyScheme.h.
|
private |
Definition at line 262 of file GUIPropertyScheme.h.
|
private |
Definition at line 260 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::operator==().
|
private |
Definition at line 256 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::operator==().
|
private |
Definition at line 261 of file GUIPropertyScheme.h.
|
private |
Definition at line 259 of file GUIPropertyScheme.h.
Referenced by GUIPropertyScheme< RGBColor >::operator==().
|
private |
Definition at line 257 of file GUIPropertyScheme.h.