![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for size settings More...
#include <GUIVisualizationSettings.h>
Public Member Functions | |
double | getExaggeration (const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const |
return the drawing size including exaggeration and constantSize values More... | |
GUIVisualizationSizeSettings (double _minSize, double _exaggeration=1.0, bool _constantSize=false, bool _constantSizeSelected=false) | |
constructor More... | |
bool | operator!= (const GUIVisualizationSizeSettings &other) |
inequality comparator More... | |
bool | operator== (const GUIVisualizationSizeSettings &other) |
equality comparator More... | |
void | print (OutputDevice &dev, const std::string &name) const |
print values in output device More... | |
Data Fields | |
bool | constantSize |
whether the object shall be drawn with constant size regardless of zoom More... | |
bool | constantSizeSelected |
whether only selected objects shall be drawn with constant More... | |
double | exaggeration |
The size exaggeration (upscale) More... | |
double | minSize |
The minimum size to draw this object. More... | |
struct for size settings
Definition at line 85 of file GUIVisualizationSettings.h.
GUIVisualizationSizeSettings::GUIVisualizationSizeSettings | ( | double | _minSize, |
double | _exaggeration = 1.0 , |
||
bool | _constantSize = false , |
||
bool | _constantSizeSelected = false |
||
) |
constructor
Definition at line 203 of file GUIVisualizationSettings.cpp.
double GUIVisualizationSizeSettings::getExaggeration | ( | const GUIVisualizationSettings & | s, |
const GUIGlObject * | o, | ||
double | factor = 20 |
||
) | const |
return the drawing size including exaggeration and constantSize values
Definition at line 212 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, gSelected, GUISelectedStorage::isSelected(), MAX2(), and GUIVisualizationSettings::scale.
Referenced by GUIPointOfInterest::checkDraw(), GUIPolygon::checkDraw(), GUIContainer::drawAction_drawAsImage(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsImage(), GNEEdge::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNEJunction::drawGL(), GUIPerson::drawGLAdditional(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), GNELane::drawStartEndShapePoints(), GNELane::drawVSSSymbol(), and GUISUMOAbstractView::paintGLGrid().
bool GUIVisualizationSizeSettings::operator!= | ( | const GUIVisualizationSizeSettings & | other | ) |
inequality comparator
Definition at line 234 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, and minSize.
bool GUIVisualizationSizeSettings::operator== | ( | const GUIVisualizationSizeSettings & | other | ) |
equality comparator
Definition at line 225 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, and minSize.
void GUIVisualizationSizeSettings::print | ( | OutputDevice & | dev, |
const std::string & | name | ||
) | const |
print values in output device
Definition at line 243 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, minSize, and OutputDevice::writeAttr().
Referenced by GUIVisualizationSettings::save().
bool GUIVisualizationSizeSettings::constantSize |
whether the object shall be drawn with constant size regardless of zoom
Definition at line 109 of file GUIVisualizationSettings.h.
Referenced by GUILane::drawGL(), getExaggeration(), GUICompleteSchemeStorage::init(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), and GUIDialog_ViewSettings::SizePanel::update().
bool GUIVisualizationSizeSettings::constantSizeSelected |
whether only selected objects shall be drawn with constant
Definition at line 112 of file GUIVisualizationSettings.h.
Referenced by getExaggeration(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), and GUIDialog_ViewSettings::SizePanel::update().
double GUIVisualizationSizeSettings::exaggeration |
The size exaggeration (upscale)
Definition at line 106 of file GUIVisualizationSettings.h.
Referenced by GNEEdge::commitShapeChange(), GUILane::drawGL(), getExaggeration(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), and GUIDialog_ViewSettings::SizePanel::update().
double GUIVisualizationSizeSettings::minSize |
The minimum size to draw this object.
Definition at line 103 of file GUIVisualizationSettings.h.
Referenced by GUIPointOfInterest::checkDraw(), GUIPolygon::checkDraw(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GNETAZ::drawGL(), GUICompleteSchemeStorage::init(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), and GUIDialog_ViewSettings::SizePanel::update().