29 #ifndef __INDEXEDLINESET_H__
30 #define __INDEXEDLINESET_H__
149 X3DVertexAttributeNode,
150 FieldRef< X3DGeometricPropertyNode,
152 &X3DVertexAttributeNode::propertyChanged > > {
162 virtual void callList(
bool build_list =
true );
167 Inst< CoordBoundField > _bound = 0,
168 Inst< DisplayList > _displayList = 0,
169 Inst< MFInt32 > _set_colorIndex = 0,
170 Inst< MFInt32 > _set_coordIndex = 0,
171 Inst< SFColorNode > _color = 0,
172 Inst< SFCoordinateNode > _coord = 0,
173 Inst< MFInt32 > _colorIndex = 0,
174 Inst< SFBool > _colorPerVertex = 0,
175 Inst< MFInt32 > _coordIndex = 0,
176 Inst< SFFogCoordinate > _fogCoord = 0,
177 Inst< MFVertexAttributeNode > _attrib = 0 );
183 unsigned int size = coordIndex->size();
184 if( size > 1 )
return size - 1;
189 virtual void render();
198 virtual bool movingSphereIntersect(
H3DFloat radius,
201 NodeIntersectResult &result );
231 H3DUniquePtr< SFCoordinateNode >
coord;
277 H3DUniquePtr< MFVertexAttributeNode >
attrib;
287 vector< pair< GLsizei, pair< GLsizei, GLsizei > > > nr_index;
Header file for CoordBoundField, specialiced field class.
Contains the DependentSFNode and DependentMFNode template classes.
Header file for FogCoordinate.
Contains the MFInt32 field class.
Header file for X3DColorNode, X3D scene-graph node.
Header file for X3DCoordinateNode, X3D scene-graph node.
Header file for X3DGeometryNode, X3D scene-graph node.
DependentMFNode are modified TypedMFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:336
DependentSFNode are modified TypedSFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:294
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
The Field class.
Definition: Field.h:46
This node defines a set of explicit fog depths on a per-vertex basis.
Definition: FogCoordinate.h:65
Display list is extended in order to set color to emissive color from material outside of display lis...
Definition: IndexedLineSet.h:159
Thrown when the colorIndex field's size does not match the coordIndex field properly.
Definition: IndexedLineSet.h:119
Thrown when the colorIndex field does not match the coordIndex field properly.
Definition: IndexedLineSet.h:115
The MFVertexAttributeNode is dependent on the propertyChanged field of the contained X3DVertexAttribu...
Definition: IndexedLineSet.h:152
The IndexedLineSet node represents a 3D geometry formed by constructing polylines from 3D vertices sp...
Definition: IndexedLineSet.h:111
H3DUniquePtr< MFInt32 > colorIndex
Indices into the color field.
Definition: IndexedLineSet.h:241
static H3DNodeDatabase database
The H3DNodeDatabase instance for this node.
Definition: IndexedLineSet.h:280
H3DUniquePtr< MFInt32 > coordIndex
Indices into the coord field.
Definition: IndexedLineSet.h:260
H3DUniquePtr< Field > vboFieldsUpToDate
Internal field used to know if vertex buffer object can be created.
Definition: IndexedLineSet.h:284
H3DUniquePtr< SFBool > colorPerVertex
If TRUE the colors in the color field are applied per vertex, otherwise it is applied per polyline.
Definition: IndexedLineSet.h:250
virtual int nrLines()
The number of lines rendered by this geometry.
Definition: IndexedLineSet.h:182
H3DUniquePtr< SFColorNode > color
Contains an X3DColorNode which colors are applied to the X3DComposedGeometryNode.
Definition: IndexedLineSet.h:224
H3DUniquePtr< MFInt32 > set_coordIndex
Field for setting the value of the coordIndex field.
Definition: IndexedLineSet.h:213
H3DUniquePtr< MFVertexAttributeNode > attrib
If the attrib field is not empty it shall contain a list of X3DVertexAttributeNode instances with per...
Definition: IndexedLineSet.h:277
DependentSFNode< X3DCoordinateNode, FieldRef< X3DGeometricPropertyNode, Field, &X3DCoordinateNode::propertyChanged > > SFCoordinateNode
SFCoordinateNode is dependent on coordChanged field in X3DCoordinateNode.
Definition: IndexedLineSet.h:127
H3DUniquePtr< MFInt32 > set_colorIndex
Field for setting the value of the colorIndex field.
Definition: IndexedLineSet.h:207
DependentSFNode< FogCoordinate, FieldRef< X3DGeometricPropertyNode, Field, &FogCoordinate::propertyChanged > > SFFogCoordinate
The SFFogCoordinate is dependent on the propertyChanged field of the contained FogCoordinate.
Definition: IndexedLineSet.h:144
H3DUniquePtr< SFCoordinateNode > coord
The coord field specifies the 3D vertices of the line set and contains a X3DCoordinateNode.
Definition: IndexedLineSet.h:231
H3DUniquePtr< SFFogCoordinate > fogCoord
If the fogCoord field is not empty, it shall contain a list of per-vertex depth values for calculatin...
Definition: IndexedLineSet.h:268
DependentSFNode< X3DColorNode, FieldRef< X3DGeometricPropertyNode, Field, &X3DColorNode::propertyChanged > > SFColorNode
SFColorNode is dependent on colorChanged field in X3DColorNode.
Definition: IndexedLineSet.h:135
This is the base node type for color specifications in X3D.
Definition: X3DColorNode.h:44
This is the base node type for all coordinate node types in X3D.
Definition: X3DCoordinateNode.h:47
This is the base node type for all geometric property node types defined in X3D.
Definition: X3DGeometricPropertyNode.h:43
H3DUniquePtr< Field > propertyChanged
Field that indicated whether the properties have changed.
Definition: X3DGeometricPropertyNode.h:53
Display list is extended in order to set front sidedness of triangles outside the display list.
Definition: X3DGeometryNode.h:76
This is the base node type for all geometry in X3D.
Definition: X3DGeometryNode.h:61
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