29 #ifndef __COORDINATEDOUBLE_H__
30 #define __COORDINATEDOUBLE_H__
56 Inst< MFVec3d > _point = 0);
64 const Vec3d &v = point->getValueByIndex( index );
65 glVertex3d( v.x, v.y, v.z );
70 virtual void renderArray();
73 virtual void disableArray();
76 virtual Vec3f getCoord(
int index ){
77 return Vec3f( point->getValueByIndex( index ) );
86 virtual void setAttributeData ( );
89 virtual void renderVBO ( );
92 virtual void disableVBO ( );
95 virtual bool preRenderCheckFail ( );
Contains different templates to modify field behaviour.
Contains the MFVec3d 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: CoordinateDouble.h:52
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: CoordinateDouble.h:104
virtual unsigned int nrAvailableCoords()
Returns the number of coordinates this coordinate node can render.
Definition: CoordinateDouble.h:81
H3DUniquePtr< MFVec3d > point
A vector of Vec3d defining points in 3d-space.
Definition: CoordinateDouble.h:101
virtual void render(int index)
Perform the OpenGL commands to render a vertex given the index of the vertex.
Definition: CoordinateDouble.h:63
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