Open Inventor Reference
|
Element that stores the current normal binding.
#include <Inventor/elements/SoNormalBindingElement.h>
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 () |
Definition at line 69 of file SoNormalBindingElement.h.
Definition at line 76 of file SoNormalBindingElement.h.
virtual SoNormalBindingElement::~SoNormalBindingElement | ( | ) | [protected, virtual] |
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.
Definition at line 98 of file SoNormalBindingElement.h.
References SoInt32Element::set().