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 InfoShape : public Shape 00015 { 00016 public: 00017 InfoShape(); 00018 virtual ~InfoShape(); 00019 virtual SFAbstractNode clone() const; 00020 00021 void setDate(const SFString &date); 00022 void setPrice(Price *price); 00023 void setModeler(Modeler *modeler); 00024 00025 inline const SFString &getDate() const {return _date;}; 00026 inline SFNode getPrice() const {return _price;}; 00027 inline SFNode getModeler() const {return _modeler;}; 00028 00029 virtual MFAbstractNode getChildList() const; 00030 00031 virtual bool addChild(const SFAbstractNode &N); 00032 virtual bool setChild(const SFAbstractNode &N); 00033 virtual bool removeChild(const SFAbstractNode &N); 00034 00035 virtual void load(const X3DFileElement *element); 00036 00037 protected: 00038 InfoShape(const InfoShape &I); 00039 00040 private: 00041 SFString _date; 00042 00043 SFNode _price; 00044 SFNode _modeler; 00045 }; 00046 00047 } 00048 } 00049 00050 #endif