![]() |
Mapper
0.9.0
API documentation
|
Renderable for displaying a line. More...
#include <renderable_implementation.h>


Public Member Functions | |
| LineRenderable (const LineSymbol *symbol, const VirtualPath &virtual_path, bool closed) | |
| LineRenderable (const LineSymbol *symbol, QPointF first, QPointF second) | |
| void | render (QPainter &painter, const RenderConfig &config) const override |
| Renders the renderable with the given painter and rendering configuration. More... | |
| PainterConfig | getPainterConfig (const QPainterPath *clip_path=nullptr) const override |
| Returns the painter configuration information. More... | |
Public Member Functions inherited from OpenOrienteering::Renderable | |
| Renderable (const Renderable &)=delete | |
| Renderable (Renderable &&)=delete | |
| virtual | ~Renderable () |
| The destructor. More... | |
| Renderable & | operator= (const Renderable &)=delete |
| Renderable & | operator= (Renderable &&)=delete |
| const QRectF & | getExtent () const |
| Returns the extent (bounding box). More... | |
| bool | intersects (const QRectF &rect) const |
| Tests whether the renderable's extent intersects the given rect. More... | |
Protected Member Functions | |
| void | extentIncludeCap (quint32 i, qreal half_line_width, bool end_cap, const LineSymbol *symbol, const VirtualPath &path) |
| void | extentIncludeJoin (quint32 i, qreal half_line_width, const LineSymbol *symbol, const VirtualPath &path) |
Protected Member Functions inherited from OpenOrienteering::Renderable | |
| Renderable (const MapColor *color) | |
| The constructor for new renderables. More... | |
Protected Attributes | |
| const qreal | line_width |
| QPainterPath | path |
| Qt::PenCapStyle | cap_style |
| Qt::PenJoinStyle | join_style |
Protected Attributes inherited from OpenOrienteering::Renderable | |
| const int | color_priority |
| The color priority is a major attribute and cannot be modified. More... | |
| QRectF | extent |
| The extent must be set by inheriting classes. More... | |
Renderable for displaying a line.
| OpenOrienteering::LineRenderable::LineRenderable | ( | const LineSymbol * | symbol, |
| const VirtualPath & | virtual_path, | ||
| bool | closed | ||
| ) |
| OpenOrienteering::LineRenderable::LineRenderable | ( | const LineSymbol * | symbol, |
| QPointF | first, | ||
| QPointF | second | ||
| ) |
|
protected |
|
protected |
|
overridevirtual |
Returns the painter configuration information.
This configuration must be set when rendering this renderable.
Implements OpenOrienteering::Renderable.
|
overridevirtual |
Renders the renderable with the given painter and rendering configuration.
Implements OpenOrienteering::Renderable.
|
protected |
|
protected |
|
protected |
|
protected |
1.8.13