SoNormalElement Class Reference
[Elements]

Allows read-only access to the top element in the state. More...

#include <Inventor/elements/SoNormalElement.h>

Inheritance diagram for SoNormalElement:
SoReplacedElement SoElement SoTypedObject

List of all members.

Public Member Functions

int32_t getNum () const
const SbVec3fget (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 SoNormalElementgetInstance (SoState *state)

Detailed Description

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.

SEE ALSO

SoNormal, SoVertexProperty


Member Function Documentation

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.

static SoType SoNormalElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

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.


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

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/