Field containing a three-dimensional vector. More...
#include <Inventor/fields/SoSFVec3f.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFVec3f & | operator= (const SoSFVec3f &f) |
SoSFVec3f () | |
virtual | ~SoSFVec3f () |
const SbVec3f & | getValue () const |
void | setValue (const SbVec3f &newValue) |
const SbVec3f & | operator= (const SbVec3f &newValue) |
int | operator== (const SoSFVec3f &f) const |
int | operator!= (const SoSFVec3f &f) const |
virtual size_t | getValueSize () const |
void | setValue (float x, float y, float z) |
void | setValue (const float xyz[3]) |
void | setValue (const SbVec3d &vec3d) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing a three-dimensional vector.
Field containing a three-dimensional vector.
SoSFVec3fs are written to file as three floating point values separated by whitespace.
SoSFVec3f::SoSFVec3f | ( | ) |
Default constructor.
virtual SoSFVec3f::~SoSFVec3f | ( | ) | [virtual] |
Destructor.
static SoType SoSFVec3f::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFVec3f::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbVec3f& SoSFVec3f::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFVec3f::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFVec3f::operator!= | ( | const SoSFVec3f & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
Sets this field to newValue.
int SoSFVec3f::operator== | ( | const SoSFVec3f & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFVec3f::setValue | ( | const SbVec3d & | vec3d | ) |
Convenience method that allows you to specify a field value using a double precision variable.
Note that Open Inventor fields still store only single precision values, not double precision values. The specified value is converted to single precision, then stored.
void SoSFVec3f::setValue | ( | const float | xyz[3] | ) |
Sets the field to the given value.
void SoSFVec3f::setValue | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Sets the field to the given value.
void SoSFVec3f::setValue | ( | const SbVec3f & | newValue | ) |
Sets this field to newValue.