Developer documentation | Axl-2.5.1

axlAbstractData Class Reference

Class axlAbstractData defines an API for all type of axel data. More...

#include <axlAbstractData.h>

Inheritance diagram for axlAbstractData:
axlAbstractCurve axlAbstractDataComposite axlAbstractField axlAbstractNumberType axlAbstractSurface axlAbstractVolume axlCone axlCylinder axlDouble axlEllipsoid axlInteger axlMesh axlPlane axlPoint axlPointSet axlShape axlShapeBSpline axlSphere axlTorus

Public Slots

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)
 

Signals

void modifiedGeometry (void)
 
void modifiedStructure (void)
 
void modifiedField (void)
 
void modifiedProperty (void)
 

Public Member Functions

 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)
 
axlMeshmesh (void)
 Return the mesh of that object is computed. More...
 
void setMesh (axlMesh *mesh)
 Set a corresponding mesh for that object. More...
 
virtual QVariantList convertDataToQVariant (void) const
 Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData. More...
 
virtual int convertQVariantToData (const QVariantList &data)
 Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was sucessfully made. Otherwise return 0. More...
 
void setUpdateView (bool updateView)
 
QList< axlAbstractField * > fields (void)
 

Properties

QColor color
 
double opacity
 
double size
 
QString shader
 

Detailed Description

Class axlAbstractData defines an API for all type of axel data.

Every axel data must inherite from this abstract class.

Definition at line 33 of file axlAbstractData.h.

Constructor & Destructor Documentation

axlAbstractData::axlAbstractData ( axlAbstractData parent = NULL)

Definition at line 44 of file axlAbstractData.cpp.

axlAbstractData::axlAbstractData ( const axlAbstractData data)

Definition at line 54 of file axlAbstractData.cpp.

axlAbstractData::~axlAbstractData ( void  )
virtual

Definition at line 66 of file axlAbstractData.cpp.

Member Function Documentation

void axlAbstractData::addField ( axlAbstractField field)

Add a field to the field list of the object.

Definition at line 160 of file axlAbstractData.cpp.

QString axlAbstractData::changeFieldName ( QString  nameField)

Check if a field with the same name is already applied on the object. Modify nameField if it's the case. Field names must be unique!

Definition at line 187 of file axlAbstractData.cpp.

const QColor & axlAbstractData::color ( void  ) const

Definition at line 72 of file axlAbstractData.cpp.

QVariantList axlAbstractData::convertDataToQVariant ( void  ) const
virtual
int axlAbstractData::convertQVariantToData ( const QVariantList &  data)
virtual

Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was sucessfully made. Otherwise return 0.

Reimplemented in axlMesh, axlShape, axlAbstractVolumeBSpline, axlPoint, axlEllipsoid, axlAbstractSurfaceBSpline, axlAbstractCurveBSpline, axlDataDynamic, axlCone, axlLine, axlSphere, axlCircleArc, axlCylinder, axlTorus, axlPlane, axlDouble, and axlInteger.

Definition at line 244 of file axlAbstractData.cpp.

const bool & axlAbstractData::editable ( void  )

Definition at line 122 of file axlAbstractData.cpp.

QList< axlAbstractField * > axlAbstractData::fields ( void  )

Definition at line 204 of file axlAbstractData.cpp.

axlMesh * axlAbstractData::mesh ( void  )

Return the mesh of that object is computed.

Definition at line 142 of file axlAbstractData.cpp.

void axlAbstractData::modifiedField ( void  )
signal
void axlAbstractData::modifiedGeometry ( void  )
signal
void axlAbstractData::modifiedProperty ( void  )
signal
void axlAbstractData::modifiedStructure ( void  )
signal
const double & axlAbstractData::opacity ( void  ) const

Definition at line 87 of file axlAbstractData.cpp.

void axlAbstractData::setColor ( double  r,
double  g,
double  b 
)

Definition at line 82 of file axlAbstractData.cpp.

void axlAbstractData::setColor ( const QColor &  color)
slot

Definition at line 77 of file axlAbstractData.cpp.

void axlAbstractData::setEditable ( bool  edit)
slot

Definition at line 132 of file axlAbstractData.cpp.

void axlAbstractData::setMesh ( axlMesh mesh)

Set a corresponding mesh for that object.

Definition at line 151 of file axlAbstractData.cpp.

void axlAbstractData::setOpacity ( const double &  opacity)
slot

Definition at line 92 of file axlAbstractData.cpp.

void axlAbstractData::setShader ( const QString &  shader)
slot

Definition at line 127 of file axlAbstractData.cpp.

void axlAbstractData::setSize ( const double &  size)
slot

Definition at line 102 of file axlAbstractData.cpp.

void axlAbstractData::setUpdateView ( bool  updateView)

Definition at line 112 of file axlAbstractData.cpp.

const QString & axlAbstractData::shader ( void  ) const

Definition at line 117 of file axlAbstractData.cpp.

const double & axlAbstractData::size ( void  ) const

Definition at line 97 of file axlAbstractData.cpp.

void axlAbstractData::touchField ( void  )
virtualslot

Definition at line 209 of file axlAbstractData.cpp.

void axlAbstractData::touchGeometry ( void  )
slot

Definition at line 214 of file axlAbstractData.cpp.

void axlAbstractData::touchProperty ( void  )
slot

Definition at line 219 of file axlAbstractData.cpp.

void axlAbstractData::touchStructure ( void  )
slot

Definition at line 224 of file axlAbstractData.cpp.

bool axlAbstractData::updateFieldList ( QString  nameField)

Check if a field with the same name is already applied on the object.

Definition at line 171 of file axlAbstractData.cpp.

const bool & axlAbstractData::updateView ( void  )

Definition at line 107 of file axlAbstractData.cpp.

Property Documentation

QColor axlAbstractData::color
readwrite

Definition at line 36 of file axlAbstractData.h.

double axlAbstractData::opacity
readwrite

Definition at line 37 of file axlAbstractData.h.

QString axlAbstractData::shader
readwrite

Definition at line 39 of file axlAbstractData.h.

double axlAbstractData::size
readwrite

Definition at line 38 of file axlAbstractData.h.


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