X3D_IndexedLineSet.h

Go to the documentation of this file.
00001 #ifndef X3DTK_X3D_INDEXEDLINESET_H
00002 #define X3DTK_X3D_INDEXEDLINESET_H
00003 
00004 #include "X3DTypes.h"
00005 #include "X3D_X3DGeometryNode.h"
00006 
00007 namespace X3DTK {
00008 namespace X3D {
00009 
00010 class X3DColorNode;
00011 class X3DCoordinateNode;
00012 
00021 class IndexedLineSet : public X3DGeometryNode
00022 {
00023 public:
00025   IndexedLineSet();
00026   
00028   void setColorIndex(const MFInt32 &colorIndex);
00030   void setColorPerVertex(const SFBool &colorPerVertex);
00032   void setCoordIndex(const MFInt32 &coordIndex);
00034   void setLineWidth(const SFFloat &lineWidth);
00035   
00037   inline X3DColorNode *getColor() const {return _color;};
00039   inline X3DCoordinateNode *getCoord() const {return _coord;};
00041   inline const MFInt32 &getColorIndex() const {return _colorIndex;};
00043   inline const SFBool &getColorPerVertex() const {return _colorPerVertex;};
00045   inline const MFInt32 &getCoordIndex() const {return _coordIndex;};
00047   inline const SFFloat &getLineWidth() const {return _lineWidth;};
00048 
00049 private:  
00051   X3DColorNode *_color;
00053   X3DCoordinateNode *_coord;
00055   MFInt32 _colorIndex;
00057   SFBool _colorPerVertex;
00059   MFInt32 _coordIndex;
00061   SFFloat _lineWidth;  
00062 };
00063 
00064 }
00065 }
00066 
00067 #endif

Generated on Mon Jul 12 09:40:00 2004 for X3DToolKit by doxygen 1.3.6