Open Inventor Reference
SoNormalElement Class Reference

Element that stores the current surface normals. More...

#include <Inventor/elements/SoNormalElement.h>

Inheritance diagram for SoNormalElement:
SoReplacedElement SoElement SoGLNormalElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
int32_t getNum () const
 Returns the number of normal vectors in an instance.
const SbVec3fget (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 SoNormalElementgetInstance (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 SbVec3fnormals

Detailed Description

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.


Constructor & Destructor Documentation

virtual SoNormalElement::~SoNormalElement ( ) [protected, virtual]

Member Function Documentation

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]

Member Data Documentation

const SbVec3f* SoNormalElement::normals [protected]

Definition at line 118 of file SoNormalElement.h.

Definition at line 117 of file SoNormalElement.h.


The documentation for this class was generated from the following file: