24 #include "axlCoreExport.h"
31 class axlSpherePrivate;
36 Q_PROPERTY(
double radius READ radius WRITE touchRadius);
37 Q_PROPERTY(
axlPoint center READ centerPoint WRITE touchCenter);
41 axlSphere(
double x,
double y,
double z=0,
double radius = 1.0, QObject *parent = 0);
45 virtual QString description(
void)
const;
46 virtual QString identifier(
void)
const;
51 double *coordinates(
void)
const;
52 double radius(
void)
const;
53 void setRadius(
double radius);
54 void touchRadius(
double radius);
58 void setValues(
double x,
double y,
double z,
double radius);
59 void setCenter(
double x,
double y,
double z);
88 void onXChanged(
double x);
89 void onYChanged(
double y);
90 void onZChanged(
double z);
91 void onRadiusChanged(
double radius);
110 QDebug operator<<(QDebug dbg,
axlSphere sphere);
111 QDebug operator<<(QDebug dbg,
axlSphere& sphere);
112 QDebug operator<<(QDebug dbg,
axlSphere *sphere);
114 #endif // AXLSPHERE_H
dtkAbstractData * createaxlSphere(void)
Class axlPoint defines 3D points.
Q_DECLARE_METATYPE(axlAbstractData)
QDebug operator<<(QDebug dbg, axlSphere sphere)
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...
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
Class axlSphere defines 3D spheres.
Class axlAbstractData defines an API for all type of axel data.