29 #ifndef __TRIANGLEFANSET_H__
30 #define __TRIANGLEFANSET_H__
100 Types< SFBool, SFCoordinateNode, MFInt32, SFBool > > {
103 virtual void update();
123 const vector< int > &index,
145 const vector< int > &index,
152 Inst< SFBound > _bound = 0,
153 Inst< DisplayList > _displayList = 0,
154 Inst< SFColorNode > _color = 0,
155 Inst< SFCoordinateNode > _coord = 0,
156 Inst< SFNormalNode > _normal = 0,
157 Inst< SFTextureCoordinateNode > _texCoord = 0,
158 Inst< SFBool > _ccw = 0,
159 Inst< SFBool > _colorPerVertex = 0,
160 Inst< SFBool > _normalPerVertex = 0,
161 Inst< SFBool > _solid = 0,
162 Inst< MFVertexAttributeNode > _attrib = 0,
163 Inst< AutoNormal > _autoNormal = 0,
164 Inst< MFInt32 > _fanCount = 0,
165 Inst< SFFogCoordinate > _fogCoord =0);
172 virtual void render();
Header file for CoordBoundField, specialiced field class.
Contains the DependentSFNode and DependentMFNode template classes.
Contains the MFInt32 field class.
Header file for X3DColorNode, X3D scene-graph node.
Header file for X3DComposedGeometryNode, X3D scene-graph node.
Header file for X3DCoordinateNode, X3D scene-graph node.
The CoordBoundField is specialized update itself from a X3DCoordinateNode.
Definition: CoordBoundField.h:43
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
Specialized field for automatically generating normals from coordinates.
Definition: TriangleFanSet.h:100
Thrown when fanCount value is < 3.
Definition: TriangleFanSet.h:86
Thrown if the number of colors in the color field is less than the number coordinates in the coord fi...
Definition: TriangleFanSet.h:79
Thrown if the number of texture coordinates in the color field is less than the number coordinates in...
Definition: TriangleFanSet.h:83
A TriangleFanSet represents a 3D shape composed of triangles that form a fan shape around the first v...
Definition: TriangleFanSet.h:74
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TriangleFanSet.h:200
H3DUniquePtr< AutoNormal > autoNormal
Auto-generated normals that are used if the normal field is NULL.
Definition: TriangleFanSet.h:186
H3DUniquePtr< MFInt32 > fanCount
The fanCount field describes how many vertices are to be used in each fan from the coordinate field.
Definition: TriangleFanSet.h:197
CoordBoundField SFBound
The bound field for TriangleFanSet is a CoordBoundField.
Definition: TriangleFanSet.h:89
virtual int nrTriangles()
An upper bound of the number of triangles renderered in this geometry.
Definition: TriangleFanSet.h:175
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
This is the base node type for all composed 3D geometry in X3D.
Definition: X3DComposedGeometryNode.h:93
This is the base node type for all coordinate node types in X3D.
Definition: X3DCoordinateNode.h:47
virtual unsigned int nrAvailableCoords()=0
Returns the number of coordinates this coordinate node can render.
This is the base node type for all normal node types in X3D.
Definition: X3DNormalNode.h:45
H3D_VALUE_EXCEPTION(string, InvalidType)
An exception thrown when a field is of the wrong type when it is checked.
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