#include <IndexedLineSet.h>
Inheritance diagram for H3D::IndexedLineSet:

Public Types | |
|
typedef DependentSFNode< X3DCoordinateNode, FieldRef< X3DGeometricPropertyNode, Field,&X3DCoordinateNode::propertyChanged > > | SFCoordinateNode |
| SFCoordinateNode is dependent on coordChanged field in X3DCoordinateNode. | |
|
typedef DependentSFNode< X3DColorNode, FieldRef< X3DGeometricPropertyNode, Field,&X3DColorNode::propertyChanged > > | SFColorNode |
| SFColorNode is dependent on colorChanged field in X3DColorNode. | |
Public Member Functions | |
| H3D_VALUE_EXCEPTION (int, InvalidColorIndex) | |
| Thrown when the colorIndex field does not match the coordIndex field properly. | |
| H3D_VALUE_EXCEPTION (int, InvalidColorIndexSize) | |
| Thrown when the colorIndex field's size does not match the coordIndex field properly. | |
| IndexedLineSet (Inst< SFNode > _metadata=0, Inst< CoordBoundField > _bound=0, Inst< DisplayList > _displayList=0, Inst< MFInt32 > _set_colorIndex=0, Inst< MFInt32 > _set_coordIndex=0, Inst< SFColorNode > _color=0, Inst< SFCoordinateNode > _coord=0, Inst< MFInt32 > _colorIndex=0, Inst< SFBool > _colorPerVertex=0, Inst< MFInt32 > _coordIndex=0) | |
| Constructor. | |
| virtual void | render () |
| Render the IndexedLineSet with OpenGL. | |
Public Attributes | |
| auto_ptr< MFInt32 > | set_colorIndex |
| Field for setting the value of the colorIndex field. | |
| auto_ptr< MFInt32 > | set_coordIndex |
| Field for setting the value of the coordIndex field. | |
| auto_ptr< SFColorNode > | color |
| Contains an X3DColorNode which colors are applied to the X3DComposedGeometryNode. | |
| auto_ptr< SFCoordinateNode > | coord |
| The coord field specifies the 3D vertices of the line set and contains a X3DCoordinateNode. | |
| auto_ptr< MFInt32 > | colorIndex |
| Indices into the color field. | |
| auto_ptr< SFBool > | colorPerVertex |
| If TRUE the colors in the color field are applied per vertex, otherwise it is applied per polyline. | |
| auto_ptr< MFInt32 > | coordIndex |
| Indices into the coord field. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase instance for this node. | |
IndexedLineSet uses the indices in its coordIndex field to specify the polylines by connecting vertices from the coord field. An index of "-1" indicates that the current polyline has ended and the next one begins. The last polyline may be (but does not have to be) followed by a "-1". IndexedLineSet is specified in the local coordinate system and is affected by the transformations of its ancestors.
The coord field specifies the 3D vertices of the line set and contains a X3DCoordinateNode.
Lines are not lit, are not texture-mapped, and do not participate in collision detection. The width of lines is implementation dependent and each line segment is solid (i.e., not dashed).
If the color field is not NULL, it shall contain a Color node. The colours are applied to the line(s) as follows:
|
|
Contains an X3DColorNode which colors are applied to the X3DComposedGeometryNode. If the color field is NULL and there is a Material defined for the Appearance affecting this IndexedLineSet, the emissiveColor of the Material shall be used to draw the lines. If a color is not NULL colors are applied as described in the detailed description Access type: inputOutput
|
|
|
Indices into the color field. See Detailed description for details on how it is used.
Access type: inputOutput
|
|
|
If TRUE the colors in the color field are applied per vertex, otherwise it is applied per polyline.
Access type: inputOutput
|
|
|
The coord field specifies the 3D vertices of the line set and contains a X3DCoordinateNode. Access type: inputOutput
|
|
|
Indices into the coord field. See Detailed description for details on how it is used.
Access type: inputOutput
|
|
|
Field for setting the value of the colorIndex field. Access type: inputOnly
|
|
|
Field for setting the value of the coordIndex field. Access type: inputOnly
|
1.4.5