libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
imgdoc2::LogicalPositionInfo3D Struct Reference

#include <LogicalPositionInfo.h>

Public Member Functions

 LogicalPositionInfo3D ()=default
 Default constructor, all properties are initialized to invalid values.
 
 LogicalPositionInfo3D (double x, double y, double z, double w, double h, double d)
 
 LogicalPositionInfo3D (double x, double y, double z, double w, double h, double d, int pyrLvl)
 
bool operator== (const LogicalPositionInfo3D &rhs) const
 
bool operator!= (const LogicalPositionInfo3D &rhs) const
 

Public Attributes

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 posZ { std::numeric_limits<double>::quiet_NaN() }
 The z 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.
 
double depth { std::numeric_limits<double>::quiet_NaN() }
 The depth.
 
int pyrLvl { std::numeric_limits<int>::min() }
 The pyramid level.
 

Detailed Description

This structure defines the "logical position" of a tile in the 3D-document model. It is given by a (axis-aligned) cuboid (in the plane-pixel-coordinate-system) and the pyramid-level.

Constructor & Destructor Documentation

◆ LogicalPositionInfo3D() [1/2]

imgdoc2::LogicalPositionInfo3D::LogicalPositionInfo3D ( double  x,
double  y,
double  z,
double  w,
double  h,
double  d 
)
inline

Constructor initializing the cuboid and setting the pyramid-level to invalid values.

Parameters
xThe x coordinate of the top left point.
yThe y coordinate of the top left point.
zThe z coordinate of the top left point.
wThe width.
hThe height.
dThe depth.

◆ LogicalPositionInfo3D() [2/2]

imgdoc2::LogicalPositionInfo3D::LogicalPositionInfo3D ( double  x,
double  y,
double  z,
double  w,
double  h,
double  d,
int  pyrLvl 
)
inline

Constructor.

Parameters
xThe x coordinate of the top left point.
yThe y coordinate of the top left point.
zThe z coordinate of the top left point.
wThe width.
hThe height.
dThe depth.
pyrLvlThe pyramid level.

Member Function Documentation

◆ operator!=()

bool imgdoc2::LogicalPositionInfo3D::operator!= ( const LogicalPositionInfo3D rhs) const
inline

Inequality operator (where the coordinates are compared with an epsilon).

Parameters
rhsThe right hand side.
Returns
True if the parameters are not considered equivalent.

◆ operator==()

bool imgdoc2::LogicalPositionInfo3D::operator== ( const LogicalPositionInfo3D rhs) const
inline

Equality operator (where the coordinates are compared with an epsilon).

Parameters
rhsThe right hand side.
Returns
True if the parameters are considered equivalent.

The documentation for this struct was generated from the following file: