Class axlDouble defines a double. More...
#include <axlDouble.h>
Public Slots | |
void | setValue (double newValue) |
Public Slots inherited from axlAbstractData | |
void | touchGeometry (void) |
void | touchProperty (void) |
void | touchStructure (void) |
virtual void | touchField (void) |
void | setColor (const QColor &color) |
void | setOpacity (const double &opacity) |
void | setSize (const double &size) |
void | setShader (const QString &shader) |
void | setEditable (bool edit) |
Public Member Functions | |
axlDouble (QObject *parent=0) | |
axlDouble (double value, QObject *parent=0) | |
axlDouble (const axlDouble &other) | |
Constructs a copy of other with same value. More... | |
~axlDouble (void) | |
Destroys the axel double. More... | |
virtual QString | description (void) const |
virtual QString | identifier (void) const |
double | value (void) const |
QVariantList | convertDataToQVariant (void) const |
int | convertQVariantToData (const QVariantList &data) |
axlDouble & | operator= (const axlDouble &other) |
Assigns other to this double and returns a reference to this double. More... | |
Public Member Functions inherited from axlAbstractData | |
axlAbstractData (axlAbstractData *parent=NULL) | |
axlAbstractData (const axlAbstractData &data) | |
virtual | ~axlAbstractData (void) |
const QColor & | color (void) const |
const double & | opacity (void) const |
const double & | size (void) const |
const QString & | shader (void) const |
const bool & | editable (void) |
const bool & | updateView (void) |
void | setColor (double r, double g, double b) |
void | addField (axlAbstractField *field) |
Add a field to the field list of the object. More... | |
bool | updateFieldList (QString nameField) |
Check if a field with the same name is already applied on the object. More... | |
QString | changeFieldName (QString fieldName) |
axlMesh * | mesh (void) |
Return the mesh of that object is computed. More... | |
void | setMesh (axlMesh *mesh) |
Set a corresponding mesh for that object. More... | |
void | setUpdateView (bool updateView) |
QList< axlAbstractField * > | fields (void) |
Friends | |
QDebug | operator<< (QDebug dbg, axlDouble line) |
QDebug | operator<< (QDebug dbg, axlDouble &line) |
QDebug | operator<< (QDebug dbg, axlDouble *line) |
Additional Inherited Members | |
Signals inherited from axlAbstractData | |
void | modifiedGeometry (void) |
void | modifiedStructure (void) |
void | modifiedField (void) |
void | modifiedProperty (void) |
Properties inherited from axlAbstractData | |
QColor | color |
double | opacity |
double | size |
QString | shader |
Class axlDouble defines a double.
This class enables to represent and manipulate double number.
Example:
Definition at line 29 of file axlDouble.h.
axlDouble::axlDouble | ( | QObject * | parent = 0 | ) |
Definition at line 35 of file axlDouble.cpp.
axlDouble::axlDouble | ( | double | value, |
QObject * | parent = 0 |
||
) |
Definition at line 41 of file axlDouble.cpp.
axlDouble::axlDouble | ( | const axlDouble & | other | ) |
Constructs a copy of other with same value.
Definition at line 52 of file axlDouble.cpp.
axlDouble::~axlDouble | ( | void | ) |
Destroys the axel double.
Definition at line 62 of file axlDouble.cpp.
|
virtual |
Convert an axlDouble into a QVariantList. Useful for RPC protocol.
Reimplemented from axlAbstractData.
Definition at line 128 of file axlDouble.cpp.
|
virtual |
Convert a QVariantList into an axlDouble. Useful for RPC protocol.
Reimplemented from axlAbstractData.
Definition at line 138 of file axlDouble.cpp.
|
virtual |
Definition at line 115 of file axlDouble.cpp.
|
virtual |
Definition at line 122 of file axlDouble.cpp.
Assigns other to this double and returns a reference to this double.
Definition at line 72 of file axlDouble.cpp.
|
slot |
Definition at line 83 of file axlDouble.cpp.
double axlDouble::value | ( | void | ) | const |
Definition at line 79 of file axlDouble.cpp.
|
friend |
Definition at line 94 of file axlDouble.cpp.
|
friend |
Definition at line 101 of file axlDouble.cpp.
|
friend |
Definition at line 108 of file axlDouble.cpp.