![]() |
Mapper
0.9.0
API documentation
|
Transformation parameters for non-georeferenced templates, transforming template coordinates to map coordinates. More...
#include <template.h>
Public Member Functions | |
TemplateTransform (qint32 x, qint32 y, double rotation, double scale_x, double scale_y, double shear=0.0) noexcept | |
Explicit implementation of aggregate initialization. More... | |
TemplateTransform () noexcept=default | |
Explicitly defaulted default constructor. More... | |
void | save (QXmlStreamWriter &xml, const QString &role) const |
void | load (QXmlStreamReader &xml) |
Static Public Member Functions | |
static TemplateTransform | fromQTransform (const QTransform &qt) noexcept |
Public Attributes | |
qint32 | template_x = 0 |
x position in 1/1000 mm More... | |
qint32 | template_y = 0 |
x position in 1/1000 mm More... | |
double | template_rotation = 0.0 |
Rotation in radians, a positive rotation is counter-clockwise. More... | |
double | template_scale_x = 1.0 |
Scaling in x direction, smaller than 1 shrinks. More... | |
double | template_scale_y = 1.0 |
Scaling in y direction, smaller than 1 shrinks. More... | |
double | template_shear = 0.0 |
Adjustment to scaling if anisotropy is askew. More... | |
Transformation parameters for non-georeferenced templates, transforming template coordinates to map coordinates.
The parameters are applied to painter in the order
So this order is also chosen for the member variables, and thus used in list initialization.
Coordinate transformations use the opposite order for the same effect.
|
inlinenoexcept |
Explicit implementation of aggregate initialization.
In C++11, there is no aggregate initialization when default initalizers are present.
|
defaultnoexcept |
Explicitly defaulted default constructor.
This is needed because of the other explicit constructor.
|
staticnoexcept |
void OpenOrienteering::TemplateTransform::load | ( | QXmlStreamReader & | xml | ) |
void OpenOrienteering::TemplateTransform::save | ( | QXmlStreamWriter & | xml, |
const QString & | role | ||
) | const |
double OpenOrienteering::TemplateTransform::template_rotation = 0.0 |
Rotation in radians, a positive rotation is counter-clockwise.
double OpenOrienteering::TemplateTransform::template_scale_x = 1.0 |
Scaling in x direction, smaller than 1 shrinks.
double OpenOrienteering::TemplateTransform::template_scale_y = 1.0 |
Scaling in y direction, smaller than 1 shrinks.
double OpenOrienteering::TemplateTransform::template_shear = 0.0 |
Adjustment to scaling if anisotropy is askew.
qint32 OpenOrienteering::TemplateTransform::template_x = 0 |
x position in 1/1000 mm
qint32 OpenOrienteering::TemplateTransform::template_y = 0 |
x position in 1/1000 mm