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

X3D_Info.h

Go to the documentation of this file.
00001 #ifndef INFO_H
00002 #define INFO_H
00003 
00004 #include <X3DTK/X3D/scenegraph.h>
00005 
00006 namespace X3DTK {
00007 namespace X3D {
00008 
00009 class Price;
00010 class Modeler;
00011 
00012 // Info node.
00013 
00014 class Info : public X3DChildNode
00015 {
00016 public:
00017   Info();
00018   Info(const SFString &date,
00019        SFNode price,
00020        SFNode modeler);
00021   virtual ~Info();
00022   virtual SFAbstractNode clone() const;  
00023 
00024   void setDate(const SFString &date);
00025   void setPrice(Price *price);
00026   void setModeler(Modeler *modeler);  
00027 
00028   inline const SFString &getDate() const {return _date;};
00029   inline SFNode getPrice() const {return _price;};
00030   inline SFNode getModeler() const {return _modeler;};  
00031   
00032   virtual MFAbstractNode getChildList() const;
00033   
00034   virtual bool addChild(const SFAbstractNode &N);
00035   virtual bool setChild(const SFAbstractNode &N);
00036   virtual bool removeChild(const SFAbstractNode &N);
00037   
00038   virtual void load(const X3DFileElement *element);
00039   virtual SFString write() const;
00040 
00041 protected:
00042   Info(const Info &I);
00043 
00044 private:
00045   SFString _date;
00046   
00047   SFNode _price;
00048   SFNode _modeler;
00049 };
00050 
00051 }
00052 }
00053 
00054 #endif

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