Open Inventor Reference
SoNormalBindingElement Class Reference

Element that stores the current normal binding.

#include <Inventor/elements/SoNormalBindingElement.h>

Inheritance diagram for SoNormalBindingElement:
SoInt32Element SoElement

List of all members.

Public Types

enum  Binding {
  OVERALL = 2, PER_PART = 3, PER_PART_INDEXED = 4, PER_FACE = 5,
  PER_FACE_INDEXED = 6, PER_VERTEX = 7, PER_VERTEX_INDEXED = 8, DEFAULT = PER_VERTEX_INDEXED,
  NONE = OVERALL
}
 The (seemingly random) choice of values is for compatibility with Inventor 2.0 binary format files: More...

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

static void set (SoState *state, Binding binding)
 Sets the current normal binding in the state.
static void set (SoState *state, SoNode *, Binding binding)
static Binding get (SoState *state)
 Returns current normal binding from the state.
static Binding getDefault ()
 Returns the default normal binding.
static void initClass ()
 Initializes the SoNormalBindingElement class.

Protected Member Functions

virtual ~SoNormalBindingElement ()

Detailed Description

Definition at line 69 of file SoNormalBindingElement.h.


Member Enumeration Documentation

Enumerator:
OVERALL 

Whole object has same normal.

PER_PART 

One normal for each part of object.

PER_PART_INDEXED 

One normal for each part, indexed.

PER_FACE 

One normal for each face of object.

PER_FACE_INDEXED 

One normal for each face, indexed.

PER_VERTEX 

One normal for each vertex.

PER_VERTEX_INDEXED 

One normal for each vertex, indexed.

Comma to continue list

DEFAULT 
NONE 

Definition at line 76 of file SoNormalBindingElement.h.


Constructor & Destructor Documentation

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

Member Function Documentation

static Binding SoNormalBindingElement::get ( SoState state) [inline, static]

Definition at line 107 of file SoNormalBindingElement.h.

References SoInt32Element::get().

static Binding SoNormalBindingElement::getDefault ( ) [inline, static]

Definition at line 111 of file SoNormalBindingElement.h.

virtual void SoNormalBindingElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

static void SoNormalBindingElement::initClass ( ) [static]

Reimplemented from SoInt32Element.

virtual void SoNormalBindingElement::print ( FILE *  fp) const [virtual]

Reimplemented from SoInt32Element.

static void SoNormalBindingElement::set ( SoState state,
SoNode ,
Binding  binding 
) [inline, static]

Definition at line 102 of file SoNormalBindingElement.h.

static void SoNormalBindingElement::set ( SoState state,
Binding  binding 
) [inline, static]

Definition at line 98 of file SoNormalBindingElement.h.

References SoInt32Element::set().


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