00001 00002 00003 00005 00006 00011 00016 00021 // ContourPolyline2D.h // 00023 00024 #ifndef CONTOURPOLYLINE2D 00025 #define CONTOURPOLYLINE2D 00026 00027 #include "X3DTypes.h" 00028 #include "X3DParametricGeometryNode.h" 00029 00030 namespace X3DTK { 00031 namespace X3D { 00032 00037 00038 class ContourPolyline2D : public X3DParametricGeometryNode 00039 { 00040 public: 00042 ContourPolyline2D(); 00044 ContourPolyline2D(const MFVec2f &point); 00046 virtual SFNode clone() const; 00048 virtual ~ContourPolyline2D(); 00049 00051 void setPoint(const MFVec2f &point); 00052 00054 inline const MFVec2f &getPoint() const {return _point;}; 00055 00057 virtual void load(const X3DFileElement *element); 00059 virtual SFString write() const; 00060 00061 protected: 00063 ContourPolyline2D(const ContourPolyline2D &N); 00064 00065 private: 00067 MFVec2f _point; 00068 }; 00069 00070 } 00071 } 00072 00073 #endif