MFFloat Class Reference

#include <MFFloat.h>

Inheritance diagram for MFFloat:

MFieldValue FieldValue MFColor MFRotation MFVec2f MFVec3f List of all members.

Public Member Functions

 MFFloat (int stride=1)
 MFFloat (const float values[], int len, int stride=1)
 MFFloat (const MFFloat &value)
virtual ~MFFloat ()
virtual int getType () const
virtual int getStride () const
virtual const char * getTypeName () const
virtual void write (FILE *f, int indent) const
virtual bool equals (const FieldValue *value) const
virtual void clamp (float min, float max)
virtual FieldValuecopy ()
virtual int getSFSize () const
virtual FieldValuegetSFValue (int index) const
virtual void setSFValue (int index, FieldValue *value)
const float * getValue () const
float getValue (int i) const
int getSize () const
void setValue (int index, float value)

Protected Member Functions

bool equals (const MFFloat *value) const

Protected Attributes

Array< float > _value

Detailed Description

According to MFFloat type of VRML97


Constructor & Destructor Documentation

MFFloat::MFFloat ( int  stride = 1  ) 

MFFloat::MFFloat ( const float  values[],
int  len,
int  stride = 1 
)

MFFloat::MFFloat ( const MFFloat value  ) 

virtual MFFloat::~MFFloat (  )  [inline, virtual]


Member Function Documentation

virtual int MFFloat::getType (  )  const [inline, virtual]

Implements FieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

virtual int MFFloat::getStride (  )  const [inline, virtual]

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

virtual const char* MFFloat::getTypeName (  )  const [inline, virtual]

Implements FieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

void MFFloat::write ( FILE *  f,
int  indent 
) const [virtual]

Implements FieldValue.

bool MFFloat::equals ( const FieldValue value  )  const [virtual]

Implements FieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

void MFFloat::clamp ( float  min,
float  max 
) [virtual]

Reimplemented from FieldValue.

virtual FieldValue* MFFloat::copy (  )  [inline, virtual]

Implements FieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

virtual int MFFloat::getSFSize (  )  const [inline, virtual]

Implements MFieldValue.

virtual FieldValue* MFFloat::getSFValue ( int  index  )  const [inline, virtual]

Implements MFieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

void MFFloat::setSFValue ( int  index,
FieldValue value 
) [virtual]

Implements MFieldValue.

Reimplemented in MFColor, MFRotation, MFVec2f, and MFVec3f.

const float* MFFloat::getValue (  )  const [inline]

float MFFloat::getValue ( int  i  )  const [inline]

Reimplemented in MFColor, MFRotation, and MFVec3f.

int MFFloat::getSize (  )  const [inline]

void MFFloat::setValue ( int  index,
float  value 
) [inline]

bool MFFloat::equals ( const MFFloat value  )  const [protected]


Member Data Documentation

Array<float> MFFloat::_value [protected]


Generated on Thu Jan 18 10:06:18 2007 for vhdPLUS by  doxygen 1.5.1-p1