QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QwtPoint3D Class Reference

QwtPoint3D class defines a 3D point in double coordinates. More...

#include <qwt_point_3d.h>

Public Member Functions

 QwtPoint3D ()
 Default constructor - constructs a null point.
 
 QwtPoint3D (double x, double y, double z)
 Constructs a point with coordinates specified by x, y and z.
 
 QwtPoint3D (const QPointF &)
 Constructs a point with x and y coordinates from a 2D point, and z coordinate of 0.
 
bool isNull () const noexcept
 
double x () const noexcept
 Return the x-coordinate of the point.
 
double y () const noexcept
 Return the y-coordinate of the point.
 
double z () const noexcept
 Return the z-coordinate of the point.
 
double & rx () noexcept
 Return a reference to the x-coordinate of the point.
 
double & ry () noexcept
 Return a reference to the y-coordinate of the point.
 
double & rz () noexcept
 Return a reference to the z-coordinate of the point.
 
void setX (double x) noexcept
 Set the x-coordinate of the point to x.
 
void setY (double y) noexcept
 Set the y-coordinate of the point to y.
 
void setZ (double y) noexcept
 Set the z-coordinate of the point to z.
 
QPointF toPoint () const noexcept
 
bool operator== (const QwtPoint3D &) const noexcept
 Return true if this point and other are equal.
 
bool operator!= (const QwtPoint3D &) const noexcept
 Return true if this point and other are different.
 

Detailed Description

QwtPoint3D class defines a 3D point in double coordinates.

Constructor & Destructor Documentation

◆ QwtPoint3D() [1/3]

QwtPoint3D::QwtPoint3D ( )
inline

Default constructor - constructs a null point.

See also
isNull()

◆ QwtPoint3D() [2/3]

QwtPoint3D::QwtPoint3D ( double  x,
double  y,
double  z = 0.0 
)
inline

Constructs a point with coordinates specified by x, y and z.

Parameters
xX coordinate
yY coordinate
zZ coordinate (default 0.0)

◆ QwtPoint3D() [3/3]

QwtPoint3D::QwtPoint3D ( const QPointF &  other)
inline

Constructs a point with x and y coordinates from a 2D point, and z coordinate of 0.

Parameters
other2D point

Member Function Documentation

◆ isNull()

bool QwtPoint3D::isNull ( ) const
inlinenoexcept
Returns
True if the point is null (x, y, z all equal to zero); otherwise false

◆ toPoint()

QPointF QwtPoint3D::toPoint ( ) const
inlinenoexcept
Returns
2D point with the z coordinate dropped

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