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 | |
GUIVisualizationSizeSettings (double _minSize, double _exaggeration=1.0, bool _constantSize=false, bool _constantSizeSelected=false) | |
constructor | |
bool | operator!= (const GUIVisualizationSizeSettings &other) |
inequality comparator | |
bool | operator== (const GUIVisualizationSizeSettings &other) |
equality comparator | |
void | print (OutputDevice &dev, const std::string &name) const |
print values in output device | |
Data Fields | |
bool | constantSize |
whether the object shall be drawn with constant size regardless of zoom | |
bool | constantSizeSelected |
whether only selected objects shall be drawn with constant | |
double | exaggeration |
The size exaggeration (upscale) | |
double | minSize |
The minimum size to draw this object. | |
struct for size settings
Definition at line 123 of file GUIVisualizationSettings.h.
GUIVisualizationSizeSettings::GUIVisualizationSizeSettings | ( | double | _minSize, |
double | _exaggeration = 1.0 , |
||
bool | _constantSize = false , |
||
bool | _constantSizeSelected = false |
||
) |
constructor
Definition at line 335 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 344 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, gSelected, GUISelectedStorage::isSelected(), MAX2(), GUIVisualizationSettings::scale, and GUIVisualizationSettings::selectorFrameScale.
Referenced by GUIContainer::drawAction_drawAsImage(), GNEContainer::drawAction_drawAsImage(), GUIVehicle::drawAction_drawCarriageClass(), GNERerouterSymbol::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GNEOverheadWire::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GUILane::drawLinkRule(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), GUIVehicle::drawRouteHelper(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GUIBaseVehicle::getExaggeration(), GUIBusStop::getExaggeration(), GUICalibrator::getExaggeration(), GUIChargingStation::getExaggeration(), GUIDetectorWrapper::getExaggeration(), GUIE3Collector::MyWrapper::getExaggeration(), GUIInstantInductLoop::MyWrapper::getExaggeration(), GUIJunctionWrapper::getExaggeration(), GUILaneSpeedTrigger::getExaggeration(), GUIOverheadWire::getExaggeration(), GUIOverheadWireClamp::getExaggeration(), GUIParkingArea::getExaggeration(), GUITriggeredRerouter::getExaggeration(), GUITriggeredRerouter::GUITriggeredRerouterEdge::getExaggeration(), GUIMEInductLoop::MyWrapper::getExaggeration(), GUIMEVehicle::getExaggeration(), GNEAdditional::getExaggeration(), GNETAZ::getExaggeration(), GNEContainer::getExaggeration(), GNEPerson::getExaggeration(), GNERoute::getExaggeration(), GNEStop::getExaggeration(), GNEStopPlan::getExaggeration(), GNEVehicle::getExaggeration(), GNEConnection::getExaggeration(), GNEEdge::getExaggeration(), GNEJunction::getExaggeration(), GNELane::getExaggeration(), GUIContainer::getExaggeration(), GUIE2Collector::MyWrapper::getExaggeration(), GUIPerson::getExaggeration(), GNEPOI::getExaggeration(), GNEPoly::getExaggeration(), GUIPointOfInterest::getExaggeration(), GUIPolygon::getExaggeration(), GUIPerson::getGUIPosition(), and GUISUMOAbstractView::paintGLGrid().
bool GUIVisualizationSizeSettings::operator!= | ( | const GUIVisualizationSizeSettings & | other | ) |
inequality comparator
Definition at line 374 of file GUIVisualizationSettings.cpp.
References constantSize, constantSizeSelected, exaggeration, and minSize.
bool GUIVisualizationSizeSettings::operator== | ( | const GUIVisualizationSizeSettings & | other | ) |
equality comparator
Definition at line 365 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 383 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 147 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings::checkDrawAdditional(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawJunction(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::checkDrawPOI(), GUIVisualizationSettings::checkDrawPoly(), GUIVisualizationSettings::checkDrawVehicle(), GUILane::drawGL(), getExaggeration(), GUICompleteSchemeStorage::init(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), GUIDialog_ViewSettings::SizePanel::update(), and GUIVisualizationSettings::updateIgnoreHideByZoom().
bool GUIVisualizationSizeSettings::constantSizeSelected |
whether only selected objects shall be drawn with constant
Definition at line 150 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings::checkDrawAdditional(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawJunction(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::checkDrawPOI(), GUIVisualizationSettings::checkDrawPoly(), GUIVisualizationSettings::checkDrawVehicle(), GUIBaseVehicle::drawOnPos(), getExaggeration(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), GUIDialog_ViewSettings::SizePanel::update(), and GUIVisualizationSettings::updateIgnoreHideByZoom().
double GUIVisualizationSizeSettings::exaggeration |
The size exaggeration (upscale)
Definition at line 144 of file GUIVisualizationSettings.h.
Referenced by 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 141 of file GUIVisualizationSettings.h.
Referenced by GUIPointOfInterest::checkDraw(), GUIPolygon::checkDraw(), GUIJunctionWrapper::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUICompleteSchemeStorage::init(), operator!=(), operator==(), GUISettingsHandler::parseSizeSettings(), print(), GUIDialog_ViewSettings::SizePanel::SizePanel(), and GUIDialog_ViewSettings::SizePanel::update().