Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

X3D_MyCoordinate.h

Go to the documentation of this file.
00001 #ifndef MYCOORDINATE_H
00002 #define MYCOORDINATE_H
00003 
00004 #include <X3DTK/X3D/scenegraph.h>
00005 
00006 namespace X3DTK {
00007 namespace X3D {
00008 
00009 // Class X3D::MyCoordinate extending the X3D::Coordinate node by adding a weight information.
00010 
00011 class MyCoordinate : public Coordinate
00012 {
00013 public:
00014   MyCoordinate();
00015   MyCoordinate(const MFVec3f &point,
00016                const MFFloat &weight);
00017   
00018   virtual SFAbstractNode clone() const;
00019   virtual ~MyCoordinate();
00020                
00021   void setWeight(const MFFloat &weight);             
00022   inline const MFFloat &getWeight() const {return _weight;};
00023   
00024   virtual void load(const X3DFileElement *element);
00025   virtual SFString &write(SFString &output) const;
00026   
00027 protected: 
00028   MyCoordinate(const MyCoordinate &C);
00029 
00030 private:  
00031   MFFloat _weight;    
00032 };
00033 
00034 }
00035 }
00036 
00037 #endif

Generated on Thu Jun 3 10:12:10 2004 for X3DToolKit by doxygen 1.3.6