QWT API (English) 7.0.1
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
 
double x () const
 Return the x-coordinate of the point
 
double y () const
 Return the y-coordinate of the point
 
double z () const
 Return the z-coordinate of the point
 
double & rx ()
 Return a reference to the x-coordinate of the point
 
double & ry ()
 Return a reference to the y-coordinate of the point
 
double & rz ()
 Return a reference to the z-coordinate of the point
 
void setX (double x)
 Set the x-coordinate of the point to x
 
void setY (double y)
 Set the y-coordinate of the point to y
 
void setZ (double y)
 Set the z-coordinate of the point to z
 
QPointF toPoint () const
 
bool operator== (const QwtPoint3D &) const
 Return true if this point and other are equal
 
bool operator!= (const QwtPoint3D &) const
 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.

◆ 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.

◆ 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.

Member Function Documentation

◆ isNull()

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

◆ toPoint()

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

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