Field containing a two-dimensional vector. More...
#include <Inventor/fields/SoSFVec2s.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFVec2s & | operator= (const SoSFVec2s &f) |
SoSFVec2s () | |
virtual | ~SoSFVec2s () |
const SbVec2s & | getValue () const |
void | setValue (const SbVec2s &newValue) |
const SbVec2s & | operator= (const SbVec2s &newValue) |
int | operator== (const SoSFVec2s &f) const |
int | operator!= (const SoSFVec2s &f) const |
virtual size_t | getValueSize () const |
void | setValue (short x, short y) |
void | setValue (const short xy[2]) |
void | setValue (const SbVec2f &vec2f) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing a two-dimensional vector.
SoSFVec2ss are written to file as a pair of short values separated by whitespace.
SoSFVec2s::SoSFVec2s | ( | ) |
Default constructor.
virtual SoSFVec2s::~SoSFVec2s | ( | ) | [virtual] |
Destructor.
static SoType SoSFVec2s::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFVec2s::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbVec2s& SoSFVec2s::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFVec2s::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFVec2s::operator!= | ( | const SoSFVec2s & | 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 SoSFVec2s::operator== | ( | const SoSFVec2s & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFVec2s::setValue | ( | const SbVec2f & | vec2f | ) |
Convenience method that allows you to specify a field value using a float variable.
The specified value is converted short precision, then stored.
void SoSFVec2s::setValue | ( | const short | xy[2] | ) |
Sets the field to the given value.
void SoSFVec2s::setValue | ( | short | x, | |
short | y | |||
) |
Sets the field to the given value.
void SoSFVec2s::setValue | ( | const SbVec2s & | newValue | ) |
Sets this field to newValue.