Open Inventor Reference
SoNormal Class Reference

Node that defines surface normals for shapes. More...

#include <Inventor/nodes/SoNormal.h>

Inheritance diagram for SoNormal:
SoNode SoFieldContainer SoBase

List of all members.

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

Detailed Description

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.

File Format/Default
Normal {
  vector [  ]
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoRayPickAction
Sets the current normals in the traversal state.
See Also
SoCoordinate3, SoLightModel, SoNormalBinding, SoVertexShape

Definition at line 100 of file SoNormal.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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.


Member Data Documentation

SoVBO* SoNormal::_vbo [protected]

Definition at line 128 of file SoNormal.h.

Definition at line 109 of file SoNormal.h.


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