Eclipse SUMO - Simulation of Urban MObility
|
Base class for coloring. Allows changing the used colors and sets the used color in dependence to a value. More...
#include <GUIPropertySchemeStorage.h>
Public Member Functions | |
void | addScheme (T scheme) |
void | fill (MFXComboBoxIcon &cb) |
Fills the given combobox with the names of available colorings. | |
int | getActive () const |
T & | getScheme () |
const T & | getScheme () const |
T * | getSchemeByName (std::string name) |
const std::vector< T > & | getSchemes () const |
GUIPropertySchemeStorage () | |
Constructor. | |
bool | operator== (const GUIPropertySchemeStorage &c) const |
void | save (OutputDevice &dev, const std::string &prefix="") const |
void | setActive (int scheme) |
void | setSchemeByName (std::string name) |
int | size () const |
virtual | ~GUIPropertySchemeStorage () |
Destructor. | |
Protected Attributes | |
int | myActiveScheme |
std::vector< T > | mySchemes |
Base class for coloring. Allows changing the used colors and sets the used color in dependence to a value.
Definition at line 49 of file GUIPropertySchemeStorage.h.
|
inline |
Constructor.
Definition at line 52 of file GUIPropertySchemeStorage.h.
|
inlinevirtual |
Destructor.
Definition at line 55 of file GUIPropertySchemeStorage.h.
|
inline |
Definition at line 118 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUIVisualizationSettings::initNeteditDefaults(), and GUIVisualizationSettings::initSumoGuiDefaults().
|
inline |
Fills the given combobox with the names of available colorings.
Definition at line 58 of file GUIPropertySchemeStorage.h.
References MFXComboBoxIcon::appendIconItem(), EMPTY, MFXUtils::getFXColor(), GUIIconSubSys::getIcon(), GUIPropertySchemeStorage< T >::myActiveScheme, GUIPropertySchemeStorage< T >::mySchemes, and MFXComboBoxIcon::setCurrentItem().
Referenced by GUIDialog_ViewSettings::buildContainersFrame(), GUIDialog_ViewSettings::buildDataFrame(), GUIDialog_ViewSettings::buildJunctionsFrame(), GUIDialog_ViewSettings::buildPersonsFrame(), GUIDialog_ViewSettings::buildPOIsFrame(), GUIDialog_ViewSettings::buildPolygonsFrame(), GUIDialog_ViewSettings::buildStreetsFrame(), and GUIDialog_ViewSettings::buildVehiclesFrame().
|
inline |
Definition at line 73 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeName(), GNEEdge::drawEdgeShape(), GNEEdge::drawEndGeometryPoint(), GUIJunctionWrapper::drawGL(), GNEPerson::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIBaseVehicle::drawOnPos(), GNELane::drawStartEndGeometryPoints(), GNEEdge::drawStartGeometryPoint(), GNEDemandElement::getColorByScheme(), GUILane::getColorValueForTracker(), GUIBaseVehicle::getExaggeration(), GUIVisualizationSettings::getLaneEdgeMode(), GUIVisualizationSettings::getLaneEdgeScaleMode(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUIViewTraffic::onCmdShowReachability(), GUIVisualizationSettings::save(), GUIBaseVehicle::setColor(), GUIContainer::setColor(), GUIEdge::setColor(), GUILane::setColor(), GUIPerson::setColor(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), GNETAZRelData::setColor(), GNEJunction::setColor(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIEdge::setFunctionalColor(), GUILane::setFunctionalColor(), GNELane::setLaneColor(), GUIEdge::setMultiColor(), GUILane::setMultiColor(), and GNELane::setMultiColor().
|
inline |
Definition at line 77 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUISUMOAbstractView::displayLegends(), GUIVehicle::drawAction_drawCarriageClass(), GNEEdge::drawEdgeName(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEWalkingArea::drawWalkingArea(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEDemandElement::getColorByScheme(), GUIBaseVehicle::getExaggeration(), GUIVisualizationSettings::getLaneEdgeScaleScheme(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::rebuildColorMatrices(), GUIBaseVehicle::setColor(), GUIContainer::setColor(), GUIEdge::setColor(), GUILane::setColor(), GUIPerson::setColor(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), GNETAZRelData::setColor(), GNEJunction::setColor(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUILane::setFunctionalColor(), GNELane::setLaneColor(), GUIEdge::setMultiColor(), GUILane::setMultiColor(), and GNELane::setMultiColor().
|
inline |
Definition at line 81 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.
|
inline |
Definition at line 89 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUISettingsHandler::myStartElement().
|
inline |
Definition at line 85 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeShape(), GNEEdge::drawEndGeometryPoint(), GNELane::drawStartEndGeometryPoints(), GNEEdge::drawStartGeometryPoint(), and GNECrossing::getCrossingColor().
|
inline |
Definition at line 113 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.
|
inline |
Definition at line 107 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUIVisualizationSettings::save().
|
inline |
Definition at line 67 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIApplicationWindow::onCmdEditChosen(), and GUIViewTraffic::onCmdShowReachability().
|
inline |
Definition at line 98 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.
Referenced by GUICompleteSchemeStorage::init().
|
inline |
Definition at line 122 of file GUIPropertySchemeStorage.h.
References GUIPropertySchemeStorage< T >::mySchemes.
|
protected |
Definition at line 128 of file GUIPropertySchemeStorage.h.
Referenced by GUIPropertySchemeStorage< T >::fill(), GUIPropertySchemeStorage< T >::getActive(), GUIPropertySchemeStorage< T >::getScheme(), GUIPropertySchemeStorage< T >::getScheme(), GUIPropertySchemeStorage< T >::operator==(), GUIPropertySchemeStorage< T >::setActive(), and GUIPropertySchemeStorage< T >::setSchemeByName().
|
protected |
Definition at line 129 of file GUIPropertySchemeStorage.h.
Referenced by GUIPropertySchemeStorage< T >::addScheme(), GUIPropertySchemeStorage< T >::fill(), GUIPropertySchemeStorage< T >::getScheme(), GUIPropertySchemeStorage< T >::getScheme(), GUIPropertySchemeStorage< T >::getSchemeByName(), GUIPropertySchemeStorage< T >::getSchemes(), GUIPropertySchemeStorage< T >::operator==(), GUIPropertySchemeStorage< T >::save(), GUIPropertySchemeStorage< T >::setActive(), GUIPropertySchemeStorage< T >::setSchemeByName(), and GUIPropertySchemeStorage< T >::size().