Documentation


X3DTK::Qt::AbstractMField Class Reference

#include <Fields.h>

Inheritance diagram for X3DTK::Qt::AbstractMField:

X3DTK::Qt::Field X3DTK::Qt::MField< TypeSField > X3DTK::Qt::MField< animal::Vec2 > X3DTK::Qt::MField< animal::Vec3 > X3DTK::Qt::MField< animal::Vec4 > X3DTK::Qt::MField< float > X3DTK::Qt::MField< int > X3DTK::Qt::MField< X3DTK::SFRotation > X3DTK::Qt::MField< X3DTK::SFVec2f > X3DTK::Qt::MField< X3DTK::SFVec3f > List of all members.

Detailed Description

A pure abstract multiple field.

It's a Field which contains multiple of fields.

Definition at line 115 of file Fields.h.

Public Member Functions

 AbstractMField (QString name, void *pointer, unsigned int nbColumns=1, bool edit=false)
virtual QString read ()=0
 Read the multiple fields of this field from the attribute Field::pointer.

virtual void write (QString s)=0
 Write the multiple fields from a QString through the attribute Field::pointer.


Public Attributes

unsigned int nbColumns
 The number of columns when the multi-fields are represented.

bool edit
 Enable or not to edit the multiple fields.


Constructor & Destructor Documentation

X3DTK::Qt::AbstractMField::AbstractMField QString  name,
void *  pointer,
unsigned int  nbColumns = 1,
bool  edit = false
[inline]
 

Definition at line 127 of file Fields.h.

References edit.


Member Function Documentation

virtual QString X3DTK::Qt::AbstractMField::read  )  [pure virtual]
 

Read the multiple fields of this field from the attribute Field::pointer.

Implemented in X3DTK::Qt::MField< TypeSField >, X3DTK::Qt::MField< animal::Vec4 >, X3DTK::Qt::MField< X3DTK::SFVec3f >, X3DTK::Qt::MField< X3DTK::SFVec2f >, X3DTK::Qt::MField< float >, X3DTK::Qt::MField< int >, X3DTK::Qt::MField< animal::Vec3 >, X3DTK::Qt::MField< animal::Vec2 >, and X3DTK::Qt::MField< X3DTK::SFRotation >.

Referenced by X3DTK::Qt::MFEditor::load().

virtual void X3DTK::Qt::AbstractMField::write QString  s  )  [pure virtual]
 

Write the multiple fields from a QString through the attribute Field::pointer.

Implemented in X3DTK::Qt::MField< TypeSField >, X3DTK::Qt::MField< animal::Vec4 >, X3DTK::Qt::MField< X3DTK::SFVec3f >, X3DTK::Qt::MField< X3DTK::SFVec2f >, X3DTK::Qt::MField< float >, X3DTK::Qt::MField< int >, X3DTK::Qt::MField< animal::Vec3 >, X3DTK::Qt::MField< animal::Vec2 >, and X3DTK::Qt::MField< X3DTK::SFRotation >.

Referenced by X3DTK::Qt::MFEditor::ok().


Member Data Documentation

bool X3DTK::Qt::AbstractMField::edit
 

Enable or not to edit the multiple fields.

When this attibute is true, take care of the internal coherence linked to the size of represented data via the attribute Field::pointer

See also:
MFEditor

Definition at line 125 of file Fields.h.

Referenced by AbstractMField().

unsigned int X3DTK::Qt::AbstractMField::nbColumns
 

The number of columns when the multi-fields are represented.

Definition at line 119 of file Fields.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:52:34 2004 by doxygen 1.3.6