![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <RGBColor.h>
Public Member Functions | |
| unsigned char | alpha () const |
| Returns the alpha-amount of the color. | |
| unsigned char | blue () const |
| Returns the blue-amount of the color. | |
| RGBColor | changedAlpha (int change) const |
| Returns a new color with altered opacity. | |
| RGBColor | changedBrightness (int change, int toChange=3) const |
| Returns a new color with altered brightness. | |
| unsigned char | green () const |
| Returns the green-amount of the color. | |
| RGBColor | invertedColor () const |
| obtain inverted of current RGBColor | |
| bool | isValid () const |
| check if RGBColor is valid | |
| RGBColor | multiply (double factor) const |
| Returns a new color with altered brightness. | |
| bool | operator!= (const RGBColor &c) const |
| bool | operator== (const RGBColor &c) const |
| unsigned char | red () const |
| Returns the red-amount of the color. | |
| RGBColor (bool valid=true) | |
| Constructor. | |
| RGBColor (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) | |
| Constructor. | |
| void | set (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| assigns new values | |
| void | setAlpha (unsigned char alpha) |
| Sets a new alpha value. | |
| void | setValid (const bool value) |
| set valid | |
Static Public Member Functions | |
| static RGBColor | fromHSV (double h, double s, double v) |
| Converts the given hsv-triplet to rgb, inspired by http://alvyray.com/Papers/CG/hsv2rgb.htm. | |
| static SumoRNG * | getColorRNG () |
| get color RNG | |
| static RGBColor | interpolate (const RGBColor &minColor, const RGBColor &maxColor, double weight) |
| Interpolates between two colors. | |
| static bool | isColor (std::string coldef) |
| check if the given string can be parsed to color | |
| static RGBColor | parseColor (std::string coldef) |
| Parses a color information. | |
| static RGBColor | parseColorReporting (const std::string &coldef, const std::string &objecttype, const char *objectid, bool report, bool &ok) |
| Parses a color information. | |
| static RGBColor | randomHue (double s=1, double v=1) |
| Return color with random hue. | |
Static Public Attributes | |
| static const RGBColor | DEFAULT_COLOR = RGBColor::YELLOW |
| The default color (for vehicle types and vehicles). | |
| static const std::string | DEFAULT_COLOR_STRING = toString(RGBColor::DEFAULT_COLOR) |
| The string description of the default color. | |
| static const RGBColor | RED = RGBColor(255, 0, 0, 255) |
| named colors | |
| static const RGBColor | GREEN = RGBColor(0, 255, 0, 255) |
| static const RGBColor | BLUE = RGBColor(0, 0, 255, 255) |
| static const RGBColor | YELLOW = RGBColor(255, 255, 0, 255) |
| static const RGBColor | CYAN = RGBColor(0, 255, 255, 255) |
| static const RGBColor | MAGENTA = RGBColor(255, 0, 255, 255) |
| static const RGBColor | ORANGE = RGBColor(255, 128, 0, 255) |
| static const RGBColor | WHITE = RGBColor(255, 255, 255, 255) |
| static const RGBColor | BLACK = RGBColor(0, 0, 0, 255) |
| static const RGBColor | GREY = RGBColor(128, 128, 128, 255) |
| static const RGBColor | INVISIBLE = RGBColor(0, 0, 0, 0) |
Private Attributes | |
| unsigned char | myAlpha |
| unsigned char | myBlue |
| unsigned char | myGreen |
| unsigned char | myRed |
| The color amounts. | |
| bool | myValid |
| flag to check if color is valid | |
Static Private Attributes | |
| static SumoRNG | myRNG |
| A random number generator to generate random colors independent of other randomness. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RGBColor &col) |
| Writes the color to the given stream. | |
The definition of a color in the RGB-space with an alpha channel. The cube is meant to lie between (0, 0, 0) and (255, 255, 255)
Definition at line 38 of file RGBColor.h.
| RGBColor::RGBColor | ( | bool | valid = true | ) |
Constructor.
Definition at line 65 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, and myValid.
Referenced by changedAlpha(), changedBrightness(), fromHSV(), interpolate(), invertedColor(), multiply(), operator!=(), operator<<, operator==(), parseColor(), and parseColorReporting().
| RGBColor::RGBColor | ( | unsigned char | red, |
| unsigned char | green, | ||
| unsigned char | blue, | ||
| unsigned char | alpha = 255 ) |
| unsigned char RGBColor::alpha | ( | ) | const |
Returns the alpha-amount of the color.
Definition at line 92 of file RGBColor.cpp.
References myAlpha.
Referenced by changedAlpha(), GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUIBaseVehicle::drawOnPos(), GLHelper::drawText(), GLHelper::drawTextBox(), MFXUtils::getFXColor(), libsumo::Helper::makeTraCIColor(), RGBColor(), setAlpha(), and GLHelper::setColor().
| unsigned char RGBColor::blue | ( | ) | const |
Returns the blue-amount of the color.
Definition at line 86 of file RGBColor.cpp.
References myBlue.
Referenced by changedBrightness(), GLHelper::drawText(), MFXUtils::getFXColor(), libsumo::Helper::makeTraCIColor(), multiply(), RGBColor(), and GLHelper::setColor().
| RGBColor RGBColor::changedAlpha | ( | int | change | ) | const |
Returns a new color with altered opacity.
Definition at line 223 of file RGBColor.cpp.
References alpha(), MAX2(), MIN2(), myAlpha, myBlue, myGreen, myRed, and RGBColor().
Referenced by GUIParameterTracker::GUIParameterTrackerPanel::drawValue().
| RGBColor RGBColor::changedBrightness | ( | int | change, |
| int | toChange = 3 ) const |
Returns a new color with altered brightness.
| [in] | change | The absolute change applied to all channels (within bounds) |
| [in] | change | The number of colors to change |
Definition at line 200 of file RGBColor.cpp.
References blue(), green(), MAX2(), MIN2(), myAlpha, myBlue, myGreen, myRed, red(), and RGBColor().
Referenced by GUIBasePersonHelper::drawAction_drawAsPoly(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIGeometry::drawChildLine(), GNEConnection::drawConnection(), GNEConnection::drawConnectionArrows(), GNECrossing::drawCrossing(), GNELaneAreaDetector::drawE2(), GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeShape(), GNEEdge::drawEndGeometryPoint(), GNEStop::drawGeometryPoints(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNEParkingArea::drawGL(), GNEPoly::drawGL(), GNERouteProbe::drawGL(), GNEStopPlan::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GUIBusStop::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GNEJunction::drawJunctionAsShape(), GNEAdditionalListed::drawListedAdditional(), GUIGeometry::drawParentLine(), GNERerouterSymbol::drawRerouterSymbol(), GUIBaseVehicle::drawRoute(), GNEAdditional::drawSemiCircleGeometryPoint(), GNELane::drawShapeEdited(), GNELane::drawStartEndGeometryPoints(), GNEEdge::drawStartGeometryPoint(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GNEVariableSpeedSignSymbol::drawVSSSymbol(), and GUIDottedGeometry::DottedGeometryColor::getColor().
|
static |
Converts the given hsv-triplet to rgb, inspired by http://alvyray.com/Papers/CG/hsv2rgb.htm.
| [in] | h | Hue (0-360) |
| [in] | s | Saturation (0-1) |
| [in] | v | Value (0-1) |
Definition at line 403 of file RGBColor.cpp.
References MAX2(), MIN2(), n, and RGBColor().
Referenced by GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GNEDemandElement::getColorByScheme(), parseColor(), randomHue(), GUIPolygon::setColor(), GNELane::setFunctionalColor(), GUIBaseVehicle::setFunctionalColor(), GUIContainer::setFunctionalColor(), GUILane::setFunctionalColor(), and GUIPerson::setFunctionalColor().
|
static |
get color RNG
Definition at line 194 of file RGBColor.cpp.
References myRNG.
Referenced by GUILane::setFunctionalColor().
| unsigned char RGBColor::green | ( | ) | const |
Returns the green-amount of the color.
Definition at line 80 of file RGBColor.cpp.
References myGreen.
Referenced by changedBrightness(), GLHelper::drawText(), MFXUtils::getFXColor(), libsumo::Helper::makeTraCIColor(), multiply(), RGBColor(), and GLHelper::setColor().
|
static |
Interpolates between two colors.
The interpolated color is calculated as a weighted average of the RGB values of minColor and maxColor, giving weight to maxColor and 1-weight to minColor.
| [in] | minColor | The color to interpolate from |
| [in] | maxColor | The color to interpolate to |
| [in] | weight | The weight of the first color |
Definition at line 387 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, and RGBColor().
Referenced by GUISUMOAbstractView::displayColorLegend(), and GUIPropertyScheme< RGBColor >::interpolate().
| RGBColor RGBColor::invertedColor | ( | ) | const |
obtain inverted of current RGBColor
Definition at line 183 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, and RGBColor().
Referenced by GUIGeometry::drawGeometryPoints().
|
static |
check if the given string can be parsed to color
Definition at line 329 of file RGBColor.cpp.
References StringTokenizer::getVector(), StringUtils::isDouble(), StringUtils::isHex(), and StringUtils::to_lower_case().
Referenced by GNEAttributeCarrier::canParse().
| bool RGBColor::isValid | ( | ) | const |
| RGBColor RGBColor::multiply | ( | double | factor | ) | const |
Returns a new color with altered brightness.
| [in] | factor | The multiplicative change applied to all color channels (within bounds) |
Definition at line 230 of file RGBColor.cpp.
References blue(), green(), MAX2(), MIN2(), myAlpha, myBlue, myGreen, myRed, red(), and RGBColor().
Referenced by GUIBaseVehicle::drawRoute().
| bool RGBColor::operator!= | ( | const RGBColor & | c | ) | const |
Definition at line 177 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, myValid, and RGBColor().
| bool RGBColor::operator== | ( | const RGBColor & | c | ) | const |
Definition at line 171 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, myValid, and RGBColor().
|
static |
Parses a color information.
It is assumed that the color is stored as "<RED>,<GREEN>,<BLUE>" and each color is represented as a double. Alternatively the color can be stored as "<RED>,<GREEN>,<BLUE>,<ALPHA>" and each color is represented as an unsigned byte.
| [in] | coldef | The color definition to parse |
| EmptyData | If the definition has less than three entries |
| NumberFormatException | If one of the components is not numeric |
Definition at line 239 of file RGBColor.cpp.
References BLACK, BLUE, CYAN, fromHSV(), StringTokenizer::getVector(), GREEN, GREY, StringUtils::hexToInt(), INVISIBLE, MAGENTA, myRNG, ORANGE, RandHelper::rand(), RED, RGBColor(), StringUtils::to_lower_case(), StringUtils::toDouble(), StringUtils::toInt(), WHITE, and YELLOW.
Referenced by PCTypeMap::add(), NLHandler::addDistrict(), GUIBusStop::finishedLoading(), SUMOSAXAttributes::fromString(), PCLoaderArcView::load(), PCLoaderVisum::load(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), NIImporter_OpenStreetMap::RelationHandler::myStartElement(), PCLoaderXML::myStartElement(), GNEAttributeCarrier::parse(), parseColorReporting(), PCTypeMap::PCTypeMap(), and GUILane::setFunctionalColor().
|
static |
Parses a color information.
It is assumed that the color is stored as "<RED>,<GREEN>,<BLUE>" and each color is represented as a double. Alternatively the color can be stored as "<RED>,<GREEN>,<BLUE>,<ALPHA>" and each color is represented as an unsigned byte.
| [in] | coldef | The color definition to parse |
| [in] | objecttype | The type of the currently parsed object |
| [in] | objectid | The id of the currently parsed object |
| [in] | report | Whether errors shall be reported |
| [in,out] | ok | Whether parsing was successful |
| EmptyData | If the definition has less than three entries |
| NumberFormatException | If one of the components is not numeric |
Definition at line 361 of file RGBColor.cpp.
References parseColor(), RGBColor(), UNUSED_PARAMETER, and WRITE_ERROR.
Referenced by GUISettingsHandler::myStartElement(), GUISettingsHandler::parseColor(), and GUISettingsHandler::parseTextSettings().
|
static |
Return color with random hue.
| [in] | s | Saturation (0-1) |
| [in] | v | Value (0-1) |
Definition at line 435 of file RGBColor.cpp.
References fromHSV(), myRNG, and RandHelper::rand().
| unsigned char RGBColor::red | ( | ) | const |
Returns the red-amount of the color.
Definition at line 74 of file RGBColor.cpp.
References myRed.
Referenced by changedBrightness(), GLHelper::drawText(), MFXUtils::getFXColor(), libsumo::Helper::makeTraCIColor(), multiply(), RGBColor(), and GLHelper::setColor().
| void RGBColor::set | ( | unsigned char | r, |
| unsigned char | g, | ||
| unsigned char | b, | ||
| unsigned char | a ) |
assigns new values
| [in] | r | The red component's value |
| [in] | g | The green component's value |
| [in] | b | The blue component's value |
| [in] | a | The alpha component's value |
Definition at line 98 of file RGBColor.cpp.
References myAlpha, myBlue, myGreen, myRed, and myValid.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
| void RGBColor::setAlpha | ( | unsigned char | alpha | ) |
Sets a new alpha value.
| [in] | alpha | The new value to use |
Definition at line 108 of file RGBColor.cpp.
References alpha(), and myAlpha.
Referenced by GNEViewNet::drawTemporalJunction(), and GUIPolygon::setColor().
| void RGBColor::setValid | ( | const bool | value | ) |
set valid
Definition at line 114 of file RGBColor.cpp.
References invalid_return< std::string >::value, and myValid.
|
friend |
Writes the color to the given stream.
| [out] | os | The stream to write to |
| [in] | col | The color to write |
Definition at line 125 of file RGBColor.cpp.
References BLACK, BLUE, CYAN, GREEN, GREY, INVISIBLE, MAGENTA, myAlpha, myBlue, myGreen, myRed, ORANGE, RED, RGBColor(), WHITE, and YELLOW.
Definition at line 196 of file RGBColor.h.
Referenced by GUIParameterTracker::addTrackedMultiplot(), GNETLSEditorFrame::TLSAttributes::clearTLSAttributes(), GNEInternalLane::colorForLinksState(), GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GNEDistributionFrame::DistributionRow::DistributionRow(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GNECalibrator::drawCalibratorSymbol(), GNELaneAreaDetector::drawE2(), GNELaneAreaDetector::drawE2PartialLane(), GNEGenericData::drawFilteredAttribute(), GNEDemandElementFlow::drawFlowLabel(), GNECalibratorFlow::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNEVariableSpeedSignStep::drawGL(), GUICalibrator::drawGL(), GUIOverheadWire::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNELane::drawOverlappedRoutes(), GNERerouterSymbol::drawRerouterSymbol(), GUIBaseVehicle::drawRoute(), GNEViewNet::drawTemporalJunction(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GNEVariableSpeedSignSymbol::drawVSSSymbol(), GUIDottedGeometry::DottedGeometryColor::getColor(), GLHelper::getDottedcontourColors(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GNETLSEditorFrame::TLSAttributes::initTLSAttributes(), GNETLSEditorFrame::TLSAttributes::isValidOffset(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), NIImporter_Vissim::NIImporter_Vissim(), GNEAttributeCarrierDialog::AttributeTextField::onCmdOpenColorDialog(), GNEAttributesEditorRow::onCmdOpenColorDialog(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GNEDistributionFrame::DistributionRow::onCmdSetProbability(), GUIParameterTableWindow::onLeftBtnPress(), GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openColorDialog(), operator<<, parseColor(), GNETLSEditorFrame::TLSAttributes::setOffset(), and GNETLSEditorFrame::TLSAttributes::setParameters().
Definition at line 190 of file RGBColor.h.
Referenced by AGActivityTripWriter::AGActivityTripWriter(), GNEDistributionFrame::DistributionRow::DistributionRow(), GNEGenericData::drawAttribute(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GNEEdge::drawTAZElements(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNetHelper::TestingMode::drawTestingElements(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GNEWalkingArea::drawWalkingArea(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEDemandElement::getColorByScheme(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GNEDistributionFrame::DistributionRow::onCmdSetProbability(), operator<<, parseColor(), RODFDetectorCon::saveAsPOIs(), GUIBaseVehicle::setFunctionalColor(), and NBSign::writeAsPOI().
Definition at line 192 of file RGBColor.h.
Referenced by GNELane::drawArrows(), GNEDemandElementFlow::drawFlowLabel(), GUIOverheadWire::drawGL(), GNEEdge::drawTAZElements(), GUIDottedGeometry::DottedGeometryColor::getColor(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), NIImporter_Vissim::NIImporter_Vissim(), operator<<, and parseColor().
|
static |
The default color (for vehicle types and vehicles).
Definition at line 202 of file RGBColor.h.
Referenced by MSStoppingPlaceRerouter::evaluateDestination(), MSRoute::getColor(), GNEDemandElement::getColorByScheme(), SUMOVehicleParserHelper::parseCommonAttributes(), MSBaseVehicle::replaceRouteEdges(), GUIBaseVehicle::setFunctionalColor(), and NWWriter_OpenDrive::writeNetwork().
|
static |
The string description of the default color.
Definition at line 205 of file RGBColor.h.
Definition at line 189 of file RGBColor.h.
Referenced by AGActivityTripWriter::AGActivityTripWriter(), GUIOverheadWire::drawGL(), GUIBaseVehicle::drawLinkItem(), GLHelper::drawSpaceOccupancies(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalRoundabout(), MSActuatedTrafficLightLogic::gapControl(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GNETAZRelDataFrame::Legend::Legend(), NIImporter_Vissim::NIImporter_Vissim(), GUIApplicationWindow::onCmdGaming(), operator<<, parseColor(), RODFDetectorCon::saveAsPOIs(), GNEEdgeRelData::setColor(), GNELane::setLaneColor(), and MSActuatedTrafficLightLogic::trySwitch().
Definition at line 197 of file RGBColor.h.
Referenced by GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GNEConnection::drawConnection(), GNEDemandElementFlow::drawFlowLabel(), GNEDemandElement::drawStackLabel(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEPathCreator::drawTemporalRoute(), GNEPlanCreator::drawTemporalRoute(), GNEStop::getColor(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), NIImporter_Vissim::NIImporter_Vissim(), operator<<, parseColor(), and NBSign::writeAsPOI().
Definition at line 198 of file RGBColor.h.
Referenced by GNEVehicleFrame::createPath(), GLHelper::debugVertices(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GUIBusStop::drawGL(), GLHelper::drawTextAtEnd(), GLHelper::drawTextSettings(), GNERoute::getAttribute(), GNERoute::getColor(), GNERouteDistribution::getColor(), GNERouteRef::getColor(), GNEVTypeRef::getColor(), GUIVisualizationSettings::getLinkColor(), GNEStoppingPlace::getStoppingPlaceAttribute(), operator<<, GNEAttributeCarrier::parse(), NLTriggerBuilder::parseAndBuildStoppingPlace(), AdditionalHandler::parseBusStopAttributes(), parseColor(), AdditionalHandler::parseContainerStopAttributes(), RouteHandler::parseRoute(), RouteHandler::parseRouteEmbedded(), AdditionalHandler::parseTrainStopAttributes(), GNERoute::setAttribute(), GNEStoppingPlace::setStoppingPlaceAttribute(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
Definition at line 193 of file RGBColor.h.
Referenced by GLHelper::drawBoundary(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GNEViewNetHelper::TestingMode::drawTestingElements(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GNETAZRelDataFrame::Legend::Legend(), NIImporter_Vissim::NIImporter_Vissim(), operator<<, and parseColor().
|
private |
Definition at line 209 of file RGBColor.h.
Referenced by alpha(), changedAlpha(), changedBrightness(), interpolate(), invertedColor(), multiply(), operator!=(), operator<<, operator==(), RGBColor(), RGBColor(), set(), and setAlpha().
|
private |
Definition at line 209 of file RGBColor.h.
Referenced by blue(), changedAlpha(), changedBrightness(), interpolate(), invertedColor(), multiply(), operator!=(), operator<<, operator==(), RGBColor(), RGBColor(), and set().
|
private |
Definition at line 209 of file RGBColor.h.
Referenced by changedAlpha(), changedBrightness(), green(), interpolate(), invertedColor(), multiply(), operator!=(), operator<<, operator==(), RGBColor(), RGBColor(), and set().
|
private |
The color amounts.
Definition at line 209 of file RGBColor.h.
Referenced by changedAlpha(), changedBrightness(), interpolate(), invertedColor(), multiply(), operator!=(), operator<<, operator==(), red(), RGBColor(), RGBColor(), and set().
|
staticprivate |
A random number generator to generate random colors independent of other randomness.
Definition at line 215 of file RGBColor.h.
Referenced by getColorRNG(), parseColor(), and randomHue().
|
private |
flag to check if color is valid
Definition at line 212 of file RGBColor.h.
Referenced by isValid(), operator!=(), operator==(), RGBColor(), RGBColor(), set(), and setValid().
Definition at line 194 of file RGBColor.h.
Referenced by GNEEdge::drawEndGeometryPoint(), GUIInductLoop::MyWrapper::drawGL(), GUIOverheadWire::drawGL(), GNELane::drawMarkingsAndBoundings(), GNEPOI::drawPOI(), GNEParkingSpace::drawSpace(), GNEEdge::drawStartGeometryPoint(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEPathCreator::drawTemporalRoute(), GNEPlanCreator::drawTemporalRoute(), GNEViewNet::drawTestsCircle(), MSActuatedTrafficLightLogic::gapControl(), GUIDottedGeometry::DottedGeometryColor::getColor(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), operator<<, parseColor(), and MSActuatedTrafficLightLogic::trySwitch().
named colors
Definition at line 188 of file RGBColor.h.
Referenced by AGActivityTripWriter::AGActivityTripWriter(), GNELaneAreaDetector::drawE2PartialJunction(), GUISUMOAbstractView::drawFPS(), GNEDemandElementPlan::drawFromArrow(), GNEClosingLaneReroute::drawGL(), GNEClosingReroute::drawGL(), GNEDestProbReroute::drawGL(), GNEParkingAreaReroute::drawGL(), GNERerouterInterval::drawGL(), GNERouteProbReroute::drawGL(), GUIOverheadWire::drawGL(), GNEDemandElement::drawJunctionLine(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNERoute::drawRoutePartialJunction(), GNERoute::drawRoutePartialLane(), GLHelper::drawSpaceOccupancies(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEViewNet::drawTemporalDrawingShape(), GNEDemandElementPlan::drawToArrow(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GNEVariableSpeedSignSymbol::drawVSSSymbol(), MSActuatedTrafficLightLogic::gapControl(), GNEDemandElement::getColorByScheme(), GUIParameterTracker::GUIParameterTracker(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), GNETLSEditorFrame::TLSAttributes::isValidOffset(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), NIImporter_Vissim::NIImporter_Vissim(), GUIApplicationWindow::onCmdGaming(), GNEDistributionFrame::DistributionRow::onCmdSetProbability(), operator<<, parseColor(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseTAZAttributes(), RODFDetectorCon::saveAsPOIs(), GNEEdgeData::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPOI::writeAdditional(), and NBSign::writeAsPOI().
Definition at line 195 of file RGBColor.h.
Referenced by ShapeHandler::addPOI(), GUISUMOAbstractView::displayColorLegend(), GNELane::drawArrows(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNERouteProbe::drawGL(), GNEStopPlan::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignStep::drawGL(), GNELane::drawMarkingsAndBoundings(), GUITLLogicPhasesTrackerWindow::drawNames(), GNEDemandElement::drawStackLabel(), GNELane::drawStartEndGeometryPoints(), GUITLLogicPhasesTrackerWindow::drawValues(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEDemandElement::getColorByScheme(), GLHelper::getDottedcontourColors(), GNEPathLegendModule::GNEPathLegendModule(), GUIPropertyScheme< RGBColor >::GUIPropertyScheme(), GUIPropertyScheme< RGBColor >::GUIPropertyScheme(), GNECrossingFrame::Information::Information(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), NIImporter_Vissim::NIImporter_Vissim(), operator<<, parseColor(), GUIBaseVehicle::setFunctionalColor(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().
Definition at line 191 of file RGBColor.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GUITLLogicPhasesTrackerWindow::drawAdditionalStates(), GNEClosingLaneReroute::drawGL(), GNEClosingReroute::drawGL(), GNEDestProbReroute::drawGL(), GNEParkingAreaReroute::drawGL(), GNERerouterInterval::drawGL(), GNERouteProbReroute::drawGL(), GUIOverheadWire::drawGL(), GNEViewNetHelper::TestingMode::drawTestingElements(), GNEVariableSpeedSignSymbol::drawVSSSymbol(), GNERoute::getColor(), GUIVisualizationSettings::initNeteditDefaults(), GUIVisualizationSettings::initSumoGuiDefaults(), NIImporter_Vissim::NIImporter_Vissim(), operator<<, parseColor(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToVehicle(), NBSign::writeAsPOI(), and NIImporter_OpenDrive::writeRoadObjects().