Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

X3D_Cone.h

Go to the documentation of this file.
00001 
00002 //                            X3D_Cone.h                                      //
00004 
00005 #ifndef CONE_H
00006 #define CONE_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3D_X3DGeometry3DNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class Cone : public X3DGeometry3DNode
00020 {
00021 public:
00023   Cone();
00025   Cone(const SFFloat &bottomRadius, 
00026        const SFFloat &height, 
00027        const SFBool &side, 
00028        const SFBool &bottom);
00030   virtual SFAbstractNode clone() const;
00032   virtual ~Cone();
00033   
00035   void setBottomRadius(const SFFloat &bottomRadius);
00037   void setHeight(const SFFloat &height);
00039   void setSide(const SFBool &side);
00041   void setBottom(const SFBool &bottom);
00042   
00044   inline const SFFloat &getBottomRadius() const {return _bottomRadius;};
00046   inline const SFFloat &getHeight() const {return _height;};
00048   inline const SFBool &getSide() const {return _side;};
00050   inline const SFBool &getBottom() const {return _bottom;};
00051 
00053   virtual void load(const X3DFileElement *element);
00055   virtual SFString &write(SFString &output) const;
00056 
00057 protected:
00059   Cone(const Cone &C);  
00060 
00061 private:  
00063   SFFloat _bottomRadius;
00065   SFFloat _height;
00067   SFBool _side;
00069   SFBool _bottom;
00070 };
00071 
00072 }
00073 }
00074 
00075 #endif

Generated on Mon Jan 19 10:32:06 2004 for X3DToolKit by doxygen1.2.18