00001 #ifndef X3DTK_X3D_CONTOURPOLYLINE2D 00002 #define X3DTK_X3D_CONTOURPOLYLINE2D 00003 00004 #include "X3DTypes.h" 00005 #include "X3D_X3DParametricGeometryNode.h" 00006 00007 namespace X3DTK { 00008 namespace X3D { 00009 00018 class ContourPolyline2D : public X3DParametricGeometryNode 00019 { 00020 public: 00022 ContourPolyline2D(); 00024 ContourPolyline2D(const MFVec2f &point); 00026 virtual SFAbstractNode clone() const; 00028 virtual ~ContourPolyline2D(); 00029 00031 void setPoint(const MFVec2f &point); 00032 00034 inline const MFVec2f &getPoint() const {return _point;}; 00035 00037 virtual void load(const X3DFileElement *element); 00039 virtual SFString &write(SFString &output) const; 00040 00041 protected: 00043 ContourPolyline2D(const ContourPolyline2D &N); 00044 00045 private: 00047 MFVec2f _point; 00048 }; 00049 00050 } 00051 } 00052 00053 #endif