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