Open Inventor Reference
|
Element storing the current profile coordinates, as either 2-D or 3-D points. More...
#include <Inventor/elements/SoProfileCoordinateElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
int32_t | getNum () const |
Returns the number of coordinate points in an instance. | |
const SbVec2f & | get2 (int index) const |
Returns the indexed coordinate from an element as a 2- or 3-vector, converting if necessary. | |
const SbVec3f & | get3 (int index) const |
SbBool | is2D () const |
TRUE if set2() was called. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging) | |
Static Public Member Functions | |
static void | set2 (SoState *state, SoNode *node, int32_t numCoords, const SbVec2f *coords) |
Sets the current profile coordinates. | |
static void | set3 (SoState *state, SoNode *node, int32_t numCoords, const SbVec3f *coords) |
static const SoProfileCoordinateElement * | getInstance (SoState *state) |
Returns the top (current) instance of the element in the state. | |
static SbVec2f | getDefault2 () |
Returns the default profile coordinate. | |
static SbVec3f | getDefault3 () |
static void | initClass () |
Initializes the SoCoordinateElement class. | |
Protected Member Functions | |
virtual | ~SoProfileCoordinateElement () |
Protected Attributes | |
int32_t | numCoords |
const SbVec2f * | coords2 |
const SbVec3f * | coords3 |
SbBool | coordsAre2D |
This class allows read-only access to the top element in the state to make accessing several values in it more efficient. Individual values must be accessed through this instance.
Definition at line 75 of file SoProfileCoordinateElement.h.
virtual SoProfileCoordinateElement::~SoProfileCoordinateElement | ( | ) | [protected, virtual] |
const SbVec2f& SoProfileCoordinateElement::get2 | ( | int | index | ) | const |
const SbVec3f& SoProfileCoordinateElement::get3 | ( | int | index | ) | const |
static SbVec2f SoProfileCoordinateElement::getDefault2 | ( | ) | [inline, static] |
Definition at line 104 of file SoProfileCoordinateElement.h.
static SbVec3f SoProfileCoordinateElement::getDefault3 | ( | ) | [inline, static] |
Definition at line 105 of file SoProfileCoordinateElement.h.
static const SoProfileCoordinateElement* SoProfileCoordinateElement::getInstance | ( | SoState * | state | ) | [static] |
int32_t SoProfileCoordinateElement::getNum | ( | ) | const [inline] |
Definition at line 93 of file SoProfileCoordinateElement.h.
virtual void SoProfileCoordinateElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoReplacedElement.
static void SoProfileCoordinateElement::initClass | ( | ) | [static] |
Reimplemented from SoReplacedElement.
SbBool SoProfileCoordinateElement::is2D | ( | ) | const [inline] |
Definition at line 101 of file SoProfileCoordinateElement.h.
virtual void SoProfileCoordinateElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoReplacedElement.
static void SoProfileCoordinateElement::set2 | ( | SoState * | state, |
SoNode * | node, | ||
int32_t | numCoords, | ||
const SbVec2f * | coords | ||
) | [static] |
static void SoProfileCoordinateElement::set3 | ( | SoState * | state, |
SoNode * | node, | ||
int32_t | numCoords, | ||
const SbVec3f * | coords | ||
) | [static] |
const SbVec2f* SoProfileCoordinateElement::coords2 [protected] |
Definition at line 115 of file SoProfileCoordinateElement.h.
const SbVec3f* SoProfileCoordinateElement::coords3 [protected] |
Definition at line 116 of file SoProfileCoordinateElement.h.
SbBool SoProfileCoordinateElement::coordsAre2D [protected] |
Definition at line 117 of file SoProfileCoordinateElement.h.
int32_t SoProfileCoordinateElement::numCoords [protected] |
Definition at line 114 of file SoProfileCoordinateElement.h.