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