29 #ifndef __COORDINATE_H__
30 #define __COORDINATE_H__
54 Inst< MFVec3f > _point = 0);
62 const Vec3f &v = point->getValueByIndex( index );
63 glVertex3f( v.x, v.y, v.z );
68 virtual void renderArray();
71 virtual void disableArray();
74 virtual Vec3f getCoord(
int index ){
75 return point->getValueByIndex( index );
84 virtual void setAttributeData ( );
87 virtual void renderVBO ( );
90 virtual void disableVBO ( );
93 virtual bool preRenderCheckFail ( );
Contains different templates to modify field behaviour.
Contains the MFVec3f field class.
Contains the SFBool field class.
Header file for X3DCoordinateNode, X3D scene-graph node.
This node defines a set of 3D coordinates to be used in the coord field of vertex-based geometry node...
Definition: Coordinate.h:50
virtual void render(int index)
Perform the OpenGL commands to render a vertex given the index of the vertex.
Definition: Coordinate.h:61
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Coordinate.h:102
H3DUniquePtr< MFVec3f > point
A vector of Vec3f defining points in 3d-space.
Definition: Coordinate.h:99
virtual unsigned int nrAvailableCoords()
Returns the number of coordinates this coordinate node can render.
Definition: Coordinate.h:79
This is the base node type for all coordinate node types in X3D.
Definition: X3DCoordinateNode.h:47
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