Allows read-only access to the top element in the state. More...
#include <Inventor/elements/SoTangentElement.h>
Public Member Functions | |
int32_t | getNum () const |
const SbVec3f & | get (int index) const |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, SoNode *node, int32_t numTangents, const SbVec3f *tangents) |
static const SoTangentElement * | getInstance (SoState *state) |
Allows read-only access to the top element in the state.
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.
SoTangent, SoVertexProperty
const SbVec3f& SoTangentElement::get | ( | int | index | ) | const [inline] |
Returns the indexed tangent from an element.
static int SoTangentElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
static SoType SoTangentElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
static const SoTangentElement* SoTangentElement::getInstance | ( | SoState * | state | ) | [inline, static] |
Returns the top (current) instance of the element in the state.
int32_t SoTangentElement::getNum | ( | ) | const [inline] |
Returns the number of tangent vectors in an instance.
virtual void SoTangentElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
static void SoTangentElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
int32_t | numTangents, | |||
const SbVec3f * | tangents | |||
) | [static] |
Sets the current tangents.