61 Normal( Inst< SFNode > _metadata = 0,
62 Inst< MFVec3f> _vector = 0 );
69 return vector->getValueByIndex( index );
75 const Vec3f &v = vector->getValueByIndex( index );
76 glNormal3f( v.x, v.y, v.z );
81 virtual void renderArray();
84 virtual void disableArray();
87 virtual void setAttributeData ( );
90 virtual void renderVBO ( );
93 virtual void disableVBO ( );
96 virtual bool preRenderCheckFail ( );
100 return vector->size();
Contains different templates to modify field behaviour.
Contains the MFVec3f field class.
Contains the SFBool field class.
Header file for X3DNormalNode, X3D scene-graph node.
This node defines a set of 3D surface normal vectors to be used in the vector field of some geometry ...
Definition: Normal.h:57
virtual unsigned int nrAvailableNormals()
Returns the number of normals this normal node can render.
Definition: Normal.h:99
H3DUniquePtr< MFVec3f > vector
A vector of 3D normal vectors.
Definition: Normal.h:108
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Normal.h:111
virtual void render(int index)
Perform the OpenGL commands to render a normal given the index of the normal.
Definition: Normal.h:74
virtual Vec3f getNormal(int index)
Gets the normal of a given index.
Definition: Normal.h:68
This is the base node type for all normal node types in X3D.
Definition: X3DNormalNode.h:45
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194