00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef COIN_SOVRMLINDEXEDLINE_H
00025 #define COIN_SOVRMLINDEXEDLINE_H
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/VRMLnodes/SoVRMLVertexLine.h>
00029 #include <Inventor/fields/SoMFInt32.h>
00030
00031 class COIN_DLL_API SoVRMLIndexedLine : public SoVRMLVertexLine
00032 {
00033 typedef SoVRMLVertexLine inherited;
00034 SO_NODE_ABSTRACT_HEADER(SoVRMLIndexedLine);
00035
00036 public:
00037 static void initClass(void);
00038
00039 SoMFInt32 coordIndex;
00040 SoMFInt32 colorIndex;
00041
00042 protected:
00043 SoVRMLIndexedLine(void);
00044 virtual ~SoVRMLIndexedLine();
00045
00046 virtual void computeBBox(SoAction * action,
00047 SbBox3f & box, SbVec3f & center);
00048
00049 int getNumVerts( int startCoord );
00050 void setupIndices( int numFaces );
00051 const int32_t * getColorIndices(void);
00052
00053 virtual void notify( SoNotList * list );
00054
00055 };
00056
00057 #endif // ! COIN_SOVRMLINDEXEDLINE_H