GL_PointSet.h

Go to the documentation of this file.
00001 #ifndef X3DTK_GL_POINTSET_H
00002 #define X3DTK_GL_POINTSET_H
00003 
00004 #include "GL_X3DGeometryNode.h"
00005 
00006 #include <vector>
00007 
00008 namespace X3DTK {
00009 namespace GL {
00010 
00017 class PointSet : public X3DGeometryNode
00018 {
00019 public:
00021   PointSet();
00023   virtual ~PointSet();
00024 
00026   void setColor(const SFBool &color);
00028   void setC4UB_V3F_vertexArray(const std::vector<C4UB_V3F> &C4UB_V3F_vertexArray);
00030   void setV3F_vertexArray(const MFVec3f &V3F_vertexArray);
00031   
00033   inline const SFBool &getColor() const {return _color;};
00035   inline std::vector<C4UB_V3F> &C4UB_V3F_vertexArray() {return _C4UB_V3F_vertexArray;};
00037   inline MFVec3f &V3F_vertexArray() {return _V3F_vertexArray;};
00038   
00040   virtual void update();
00042   virtual void draw() const;  
00043 
00044 private:
00046   SFBool _color;
00048   std::vector<C4UB_V3F> _C4UB_V3F_vertexArray;
00050   MFVec3f _V3F_vertexArray;
00051 };
00052 
00053 }
00054 }
00055 
00056 #endif

Generated on Fri Jul 30 12:02:28 2004 for X3DToolKit by doxygen 1.3.6