Developer documentation | Axl-2.5.1

axlDouble.h
Go to the documentation of this file.
1 /* axlDouble.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2012 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 
15 #ifndef AXLDOUBLE_H
16 #define AXLDOUBLE_H
17 
18 #include "axlCoreExport.h"
19 
20 #include "axlAbstractData.h"
21 //#include "axlAbstractNumberType.h"
22 
23 #include <QtCore>
24 
25 class axlPoint;
26 
27 class axlDoublePrivate;
28 
30 {
31  Q_OBJECT
32 
33 public:
34  axlDouble(QObject *parent = 0);
35  axlDouble(double value, QObject *parent = 0);
36  axlDouble(const axlDouble& other);
37  ~axlDouble(void);
38 
39  virtual QString description(void) const;
40  virtual QString identifier(void) const;
41 
42  double value(void) const;
46  QVariantList convertDataToQVariant(void) const;
50  int convertQVariantToData(const QVariantList &data);
51 
52 
53 public slots :
54  void setValue(double newValue);
55 
56 public :
57  axlDouble& operator =(const axlDouble& other);
58 
59 
60  friend QDebug operator<<(QDebug dbg, axlDouble line);
61  friend QDebug operator<<(QDebug dbg, axlDouble& line);
62  friend QDebug operator<<(QDebug dbg, axlDouble *line);
63 
64 
65 
66 private:
67  axlDoublePrivate *d;
68 };
69 
70 dtkAbstractData *createaxlDouble(void);
71 // /////////////////////////////////////////////////////////////////
72 // Debug operators
73 // /////////////////////////////////////////////////////////////////
74 
75 QDebug operator<<(QDebug dbg, axlDouble point);
76 QDebug operator<<(QDebug dbg, axlDouble& point);
77 QDebug operator<<(QDebug dbg, axlDouble *point);
78 
79 #endif // AXLDOUBLE_H
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
Class axlDouble defines a double.
Definition: axlDouble.h:29
dtkAbstractData * createaxlDouble(void)
Definition: axlDouble.cpp:147
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...
QDebug operator<<(QDebug dbg, axlDouble point)
Definition: axlDouble.cpp:94
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.