Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoNormalElement Class Reference

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

#include <Inventor/elements/SoNormalElement.h>

+ Inheritance diagram for SoNormalElement:

Public Member Functions

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).
 
- Public Member Functions inherited from SoElement
virtual void push (SoState *state)
 Pushes element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
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 Public Member Functions inherited from SoReplacedElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

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

Definition at line 73 of file SoNormalElement.h.

Member Function Documentation

◆ get()

const SbVec3f & SoNormalElement::get ( int  index) const
inline

Returns the indexed normal from an element.

Definition at line 99 of file SoNormalElement.h.

◆ getClassStackIndex()

static int SoNormalElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoNormalElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getInstance()

static const SoNormalElement * SoNormalElement::getInstance ( SoState state)
inlinestatic

Returns the top (current) instance of the element in the state.

Definition at line 88 of file SoNormalElement.h.

◆ getNum()

int32_t SoNormalElement::getNum ( ) const
inline

Returns the number of normal vectors in an instance.

Definition at line 94 of file SoNormalElement.h.

◆ print()

virtual void SoNormalElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoReplacedElement.

◆ set()

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: