#include <LogicalPositionInfo.h>
|
double | posX { std::numeric_limits<double>::quiet_NaN() } |
| The x coordinate of the top left point.
|
|
double | posY { std::numeric_limits<double>::quiet_NaN() } |
| The y coordinate of the top left point.
|
|
double | width { std::numeric_limits<double>::quiet_NaN() } |
| The width.
|
|
double | height { std::numeric_limits<double>::quiet_NaN() } |
| The height.
|
|
int | pyrLvl { std::numeric_limits<int>::min() } |
| The pyramid level.
|
|
This structure defines the "logical position" of a tile in the 2D-document model. It is given by a (axis-aligned) rectangle (in the plane-pixel-coordinate-system) and the pyramid-level.
◆ LogicalPositionInfo() [1/2]
imgdoc2::LogicalPositionInfo::LogicalPositionInfo |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
w, |
|
|
double |
h |
|
) |
| |
|
inline |
Constructor initializing the rectangle and setting the pyramid-level to zero.
- Parameters
-
x | The x coordinate of the top left point. |
y | The y coordinate of the top left point. |
w | The width. |
h | The height. |
◆ LogicalPositionInfo() [2/2]
imgdoc2::LogicalPositionInfo::LogicalPositionInfo |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
w, |
|
|
double |
h, |
|
|
int |
pyrLvl |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
x | The x coordinate of the top left point. |
y | The y coordinate of the top left point. |
w | The width. |
h | The height. |
pyrLvl | The pyramid level. |
◆ operator!=()
Inequality operator (where the coordinates are compared with an epsilon).
- Parameters
-
- Returns
- True if the parameters are not considered equivalent.
◆ operator==()
Equality operator (where the coordinates are compared with an epsilon).
- Parameters
-
- Returns
- True if the parameters are considered equivalent.
The documentation for this struct was generated from the following file: