Handles pixel-to-world transformations given by world files.
More...
#include <world_file.h>
|
double | parameters [6] |
| The six world file parameters, order as in the text file. More...
|
|
Handles pixel-to-world transformations given by world files.
- See also
- https://en.wikipedia.org/wiki/World_file
◆ WorldFile() [1/5]
OpenOrienteering::WorldFile::WorldFile |
( |
| ) |
|
|
noexcept |
Creates an default world file.
◆ WorldFile() [2/5]
OpenOrienteering::WorldFile::WorldFile |
( |
double |
xw, |
|
|
double |
xh, |
|
|
double |
yw, |
|
|
double |
yh, |
|
|
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
noexcept |
Creates a world file with the given parameters (in-order).
◆ WorldFile() [3/5]
OpenOrienteering::WorldFile::WorldFile |
( |
const QTransform & |
wld | ) |
|
|
explicitnoexcept |
◆ WorldFile() [4/5]
OpenOrienteering::WorldFile::WorldFile |
( |
const WorldFile & |
| ) |
|
|
defaultnoexcept |
◆ WorldFile() [5/5]
OpenOrienteering::WorldFile::WorldFile |
( |
WorldFile && |
| ) |
|
|
defaultnoexcept |
◆ ~WorldFile()
OpenOrienteering::WorldFile::~WorldFile |
( |
| ) |
|
|
default |
◆ load()
bool OpenOrienteering::WorldFile::load |
( |
const QString & |
path | ) |
|
Tries to load the given path as world file.
Returns true on success and sets loaded to true or false.
◆ operator QTransform()
OpenOrienteering::WorldFile::operator QTransform |
( |
| ) |
const |
Returns a QTransform from pixels to projected coordinates, with (0,0) being the top-left corner of the top left pixel.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pathForImage()
QString OpenOrienteering::WorldFile::pathForImage |
( |
const QString & |
image_path | ) |
|
|
static |
Returns the proposed world file path for the given image path.
◆ save()
bool OpenOrienteering::WorldFile::save |
( |
const QString & |
path | ) |
const |
Writes the world file to the given path.
◆ tryToLoadForImage()
bool OpenOrienteering::WorldFile::tryToLoadForImage |
( |
const QString & |
image_path | ) |
|
Tries to find and load a world file for the given image path.
◆ parameters
double OpenOrienteering::WorldFile::parameters[6] |
The six world file parameters, order as in the text file.
The documentation for this struct was generated from the following files: