ML Reference
ml::FieldContainer Class Reference

Defines the class FieldContainer to encapsulate a vector of fields for (see class Field). More...

#include <mlFieldContainer.h>

Inheritance diagram for ml::FieldContainer:
ml::Base ml::Module ml::BaseOp ml::Engine ml::DummyOp

List of all members.

Public Member Functions

 FieldContainer ()
 Constructor.
virtual ~FieldContainer ()
 Destructor: Deletes all added fields.
FieldaddField (const char *name, const char *type, const char *value)
 Adds a new field with name name, type type and value value (coded as string) to the container.
FieldaddField (Field *field)
 Adds a field, the ownership of the field is passed to the FieldContainer.
BoolFieldaddBool (const char *name)
 Creates a BoolField with name and adds it to the container. Default value is false.
BoolFieldaddBool (const char *name, bool value)
 Creates a BoolField with name and adds it to the container.
IntFieldaddInt (const char *name)
 Creates an IntField with name and adds it to the container. Default value is 0.
IntFieldaddInt (const char *name, MLint value)
 Creates an IntField with name and adds it to the container.
EnumFieldaddEnum (const char *name, const char *const *enumerationItemNames, MLint numEnumerationItems)
 Creates an EnumField field with name and adds it to the container.
EnumFieldaddEnum (const char *name, const std::vector< std::string > &enumerationItemNames)
 Creates an EnumField field with name and adds it to the container.
FloatFieldaddFloat (const char *name)
 Creates a FloatField with name and adds it to the container. Default value is 0.f.
FloatFieldaddFloat (const char *name, float value)
 Creates a FloatField with name and adds it to the container.
ProgressFieldaddProgress (const char *name)
 Creates a float ProgressField with name and adds it to the container. Default value is 0.f.
ProgressFieldaddProgress (const char *name, float value)
 Creates a float ProgressField with name and adds it to the container.
DoubleFieldaddDouble (const char *name)
 Creates a DoubleField with name and adds it to the container. Default value is 0.
DoubleFieldaddDouble (const char *name, double value)
 Creates a DoubleField with name and adds it to the container.
LongDoubleFieldaddLongDouble (const char *name)
 Creates a LongDoubleField with name and adds it to the container. Default value is 0.
LongDoubleFieldaddLongDouble (const char *name, MLldouble value)
 Creates a LongDoubleField with name and adds it to the container.
StringFieldaddString (const char *name)
 Creates a StringField with name and adds it to the container. Default value is empty string.
StringFieldaddString (const char *name, const std::string &value)
 Creates a StringField with name and adds it to the container.
NotifyFieldaddNotify (const char *name)
 Creates a NotifyField field with name and adds it to the container.
BaseFieldaddBase (const char *name)
 Creates a Base field with name and adds it to the container. Default value is NULL.
BaseFieldaddBase (const char *name, Base *value)
 Creates a Base field with name and adds it to the container.
SoNodeFieldaddSoNode (const char *name)
 Creates a SoNodeField with name and adds it to the container. Default value is NULL.
SoNodeFieldaddSoNode (const char *name, SoNode *value)
 Creates a SoNodeField with name and adds it to the container.
PointerFieldaddPointer (const char *name)
 Creates a PointerField with name and adds it to the container.
Vector2FieldaddVector2 (const char *name)
 Creates a Vector2Field with name and adds it to the container.
Vector2FieldaddVector2 (const char *name, const Vector2 &value)
 Creates a Vector2Field with name and adds it to the container.
Vector2FieldaddVector2 (const char *name, double x, double y)
 Creates a Vector2Field with name and adds it to the container.
Vector3FieldaddVector3 (const char *name)
 Creates a Vector3Field with name and adds it to the container.
Vector3FieldaddVector3 (const char *name, const Vector3 &value)
 Creates a Vector3Field with name and adds it to the container.
Vector3FieldaddVector3 (const char *name, double x, double y, double z)
 Creates a Vector3Field with name and adds it to the container.
Vector4FieldaddVector4 (const char *name)
 Creates a Vector4Field with name and adds it to the container.
Vector4FieldaddVector4 (const char *name, const Vector4 &value)
 Creates a Vector4Field with name and adds it to the container.
Vector4FieldaddVector4 (const char *name, double x, double y, double z, double w)
 Creates a Vector4Field with name and adds it to the container.
Vector5FieldaddVector5 (const char *name)
 Creates a Vector5Field with name and adds it to the container.
Vector5FieldaddVector5 (const char *name, const Vector5 &value)
 Creates a Vector5Field with name and adds it to the container.
Vector6FieldaddVector6 (const char *name)
 Creates a Vector6Field with name and adds it to the container.
Vector6FieldaddVector6 (const char *name, const Vector6 &value)
 Creates a Vector6Field with name and adds it to the container.
Vector10FieldaddVector10 (const char *name)
 Creates a Vector10Field with name and adds it to the container.
Vector10FieldaddVector10 (const char *name, const Vector10 &value)
 Creates a Vector10Field with name and adds it to the container.
ImageVectorFieldaddImageVector (const char *name)
 Creates a ImageVectorField with name and adds it to the container.
ImageVectorFieldaddImageVector (const char *name, const ImageVector &value)
 Creates a ImageVectorField with name and adds it to the container.
ImageVectorFieldaddImageVector (const char *name, MLint x, MLint y, MLint z, MLint c, MLint t, MLint u)
 Creates a ImageVectorField with name and adds it to the container.
SubImageBoxFieldaddSubImageBox (const char *name)
 Creates a SubImageBoxField with name and adds it to the container.
SubImageBoxFieldaddSubImageBox (const char *name, const SubImageBox &value)
 Creates a SubImageBoxField with name and adds it to the container.
SubImageBoxdFieldaddSubImageBoxd (const char *name)
 Creates a SubImageBoxd field with name and adds it to the container.
SubImageBoxdFieldaddSubImageBoxd (const char *name, const SubImageBoxd &value)
 Creates a SubImageBoxd field with name and adds it to the container.
ColorFieldaddColor (const char *name)
 Creates a ColorField with name and adds it to the container.
ColorFieldaddColor (const char *name, float r, float g, float b)
 Creates a ColorField with name and adds it to the container.
ColorFieldaddColor (const char *name, const Vector3 &value)
 Creates a ColorField with name and adds it to the container.
PlaneFieldaddPlane (const char *name)
 Creates a PlaneField with name and adds it to the container.
PlaneFieldaddPlane (const char *name, double f0, double f1, double f2, double f3)
 Creates a PlaneField with name and adds it to the container.
PlaneFieldaddPlane (const char *name, const Plane &value)
 Creates a PlaneField with name and adds it to the container.
RotationFieldaddRotation (const char *name)
 Creates a RotationField with name and adds it to the container.
RotationFieldaddRotation (const char *name, const Rotation &value)
 Creates a RotationField with name and adds it to the container.
Matrix2FieldaddMatrix2 (const char *name)
 Creates a Matrix2Field with name and adds it to the container.
Matrix2FieldaddMatrix2 (const char *name, const Matrix2 &value)
 Creates a Matrix2Field with name and adds it to the container.
Matrix3FieldaddMatrix3 (const char *name)
 Creates a Matrix3Field with name and adds it to the container.
Matrix3FieldaddMatrix3 (const char *name, const Matrix3 &value)
 Creates a Matrix3Field with name and adds it to the container.
Matrix4FieldaddMatrix4 (const char *name)
 Creates a Matrix4Field with name and adds it to the container.
Matrix4FieldaddMatrix4 (const char *name, const Matrix4 &value)
 Creates a Matrix4Field with name and adds it to the container.
Matrix5FieldaddMatrix5 (const char *name)
 Creates a Matrix5Field with name and adds it to the container.
Matrix5FieldaddMatrix5 (const char *name, const Matrix5 &value)
 Creates a Matrix5Field with name and adds it to the container.
Matrix6FieldaddMatrix6 (const char *name)
 Creates a Matrix6Field with name and adds it to the container.
Matrix6FieldaddMatrix6 (const char *name, const Matrix6 &value)
 Creates a Matrix6Field with name and adds it to the container.
MatrixFieldaddMatrix (const char *name)
 Creates a MatrixField with name and adds it to the container.
MatrixFieldaddMatrix (const char *name, const Matrix4 &value)
 Creates a MatrixField with name and adds it to the container.
MLDataTypeFieldaddMLDataType (const char *name)
 Creates a MTDataTypeField with name and adds it to the container.
MLDataTypeFieldaddMLDataType (const char *name, MLDataType value)
 Creates a MTDataTypeField with name and adds it to the container.
UniversalTypeFieldaddUniversalType (const char *name)
 Creates a UniversalTypeField field with name and adds it to the container.
size_t getNumFields () const
 Returns the number of added fields.
bool hasField (const std::string &name) const
 Returns true if the field with name name exists; otherwise false is returned.
FieldgetField (const std::string &name) const
 Returns the pointer to the field with name name.
FieldgetField (MLint index) const
 Returns pointer of field at index if it exists. If not, -1 is returned.
MLint getFieldIndex (Field *field) const
 Returns index of field if it exists. If not, -1 is returned.
void setFieldStringValue (const std::string &name, const std::string &value)
 Sets the value of the field with name if it exists.
std::string getFieldStringValue (const std::string &name) const
 Returns the string value of the field with name if it is found.
virtual void activateAttachments ()
 Reactivates notification handling, i.e., all fields of this module will send notifications again to attached sensors and fields if their value is set or changed.
virtual void deactivateAttachments ()
 Disables notification handling, i.e., all fields of this module will not send notifications to attached sensors and fields any more if their values are set or changed.
DeprecatedVirtuals

These methods can no be inside of ML_DEPRECATED, since they would change binary compatibility.

virtual InputConnectorFieldaddInputConnector (const char *, Module *, MLint)
virtual OutputConnectorFieldaddOutputConnector (const char *, Module *, MLint)
Deprecated

Methods have a value pointer in their parameter list.

InputConnectorFieldaddInputConnector (Module *module, MLint i)
OutputConnectorFieldaddOutputConnector (Module *module, MLint i)
Vector2FieldaddVec2f (const char *name)
Vector2FieldaddDeprecatedVec2f (const char *name, Vector2 *var0)
Vector3FieldaddVec3f (const char *name)
Vector3FieldaddDeprecatedVec3f (const char *name, Vector3 *var0)
Vector4FieldaddVec4f (const char *name)
Vector4FieldaddDeprecatedVec4f (const char *name, Vector4 *var0)
Vector5FieldaddVec5f (const char *name)
Vector6FieldaddVec6f (const char *name)
Vector6FieldaddDeprecatedVec6f (const char *name, Vector6 *var0)
Vector10FieldaddVec10f (const char *name)
ImageVectorFieldaddVector (const char *name)
ImageVectorFieldaddDeprecatedVector (const char *name, ImageVector *var0)
SubImageBoxFieldaddSubImgBox (const char *name)
SubImageBoxFieldaddDeprecatedSubImgBox (const char *name, SubImageBox *var0)
SubImageBoxdFieldaddSubImgBoxf (const char *name)
SubImageBoxdFieldaddDeprecatedSubImgBoxf (const char *name, SubImageBoxd *var0)
Matrix2FieldaddMat2 (const char *name)
Matrix3FieldaddMat3 (const char *name)
Matrix4FieldaddMat4 (const char *name)
Matrix5FieldaddMat5 (const char *name)
Matrix6FieldaddMat6 (const char *name)
BoolFieldaddDeprecatedBool (const char *name, bool *var)
IntFieldaddDeprecatedInt (const char *name, MLint *var)
ToggleFieldaddDeprecatedToggle (const char *name)
ToggleFieldaddDeprecatedToggle (const char *name, int *var)
EnumFieldaddDeprecatedEnum (const char *name, const char *const *enumNames, MLint enumNum, int *var)
FloatFieldaddDeprecatedFloat (const char *name, float *var)
ProgressFieldaddDeprecatedProgress (const char *name, float *var)
DoubleFieldaddDeprecatedDouble (const char *name, double *var)
Vector2FieldaddDeprecatedVector2 (const char *name, Vector2 *var0)
Vector3FieldaddDeprecatedVector3 (const char *name, Vector3 *var0)
Vector4FieldaddDeprecatedVector4 (const char *name, Vector4 *var0)
Vector6FieldaddDeprecatedVector6 (const char *name, Vector6 *var0)
ImageVectorFieldaddDeprecatedImageVector (const char *name, ImageVector *var0)
SubImageBoxFieldaddDeprecatedSubImageBox (const char *name, SubImageBox *var0)
SubImageBoxdFieldaddDeprecatedSubImageBoxd (const char *name, SubImageBoxd *var0)
ColorFieldaddDeprecatedColor (const char *name, Vector3 *var0)
MatrixFieldaddDeprecatedMatrix (const char *name, Matrix4 *mat)
MLDataTypeFieldaddDeprecatedMLDataType (const char *name, MLDataType *dt)

Protected Member Functions

virtual void handleNotificationInternal (Field *, FieldSensor::Strength)
 Called when field has changed.

Friends

class Field

Detailed Description

Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).

It is usually used as a parameter interface for the Module class. In its constructor a Module usually adds all the interface parameters to its field container.

Definition at line 71 of file mlFieldContainer.h.


Constructor & Destructor Documentation

ml::FieldContainer::FieldContainer ( )

Constructor.

virtual ml::FieldContainer::~FieldContainer ( ) [virtual]

Destructor: Deletes all added fields.


Member Function Documentation

virtual void ml::FieldContainer::activateAttachments ( ) [inline, virtual]

Reactivates notification handling, i.e., all fields of this module will send notifications again to attached sensors and fields if their value is set or changed.

Overload this method to be notified when e.g., a module load or clone process has finished. During module load and clone processes the field values are restored but handleNotification calls are blocked so that the module cannot update itself to those field changes (see deactivateAttachments()). When activateAttachment is called, the module can have a look at its new field settings and update its internal state to the new field states. Note that the overloaded method has to be called; otherwise notification handling is not activated correctly.

Definition at line 301 of file mlFieldContainer.h.

BaseField* ml::FieldContainer::addBase ( const char *  name)

Creates a Base field with name and adds it to the container. Default value is NULL.

BaseField* ml::FieldContainer::addBase ( const char *  name,
Base value 
)

Creates a Base field with name and adds it to the container.

BoolField* ml::FieldContainer::addBool ( const char *  name)

Creates a BoolField with name and adds it to the container. Default value is false.

BoolField* ml::FieldContainer::addBool ( const char *  name,
bool  value 
)

Creates a BoolField with name and adds it to the container.

ColorField* ml::FieldContainer::addColor ( const char *  name)

Creates a ColorField with name and adds it to the container.

ColorField* ml::FieldContainer::addColor ( const char *  name,
float  r,
float  g,
float  b 
)

Creates a ColorField with name and adds it to the container.

ColorField* ml::FieldContainer::addColor ( const char *  name,
const Vector3 value 
)

Creates a ColorField with name and adds it to the container.

BoolField* ml::FieldContainer::addDeprecatedBool ( const char *  name,
bool *  var 
)
ColorField* ml::FieldContainer::addDeprecatedColor ( const char *  name,
Vector3 var0 
)
DoubleField* ml::FieldContainer::addDeprecatedDouble ( const char *  name,
double *  var 
)
EnumField* ml::FieldContainer::addDeprecatedEnum ( const char *  name,
const char *const *  enumNames,
MLint  enumNum,
int *  var 
)
FloatField* ml::FieldContainer::addDeprecatedFloat ( const char *  name,
float *  var 
)
ImageVectorField* ml::FieldContainer::addDeprecatedImageVector ( const char *  name,
ImageVector var0 
)
IntField* ml::FieldContainer::addDeprecatedInt ( const char *  name,
MLint var 
)
MatrixField* ml::FieldContainer::addDeprecatedMatrix ( const char *  name,
Matrix4 mat 
)
MLDataTypeField* ml::FieldContainer::addDeprecatedMLDataType ( const char *  name,
MLDataType dt 
)
ProgressField* ml::FieldContainer::addDeprecatedProgress ( const char *  name,
float *  var 
)
SubImageBoxField* ml::FieldContainer::addDeprecatedSubImageBox ( const char *  name,
SubImageBox var0 
)
SubImageBoxdField* ml::FieldContainer::addDeprecatedSubImageBoxd ( const char *  name,
SubImageBoxd var0 
)
SubImageBoxField* ml::FieldContainer::addDeprecatedSubImgBox ( const char *  name,
SubImageBox var0 
) [inline]

Definition at line 395 of file mlFieldContainer.h.

SubImageBoxdField* ml::FieldContainer::addDeprecatedSubImgBoxf ( const char *  name,
SubImageBoxd var0 
) [inline]

Definition at line 399 of file mlFieldContainer.h.

ToggleField* ml::FieldContainer::addDeprecatedToggle ( const char *  name)
ToggleField* ml::FieldContainer::addDeprecatedToggle ( const char *  name,
int *  var 
)
Vector2Field* ml::FieldContainer::addDeprecatedVec2f ( const char *  name,
Vector2 var0 
) [inline]

Definition at line 369 of file mlFieldContainer.h.

Vector3Field* ml::FieldContainer::addDeprecatedVec3f ( const char *  name,
Vector3 var0 
) [inline]

Definition at line 373 of file mlFieldContainer.h.

Vector4Field* ml::FieldContainer::addDeprecatedVec4f ( const char *  name,
Vector4 var0 
) [inline]

Definition at line 377 of file mlFieldContainer.h.

Vector6Field* ml::FieldContainer::addDeprecatedVec6f ( const char *  name,
Vector6 var0 
) [inline]

Definition at line 384 of file mlFieldContainer.h.

ImageVectorField* ml::FieldContainer::addDeprecatedVector ( const char *  name,
ImageVector var0 
) [inline]

Definition at line 391 of file mlFieldContainer.h.

Vector2Field* ml::FieldContainer::addDeprecatedVector2 ( const char *  name,
Vector2 var0 
)
Vector3Field* ml::FieldContainer::addDeprecatedVector3 ( const char *  name,
Vector3 var0 
)
Vector4Field* ml::FieldContainer::addDeprecatedVector4 ( const char *  name,
Vector4 var0 
)
Vector6Field* ml::FieldContainer::addDeprecatedVector6 ( const char *  name,
Vector6 var0 
)
DoubleField* ml::FieldContainer::addDouble ( const char *  name)

Creates a DoubleField with name and adds it to the container. Default value is 0.

DoubleField* ml::FieldContainer::addDouble ( const char *  name,
double  value 
)

Creates a DoubleField with name and adds it to the container.

EnumField* ml::FieldContainer::addEnum ( const char *  name,
const std::vector< std::string > &  enumerationItemNames 
)

Creates an EnumField field with name and adds it to the container.

The names of the enum entries are defined by the string vector enumerationItemNames. The value range for the enum value is [0, enumerationItemNames.size()-1].

EnumField* ml::FieldContainer::addEnum ( const char *  name,
const char *const *  enumerationItemNames,
MLint  numEnumerationItems 
)

Creates an EnumField field with name and adds it to the container.

The names of the enum entries are defined by the string array enumerationItemNames. It MUST have at least numEnumerationItems entries. The value range for the enum value is [0, numEnumerationItems-1].

Field* ml::FieldContainer::addField ( Field field)

Adds a field, the ownership of the field is passed to the FieldContainer.

Field* ml::FieldContainer::addField ( const char *  name,
const char *  type,
const char *  value 
)

Adds a new field with name name, type type and value value (coded as string) to the container.

The field manages its memory itself, i.e., it copies the value from the string constant. The ownership of the returned field stays with the FieldContainer.

FloatField* ml::FieldContainer::addFloat ( const char *  name)

Creates a FloatField with name and adds it to the container. Default value is 0.f.

FloatField* ml::FieldContainer::addFloat ( const char *  name,
float  value 
)

Creates a FloatField with name and adds it to the container.

ImageVectorField* ml::FieldContainer::addImageVector ( const char *  name)

Creates a ImageVectorField with name and adds it to the container.

ImageVectorField* ml::FieldContainer::addImageVector ( const char *  name,
const ImageVector value 
)

Creates a ImageVectorField with name and adds it to the container.

ImageVectorField* ml::FieldContainer::addImageVector ( const char *  name,
MLint  x,
MLint  y,
MLint  z,
MLint  c,
MLint  t,
MLint  u 
)

Creates a ImageVectorField with name and adds it to the container.

virtual InputConnectorField* ml::FieldContainer::addInputConnector ( const char *  ,
Module ,
MLint   
) [inline, virtual]
Deprecated:
Use Module::addInputImage() instead.

Reimplemented in ml::Module.

Definition at line 343 of file mlFieldContainer.h.

InputConnectorField* ml::FieldContainer::addInputConnector ( Module module,
MLint  i 
)
IntField* ml::FieldContainer::addInt ( const char *  name)

Creates an IntField with name and adds it to the container. Default value is 0.

IntField* ml::FieldContainer::addInt ( const char *  name,
MLint  value 
)

Creates an IntField with name and adds it to the container.

LongDoubleField* ml::FieldContainer::addLongDouble ( const char *  name,
MLldouble  value 
)

Creates a LongDoubleField with name and adds it to the container.

LongDoubleField* ml::FieldContainer::addLongDouble ( const char *  name)

Creates a LongDoubleField with name and adds it to the container. Default value is 0.

Matrix2Field* ml::FieldContainer::addMat2 ( const char *  name) [inline]
Deprecated:
Use addMatrix2 instead.

Definition at line 402 of file mlFieldContainer.h.

Matrix3Field* ml::FieldContainer::addMat3 ( const char *  name) [inline]
Deprecated:
Use addMatrix3 instead.

Definition at line 405 of file mlFieldContainer.h.

Matrix4Field* ml::FieldContainer::addMat4 ( const char *  name) [inline]
Deprecated:
Use addMatrix4 instead.

Definition at line 408 of file mlFieldContainer.h.

Matrix5Field* ml::FieldContainer::addMat5 ( const char *  name) [inline]
Deprecated:
Use addMatrix5 instead.

Definition at line 411 of file mlFieldContainer.h.

Matrix6Field* ml::FieldContainer::addMat6 ( const char *  name) [inline]
Deprecated:
Use addMatrix6 instead.

Definition at line 414 of file mlFieldContainer.h.

MatrixField* ml::FieldContainer::addMatrix ( const char *  name)

Creates a MatrixField with name and adds it to the container.

MatrixField* ml::FieldContainer::addMatrix ( const char *  name,
const Matrix4 value 
)

Creates a MatrixField with name and adds it to the container.

Matrix2Field* ml::FieldContainer::addMatrix2 ( const char *  name,
const Matrix2 value 
)

Creates a Matrix2Field with name and adds it to the container.

Matrix2Field* ml::FieldContainer::addMatrix2 ( const char *  name)

Creates a Matrix2Field with name and adds it to the container.

Matrix3Field* ml::FieldContainer::addMatrix3 ( const char *  name,
const Matrix3 value 
)

Creates a Matrix3Field with name and adds it to the container.

Matrix3Field* ml::FieldContainer::addMatrix3 ( const char *  name)

Creates a Matrix3Field with name and adds it to the container.

Matrix4Field* ml::FieldContainer::addMatrix4 ( const char *  name)

Creates a Matrix4Field with name and adds it to the container.

Matrix4Field* ml::FieldContainer::addMatrix4 ( const char *  name,
const Matrix4 value 
)

Creates a Matrix4Field with name and adds it to the container.

Matrix5Field* ml::FieldContainer::addMatrix5 ( const char *  name)

Creates a Matrix5Field with name and adds it to the container.

Matrix5Field* ml::FieldContainer::addMatrix5 ( const char *  name,
const Matrix5 value 
)

Creates a Matrix5Field with name and adds it to the container.

Matrix6Field* ml::FieldContainer::addMatrix6 ( const char *  name,
const Matrix6 value 
)

Creates a Matrix6Field with name and adds it to the container.

Matrix6Field* ml::FieldContainer::addMatrix6 ( const char *  name)

Creates a Matrix6Field with name and adds it to the container.

MLDataTypeField* ml::FieldContainer::addMLDataType ( const char *  name)

Creates a MTDataTypeField with name and adds it to the container.

MLDataTypeField* ml::FieldContainer::addMLDataType ( const char *  name,
MLDataType  value 
)

Creates a MTDataTypeField with name and adds it to the container.

NotifyField* ml::FieldContainer::addNotify ( const char *  name)

Creates a NotifyField field with name and adds it to the container.

virtual OutputConnectorField* ml::FieldContainer::addOutputConnector ( const char *  ,
Module ,
MLint   
) [inline, virtual]
Deprecated:
Use Module::addOutputImage() instead.

Reimplemented in ml::Module.

Definition at line 347 of file mlFieldContainer.h.

OutputConnectorField* ml::FieldContainer::addOutputConnector ( Module module,
MLint  i 
)
PlaneField* ml::FieldContainer::addPlane ( const char *  name)

Creates a PlaneField with name and adds it to the container.

PlaneField* ml::FieldContainer::addPlane ( const char *  name,
double  f0,
double  f1,
double  f2,
double  f3 
)

Creates a PlaneField with name and adds it to the container.

PlaneField* ml::FieldContainer::addPlane ( const char *  name,
const Plane value 
)

Creates a PlaneField with name and adds it to the container.

PointerField* ml::FieldContainer::addPointer ( const char *  name)

Creates a PointerField with name and adds it to the container.

ProgressField* ml::FieldContainer::addProgress ( const char *  name)

Creates a float ProgressField with name and adds it to the container. Default value is 0.f.

ProgressField* ml::FieldContainer::addProgress ( const char *  name,
float  value 
)

Creates a float ProgressField with name and adds it to the container.

RotationField* ml::FieldContainer::addRotation ( const char *  name,
const Rotation value 
)

Creates a RotationField with name and adds it to the container.

RotationField* ml::FieldContainer::addRotation ( const char *  name)

Creates a RotationField with name and adds it to the container.

SoNodeField* ml::FieldContainer::addSoNode ( const char *  name)

Creates a SoNodeField with name and adds it to the container. Default value is NULL.

SoNodeField* ml::FieldContainer::addSoNode ( const char *  name,
SoNode *  value 
)

Creates a SoNodeField with name and adds it to the container.

StringField* ml::FieldContainer::addString ( const char *  name)

Creates a StringField with name and adds it to the container. Default value is empty string.

StringField* ml::FieldContainer::addString ( const char *  name,
const std::string &  value 
)

Creates a StringField with name and adds it to the container.

SubImageBoxField* ml::FieldContainer::addSubImageBox ( const char *  name,
const SubImageBox value 
)

Creates a SubImageBoxField with name and adds it to the container.

SubImageBoxField* ml::FieldContainer::addSubImageBox ( const char *  name)

Creates a SubImageBoxField with name and adds it to the container.

SubImageBoxdField* ml::FieldContainer::addSubImageBoxd ( const char *  name)

Creates a SubImageBoxd field with name and adds it to the container.

SubImageBoxdField* ml::FieldContainer::addSubImageBoxd ( const char *  name,
const SubImageBoxd value 
)

Creates a SubImageBoxd field with name and adds it to the container.

SubImageBoxField* ml::FieldContainer::addSubImgBox ( const char *  name) [inline]
Deprecated:
Use addSubImageBox instead.

Definition at line 394 of file mlFieldContainer.h.

SubImageBoxdField* ml::FieldContainer::addSubImgBoxf ( const char *  name) [inline]
Deprecated:
Use addSubImageBoxd instead.

Definition at line 398 of file mlFieldContainer.h.

UniversalTypeField* ml::FieldContainer::addUniversalType ( const char *  name)

Creates a UniversalTypeField field with name and adds it to the container.

Vector10Field* ml::FieldContainer::addVec10f ( const char *  name) [inline]
Deprecated:
Use addVector10 instead.

Definition at line 387 of file mlFieldContainer.h.

Vector2Field* ml::FieldContainer::addVec2f ( const char *  name) [inline]
Deprecated:
Use addVector2 instead.

Definition at line 368 of file mlFieldContainer.h.

Vector3Field* ml::FieldContainer::addVec3f ( const char *  name) [inline]
Deprecated:
Use addVector3 instead.

Definition at line 372 of file mlFieldContainer.h.

Vector4Field* ml::FieldContainer::addVec4f ( const char *  name) [inline]
Deprecated:
Use addVector4 instead.

Definition at line 376 of file mlFieldContainer.h.

Vector5Field* ml::FieldContainer::addVec5f ( const char *  name) [inline]
Deprecated:
Use addVector5 instead.

Definition at line 380 of file mlFieldContainer.h.

Vector6Field* ml::FieldContainer::addVec6f ( const char *  name) [inline]
Deprecated:
Use addVector6 instead.

Definition at line 383 of file mlFieldContainer.h.

ImageVectorField* ml::FieldContainer::addVector ( const char *  name) [inline]
Deprecated:
Use addImageVector instead.

Definition at line 390 of file mlFieldContainer.h.

Vector10Field* ml::FieldContainer::addVector10 ( const char *  name,
const Vector10 value 
)

Creates a Vector10Field with name and adds it to the container.

Vector10Field* ml::FieldContainer::addVector10 ( const char *  name)

Creates a Vector10Field with name and adds it to the container.

Vector2Field* ml::FieldContainer::addVector2 ( const char *  name,
double  x,
double  y 
)

Creates a Vector2Field with name and adds it to the container.

Vector2Field* ml::FieldContainer::addVector2 ( const char *  name)

Creates a Vector2Field with name and adds it to the container.

Vector2Field* ml::FieldContainer::addVector2 ( const char *  name,
const Vector2 value 
)

Creates a Vector2Field with name and adds it to the container.

Vector3Field* ml::FieldContainer::addVector3 ( const char *  name,
const Vector3 value 
)

Creates a Vector3Field with name and adds it to the container.

Vector3Field* ml::FieldContainer::addVector3 ( const char *  name)

Creates a Vector3Field with name and adds it to the container.

Vector3Field* ml::FieldContainer::addVector3 ( const char *  name,
double  x,
double  y,
double  z 
)

Creates a Vector3Field with name and adds it to the container.

Vector4Field* ml::FieldContainer::addVector4 ( const char *  name,
double  x,
double  y,
double  z,
double  w 
)

Creates a Vector4Field with name and adds it to the container.

Vector4Field* ml::FieldContainer::addVector4 ( const char *  name)

Creates a Vector4Field with name and adds it to the container.

Vector4Field* ml::FieldContainer::addVector4 ( const char *  name,
const Vector4 value 
)

Creates a Vector4Field with name and adds it to the container.

Vector5Field* ml::FieldContainer::addVector5 ( const char *  name)

Creates a Vector5Field with name and adds it to the container.

Vector5Field* ml::FieldContainer::addVector5 ( const char *  name,
const Vector5 value 
)

Creates a Vector5Field with name and adds it to the container.

Vector6Field* ml::FieldContainer::addVector6 ( const char *  name)

Creates a Vector6Field with name and adds it to the container.

Vector6Field* ml::FieldContainer::addVector6 ( const char *  name,
const Vector6 value 
)

Creates a Vector6Field with name and adds it to the container.

virtual void ml::FieldContainer::deactivateAttachments ( ) [inline, virtual]

Disables notification handling, i.e., all fields of this module will not send notifications to attached sensors and fields any more if their values are set or changed.

This normally indicates that a field restore process (due to a module load or clone) has been started and many field values will be set. During that process no field notifications are sent, i.e., handleNotification is not called. The process then is completed by the call of activateAttachments which can be used to update the internal module state to the new field state then. Note that the overloaded method has to be called; otherwise notification handling is not deactivated correctly. See activateAttachments().

Definition at line 312 of file mlFieldContainer.h.

Field* ml::FieldContainer::getField ( const std::string &  name) const

Returns the pointer to the field with name name.

A warning is printed if not found and NULL is returned.

Field* ml::FieldContainer::getField ( MLint  index) const

Returns pointer of field at index if it exists. If not, -1 is returned.

MLint ml::FieldContainer::getFieldIndex ( Field field) const

Returns index of field if it exists. If not, -1 is returned.

std::string ml::FieldContainer::getFieldStringValue ( const std::string &  name) const

Returns the string value of the field with name if it is found.

Otherwise a pointer to the empty temporary string "" is returned and a warning is printed.

size_t ml::FieldContainer::getNumFields ( ) const

Returns the number of added fields.

virtual void ml::FieldContainer::handleNotificationInternal ( Field ,
FieldSensor::Strength   
) [inline, protected, virtual]

Called when field has changed.

Reimplemented in ml::Module.

Definition at line 331 of file mlFieldContainer.h.

bool ml::FieldContainer::hasField ( const std::string &  name) const

Returns true if the field with name name exists; otherwise false is returned.

void ml::FieldContainer::setFieldStringValue ( const std::string &  name,
const std::string &  value 
)

Sets the value of the field with name if it exists.

Otherwise a warning is printed.


Friends And Related Function Documentation

friend class Field [friend]

Definition at line 328 of file mlFieldContainer.h.


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