Open Inventor Reference
|
Element that stores the current material binding.
#include <Inventor/elements/SoMaterialBindingElement.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 = OVERALL, 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 material binding in the state. | |
static void | set (SoState *state, SoNode *, Binding binding) |
static Binding | get (SoState *state) |
Returns current material binding from the state. | |
static Binding | getDefault () |
Returns the default material binding. | |
static void | initClass () |
Initializes the SoMaterialBindingElement class. | |
Protected Member Functions | |
virtual | ~SoMaterialBindingElement () |
Definition at line 69 of file SoMaterialBindingElement.h.
Definition at line 76 of file SoMaterialBindingElement.h.
virtual SoMaterialBindingElement::~SoMaterialBindingElement | ( | ) | [protected, virtual] |
Definition at line 107 of file SoMaterialBindingElement.h.
References SoInt32Element::get().
static Binding SoMaterialBindingElement::getDefault | ( | ) | [inline, static] |
Definition at line 111 of file SoMaterialBindingElement.h.
virtual void SoMaterialBindingElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoElement.
static void SoMaterialBindingElement::initClass | ( | ) | [static] |
Reimplemented from SoInt32Element.
virtual void SoMaterialBindingElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoInt32Element.
static void SoMaterialBindingElement::set | ( | SoState * | state, |
SoNode * | , | ||
Binding | binding | ||
) | [inline, static] |
Definition at line 102 of file SoMaterialBindingElement.h.
Definition at line 98 of file SoMaterialBindingElement.h.
References SoInt32Element::set().