![]() |
Mapper
0.9.0
API documentation
|
Renderable for displaying text. More...
#include <renderable_implementation.h>
Public Member Functions | |
TextRenderable (const TextSymbol *symbol, const TextObject *text_object, const MapColor *color, double anchor_x, double anchor_y) | |
PainterConfig | getPainterConfig (const QPainterPath *clip_path=nullptr) const override |
Returns the painter configuration information. More... | |
void | render (QPainter &painter, const RenderConfig &config) const override |
Renders the renderable with the given painter and rendering configuration. More... | |
![]() | |
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 | renderCommon (QPainter &painter, const RenderConfig &config) const |
![]() | |
Renderable (const MapColor *color) | |
The constructor for new renderables. More... | |
Protected Attributes | |
QPainterPath | path |
qreal | anchor_x |
qreal | anchor_y |
qreal | rotation |
qreal | scale_factor |
![]() | |
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 text.
OpenOrienteering::TextRenderable::TextRenderable | ( | const TextSymbol * | symbol, |
const TextObject * | text_object, | ||
const MapColor * | color, | ||
double | anchor_x, | ||
double | anchor_y | ||
) |
|
overridevirtual |
Returns the painter configuration information.
This configuration must be set when rendering this renderable.
Implements OpenOrienteering::Renderable.
Reimplemented in OpenOrienteering::TextFramingRenderable.
|
overridevirtual |
Renders the renderable with the given painter and rendering configuration.
Implements OpenOrienteering::Renderable.
Reimplemented in OpenOrienteering::TextFramingRenderable.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |