24 #include "axlCoreExport.h"
32 class axlPointPrivate;
37 Q_PROPERTY(
double x READ x WRITE touchX);
38 Q_PROPERTY(
double y READ y WRITE touchY);
39 Q_PROPERTY(
double z READ z WRITE touchZ);
43 axlPoint(
double x,
double y,
double z=0, QObject *parent = 0);
46 axlPoint(
double *p, QObject *parent = 0);
50 virtual QString description(
void)
const;
51 virtual QString identifier(
void)
const;
57 double operator [] (
int i)
const;
62 double& operator [] (
int i);
64 double *coordinates(
void)
const;
66 double norm(
void)
const;
68 void setCoordinates(
double x,
double y,
double z);
71 void touchX(
double x);
72 void touchY(
double y);
73 void touchZ(
double z);
83 double operator* (
const axlPoint& other)
const;
89 axlPoint operator*(
double scalar)
const;
90 axlPoint operator/(
double scalar)
const;
92 void transformAsPoint(
double matrix[12]);
93 void transformAsVector(
double matrix[12]);
95 bool operator<(
const axlPoint& other)
const;
97 bool operator==(
const axlPoint& point2)
const;
98 bool operator!=(
const axlPoint& point2)
const;
Class axlPoint defines 3D points.
void normalize(axlPoint &point)
virtual int convertQVariantToData(const QVariantList &data)
Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was suc...
QDebug operator<<(QDebug dbg, axlPoint point)
dtkAbstractData * createaxlPoint(void)
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
Q_DECLARE_METATYPE(axlPoint)
Class axlAbstractData defines an API for all type of axel data.