00001 #ifndef FCYLINDER_H 00002 #define FCYLINDER_H 00003 00004 #include <X3DTK/X3D/scenegraph.h> 00005 00006 namespace X3DTK { 00007 namespace X3D { 00008 00009 class FCylinder : public Cylinder 00010 { 00011 public: 00012 // Constructor. 00013 FCylinder(); 00014 // Constructs a Cylinder from its attributes. 00015 FCylinder(SFBool bottom, 00016 SFFloat radius, 00017 SFFloat height, 00018 SFBool side, 00019 SFBool top, 00020 SFInt32 section); 00021 00022 // Clones the node. 00023 virtual SFAbstractNode clone() const; 00024 // sets the number of sections. 00025 void setSection(SFInt32 section); 00026 00027 // gets the number of sections. 00028 inline SFInt32 getSection() const {return _section;}; 00029 00030 // Loads the attributes from a X3DFileElement e. 00031 virtual void load(const X3DFileElement *element); 00032 // Writes the attributes of the node. 00033 virtual SFString &write(SFString &output) const; 00034 00035 protected: 00036 // Copy constructor. 00037 FCylinder(const FCylinder &C); 00038 00039 private: 00040 SFInt32 _section; 00041 }; 00042 00043 } 00044 } 00045 00046 #endif