Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIVisualizationSizeSettings Struct Reference

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.
 

Detailed Description

struct for size settings

Definition at line 123 of file GUIVisualizationSettings.h.

Constructor & Destructor Documentation

◆ GUIVisualizationSizeSettings()

GUIVisualizationSizeSettings::GUIVisualizationSizeSettings ( double  _minSize,
double  _exaggeration = 1.0,
bool  _constantSize = false,
bool  _constantSizeSelected = false 
)

constructor

Definition at line 335 of file GUIVisualizationSettings.cpp.

Member Function Documentation

◆ getExaggeration()

double GUIVisualizationSizeSettings::getExaggeration ( const GUIVisualizationSettings s,
const GUIGlObject o,
double  factor = 20 
) const

return the drawing size including exaggeration and constantSize values

Note
should look normal-sized at zoom 1000

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().

◆ operator!=()

bool GUIVisualizationSizeSettings::operator!= ( const GUIVisualizationSizeSettings other)

inequality comparator

Definition at line 374 of file GUIVisualizationSettings.cpp.

References constantSize, constantSizeSelected, exaggeration, and minSize.

◆ operator==()

bool GUIVisualizationSizeSettings::operator== ( const GUIVisualizationSizeSettings other)

equality comparator

Definition at line 365 of file GUIVisualizationSettings.cpp.

References constantSize, constantSizeSelected, exaggeration, and minSize.

◆ print()

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().

Here is the caller graph for this function:

Field Documentation

◆ constantSize

◆ constantSizeSelected

◆ exaggeration

◆ minSize


The documentation for this struct was generated from the following files: