127 const RGBColor& hintColor,
const double radius,
const double exaggeration);
131 const double exaggeration,
const double lineWidth = -1);
135 const double width,
const double exaggeration,
const bool drawFirstExtrem,
const bool drawLastExtrem,
136 const double lineWidth = -1);
140 const double radius,
const double exaggeration);
144 const double width,
const double height,
const double offsetX,
const double offsetY,
145 const double rot,
const double exaggeration);
class for pack all variables related with GUIDottedGeometry color
void changeColor()
change color
DottedGeometryColor & operator=(const DottedGeometryColor &other)=delete
Invalidated assignment operator.
const RGBColor getColor(DottedContourType type)
get inspected color (and change flag)
const GUIVisualizationSettings & mySettings
pointer to GUIVisualizationSettings
void reset()
rest Dotted Geometry Color
bool myColorFlag
flag to get color
DottedGeometryColor(const GUIVisualizationSettings &settings)
constructor
std::vector< GUIDottedGeometry::Segment > myDottedGeometrySegments
dotted element shape (note: It's centered in 0,0 due scaling)
double myWidth
geometry width
void drawDottedGeometry(DottedGeometryColor &dottedGeometryColor, GUIDottedGeometry::DottedContourType type, const double customWidth=-1) const
draw inspected dottedShape
static void drawDottedSquaredShape(const DottedContourType type, const GUIVisualizationSettings &s, const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot, const double exaggeration)
draw dotted squared contour (used by additionals and demand elements)
static void drawDottedContourCircle(const DottedContourType type, const GUIVisualizationSettings &s, const Position &pos, const double radius, const double exaggeration)
draw dotted contour for the given Position and radius (used by Juctions and POIs)
void moveShapeToSide(const double value)
move shape to side
void calculateShapeRotationsAndLengths()
calculate shape rotations and lengths
double getWidth() const
get width
static void drawMovingHint(const GUIVisualizationSettings &s, const Position &mousePos, const PositionVector &shape, const RGBColor &hintColor, const double radius, const double exaggeration)
draw moving hint
static void drawDottedContourShape(const DottedContourType type, const GUIVisualizationSettings &s, const PositionVector &shape, const double width, const double exaggeration, const bool drawFirstExtrem, const bool drawLastExtrem, const double lineWidth=-1)
draw dotted contour for the given shape (used by additionals)
void updateDottedGeometry(const GUIVisualizationSettings &s, const PositionVector &laneShape)
update GUIDottedGeometry (using lane shape)
GUIDottedGeometry & operator=(const GUIDottedGeometry &other)=delete
Invalidated assignment operator.
void invertOffset()
invert offset of all segments
void setWidth(const double width)
change default width
static void drawDottedContourClosedShape(const DottedContourType type, const GUIVisualizationSettings &s, const PositionVector &shape, const double exaggeration, const double lineWidth=-1)
draw dotted contour for the given closed shape (used by Juctions, shapes and TAZs)
GUIDottedGeometry()
constructor
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.
std::vector< double > lengths
lengths
PositionVector shape
shape
std::vector< double > rotations
rotations
double offset
drawing offset (-1 or 1 only)
Segment()
default constructor