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