Open Inventor Reference
|
Node that defines surface normals for shapes. More...
#include <Inventor/nodes/SoNormal.h>
Public Member Functions | |
SoNormal () | |
Creates a surface normal 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 | |
SoMFVec3f | vector |
Surface normal vectors. | |
Protected Member Functions | |
virtual | ~SoNormal () |
Protected Attributes | |
SoVBO * | _vbo |
This node defines a set of 3D surface normal vectors to be used by vertex-based shape nodes that follow it in the scene graph. This node does not produce a visible result during rendering; it simply replaces the current normals in the rendering state for subsequent nodes to use. This node contains one multiple-valued field that contains the normal vectors.
Surface normals are needed to compute lighting when the Phong lighting model is used. Most vertex-based shapes that use normals can compute default normals if none are specified, depending on the current normal binding.
Normal { vector [ ] }
Definition at line 100 of file SoNormal.h.
SoNormal::SoNormal | ( | ) |
virtual SoNormal::~SoNormal | ( | ) | [protected, virtual] |
virtual void SoNormal::callback | ( | SoCallbackAction * | action | ) | [virtual] |
Reimplemented from SoNode.
virtual void SoNormal::doAction | ( | SoAction * | action | ) | [virtual] |
The default implementation does nothing.
Reimplemented from SoNode.
virtual void SoNormal::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Reimplemented from SoNode.
static void SoNormal::initClass | ( | ) | [static] |
Reimplemented from SoNode.
virtual void SoNormal::pick | ( | SoPickAction * | action | ) | [virtual] |
Reimplemented from SoNode.
SoVBO* SoNormal::_vbo [protected] |
Definition at line 128 of file SoNormal.h.
Definition at line 109 of file SoNormal.h.