00001 00002 // Coordinate.h // 00004 00005 #ifndef COORDINATE_H 00006 #define COORDINATE_H 00007 00008 #include "X3DTypes.h" 00009 #include "X3DCoordinateNode.h" 00010 00011 namespace X3DTK { 00012 00017 00018 class Coordinate : public X3DCoordinateNode 00019 { 00020 public: 00022 Coordinate(); 00024 Coordinate(const MFVec3f &point); 00026 virtual SFNode clone() const; 00028 ~Coordinate(); 00029 00031 void setPoint(const MFVec3f &point); 00032 00034 inline MFVec3f &getPoint() const {return (MFVec3f &)point_;}; 00035 00037 virtual void loadAttributes(const X3DFileElement *element); 00039 virtual SFString writeAttributes() const; 00040 00041 protected: 00043 Coordinate(const Coordinate &C); 00044 00045 private: 00046 MFVec3f point_; 00047 }; 00048 00049 } 00050 00051 #endif