Open Inventor Reference
|
Element that stores the current surface normals. More...
#include <Inventor/elements/SoNormalElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
int32_t | getNum () const |
Returns the number of normal vectors in an instance. | |
const SbVec3f & | get (int index) const |
Returns the indexed normal from an element. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging) | |
Static Public Member Functions | |
static void | set (SoState *state, SoNode *node, int32_t numNormals, const SbVec3f *normals) |
Sets the current normals. | |
static const SoNormalElement * | getInstance (SoState *state) |
Returns the top (current) instance of the element in the state. | |
static void | initClass () |
Initializes the SoNormalElement class. | |
Protected Member Functions | |
virtual | ~SoNormalElement () |
Protected Attributes | |
int32_t | numNormals |
const SbVec3f * | normals |
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 77 of file SoNormalElement.h.
virtual SoNormalElement::~SoNormalElement | ( | ) | [protected, virtual] |
const SbVec3f& SoNormalElement::get | ( | int | index | ) | const [inline] |
Definition at line 98 of file SoNormalElement.h.
References SoDebugError::post().
static const SoNormalElement* SoNormalElement::getInstance | ( | SoState * | state | ) | [inline, static] |
Definition at line 90 of file SoNormalElement.h.
References SoElement::getConstElement().
int32_t SoNormalElement::getNum | ( | ) | const [inline] |
Definition at line 95 of file SoNormalElement.h.
virtual void SoNormalElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoReplacedElement.
Reimplemented in SoGLNormalElement.
static void SoNormalElement::initClass | ( | ) | [static] |
Reimplemented from SoReplacedElement.
Reimplemented in SoGLNormalElement.
virtual void SoNormalElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoReplacedElement.
static void SoNormalElement::set | ( | SoState * | state, |
SoNode * | node, | ||
int32_t | numNormals, | ||
const SbVec3f * | normals | ||
) | [static] |
const SbVec3f* SoNormalElement::normals [protected] |
Definition at line 118 of file SoNormalElement.h.
int32_t SoNormalElement::numNormals [protected] |
Definition at line 117 of file SoNormalElement.h.