Field containing a two-dimensional box. More...
#include <Inventor/fields/SoSFBox2f.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFBox2f & | operator= (const SoSFBox2f &f) |
SoSFBox2f () | |
virtual | ~SoSFBox2f () |
const SbBox2f & | getValue () const |
void | setValue (const SbBox2f &newValue) |
const SbBox2f & | operator= (const SbBox2f &newValue) |
int | operator== (const SoSFBox2f &f) const |
int | operator!= (const SoSFBox2f &f) const |
virtual size_t | getValueSize () const |
void | setValue (float xmin, float ymin, float xmax, float ymax) |
void | setValue (const SbVec2f &min, const SbVec2f &max) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
This field defines a two-dimensional box.
SoSFBox2f fields are written to file as 4 floats separated by whitespace.
SoSFBox2f::SoSFBox2f | ( | ) |
Default constructor.
virtual SoSFBox2f::~SoSFBox2f | ( | ) | [virtual] |
Destructor.
static SoType SoSFBox2f::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFBox2f::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbBox2f& SoSFBox2f::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFBox2f::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFBox2f::operator!= | ( | const SoSFBox2f & | 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 SoSFBox2f::operator== | ( | const SoSFBox2f & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFBox2f::setValue | ( | float | xmin, | |
float | ymin, | |||
float | xmax, | |||
float | ymax | |||
) |
Sets the box dimensions.
void SoSFBox2f::setValue | ( | const SbBox2f & | newValue | ) |
Sets this field to newValue.