Open Inventor Reference
|
Node that specifies how multiple surface normals are bound to shapes. More...
#include <Inventor/nodes/SoNormalBinding.h>
Public Types | |
enum | Binding { OVERALL = SoNormalBindingElement::OVERALL, PER_PART = SoNormalBindingElement::PER_PART, PER_PART_INDEXED = SoNormalBindingElement::PER_PART_INDEXED, PER_FACE = SoNormalBindingElement::PER_FACE, PER_FACE_INDEXED = SoNormalBindingElement::PER_FACE_INDEXED, PER_VERTEX = SoNormalBindingElement::PER_VERTEX, PER_VERTEX_INDEXED = SoNormalBindingElement::PER_VERTEX_INDEXED, DEFAULT = PER_VERTEX_INDEXED, NONE = PER_VERTEX_INDEXED } |
Public Member Functions | |
SoNormalBinding () | |
Creates a normal binding node with default settings. | |
virtual void | doAction (SoAction *action) |
This method performs the "typical" operation of a node for any action. | |
virtual void | GLRender (SoGLRenderAction *action) |
These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing. | |
virtual void | callback (SoCallbackAction *action) |
virtual void | pick (SoPickAction *action) |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Public Attributes | |
Fields | |
SoSFEnum | value |
Specifies how to bind normals to shapes. | |
Protected Member Functions | |
virtual | ~SoNormalBinding () |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
Reads stuff into instance. Upgrades old bindings. |
This node specifies how the current normals are bound to shapes that follow in the scene graph. Each shape node may interpret bindings differently.
The bindings for faces and vertices are meaningful only for shapes that are made from faces and vertices. Similarly, the indexed bindings are only used by the shapes that allow indexing. For bindings that require multiple normals, be sure to have at least as many normals defined as are necessary; otherwise, errors will occur.
NormalBinding { value PER_VERTEX_INDEXED }
Definition at line 98 of file SoNormalBinding.h.
Definition at line 103 of file SoNormalBinding.h.
SoNormalBinding::SoNormalBinding | ( | ) |
virtual SoNormalBinding::~SoNormalBinding | ( | ) | [protected, virtual] |
virtual void SoNormalBinding::callback | ( | SoCallbackAction * | action | ) | [virtual] |
Reimplemented from SoNode.
virtual void SoNormalBinding::doAction | ( | SoAction * | action | ) | [virtual] |
The default implementation does nothing.
Reimplemented from SoNode.
virtual void SoNormalBinding::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Reimplemented from SoNode.
static void SoNormalBinding::initClass | ( | ) | [static] |
Reimplemented from SoNode.
virtual void SoNormalBinding::pick | ( | SoPickAction * | action | ) | [virtual] |
Reimplemented from SoNode.
virtual SbBool SoNormalBinding::readInstance | ( | SoInput * | in, |
unsigned short | flags | ||
) | [protected, virtual] |
Reimplemented from SoFieldContainer.
Definition at line 130 of file SoNormalBinding.h.