IOLink
IOL_v1.6.1_release
|
This Property is used to represent the image properties in world space. More...
#include <iolink/property/SpatialCalibrationProperty.h>
Public Member Functions | |
SpatialCalibrationProperty () | |
Initialize the property with default values. More... | |
SpatialCalibrationProperty (const Vector3d &origin) | |
Initialize the property with only a custom origin. More... | |
SpatialCalibrationProperty (const Vector3d &origin, const Vector3d &spacing) | |
Initialize a calibration property with an origin and a spacing. More... | |
SpatialCalibrationProperty (const Vector3d &origin, const Vector3d &spacing, const SpatialDirections &direction) | |
Initialize a calibration without a specific unit. More... | |
SpatialCalibrationProperty (const Vector3d &origin, const Vector3d &spacing, const SpatialDirections &direction, const std::string &unit) | |
Initialize a calibration property. More... | |
SpatialCalibrationProperty (const SpatialCalibrationProperty &other) | |
Copy constructor. More... | |
SpatialCalibrationProperty & | operator= (const SpatialCalibrationProperty &other) |
Assignment operator. More... | |
SpatialCalibrationProperty (SpatialCalibrationProperty &&other) noexcept | |
Move constructor. More... | |
SpatialCalibrationProperty & | operator= (SpatialCalibrationProperty &&other) noexcept |
Move assignment operator. More... | |
~SpatialCalibrationProperty () | |
Destructor. | |
const Vector3d & | origin () const |
Get the origin. | |
const Vector3d & | spacing () const |
Get the spacing. | |
const SpatialDirections & | directions () const |
Get the spatial axis system. | |
const std::string & | unit () const |
Get the unit. | |
void | setOrigin (const Vector3d &origin) |
Set the origin. | |
void | setSpacing (const Vector3d &spacing) |
Set the spacing. | |
void | setDirections (const SpatialDirections &directions) |
Set the directions. | |
void | setUnit (const std::string &unit) |
Set the unit. | |
bool | operator== (const SpatialCalibrationProperty &other) const |
Equality operator. More... | |
bool | operator!= (const SpatialCalibrationProperty &other) const |
Not Equality operator. More... | |
std::string | toString () const |
Return string representation. | |
This Property is used to represent the image properties in world space.
The units are described by a string following a basic convention: Abridged units names, "cm" for centimeters or "in" for inches for example. If there is no commonly used abridged unit, just use the unit name. No punctuation at the end, unless it is part of the abridged notation.
If the dimension has no unit, it is described by the empty string.
Some examples:
iolink::SpatialCalibrationProperty::SpatialCalibrationProperty | ( | ) |
Initialize the property with default values.
|
explicit |
Initialize the property with only a custom origin.
origin | origin the origin of the calibration |
iolink::SpatialCalibrationProperty::SpatialCalibrationProperty | ( | const Vector3d & | origin, |
const Vector3d & | spacing | ||
) |
Initialize a calibration property with an origin and a spacing.
origin | The origin position of the ImageView. |
spacing | The size of each element of the raster grid. |
iolink::SpatialCalibrationProperty::SpatialCalibrationProperty | ( | const Vector3d & | origin, |
const Vector3d & | spacing, | ||
const SpatialDirections & | direction | ||
) |
Initialize a calibration without a specific unit.
origin | The origin position of the ImageView. |
spacing | The size of each element of the raster grid. |
direction | The directions for each axes. |
iolink::SpatialCalibrationProperty::SpatialCalibrationProperty | ( | const Vector3d & | origin, |
const Vector3d & | spacing, | ||
const SpatialDirections & | direction, | ||
const std::string & | unit | ||
) |
Initialize a calibration property.
origin | The origin position of the ImageView. |
spacing | The size of each element of the raster grid. |
direction | The directions for each axes. |
unit | The unit of the axes. |
iolink::SpatialCalibrationProperty::SpatialCalibrationProperty | ( | const SpatialCalibrationProperty & | other | ) |
Copy constructor.
other | The calibration to copy |
|
noexcept |
Move constructor.
other | The calibration to copy |
bool iolink::SpatialCalibrationProperty::operator!= | ( | const SpatialCalibrationProperty & | other | ) | const |
Not Equality operator.
other | calibration property to compare to current one |
SpatialCalibrationProperty& iolink::SpatialCalibrationProperty::operator= | ( | const SpatialCalibrationProperty & | other | ) |
Assignment operator.
other | The calibration to copy |
|
noexcept |
Move assignment operator.
other | The calibration to copy |
bool iolink::SpatialCalibrationProperty::operator== | ( | const SpatialCalibrationProperty & | other | ) | const |
Equality operator.
other | calibration property to compare to current one |