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

GL_Cone.h

Go to the documentation of this file.
00001 
00002 //                            GL_Cone.h                                       //
00004 
00005 #ifndef GLCONE_H
00006 #define GLCONE_H
00007 
00008 #include "GL_X3DGeometry3DNode.h"
00009 
00010 namespace X3DTK {
00011 namespace GL {
00012 
00013 class ConeDrawArray;
00014 
00017 
00018 class Cone : public X3DGeometry3DNode
00019 {
00020 public:
00022   Cone();
00024   virtual SFNode clone() const;
00026   virtual ~Cone();
00027 
00029   void setBottomRadius(const SFFloat &bottomRadius);
00031   void setHeight(const SFFloat &height);
00033   void setSide(const SFBool &side);
00035   void setBottom(const SFBool &bottom);
00037   void setConeArray(ConeDrawArray *coneArray);
00038 
00040   inline const SFFloat &getBottomRadius() const {return _bottomRadius;};
00042   inline const SFFloat &getHeight() const {return _height;};
00044   inline const SFBool &getSide() const {return _side;};
00046   inline const SFBool &getBottom() const {return _bottom;};
00048   inline ConeDrawArray *getConeArray() const {return _coneArray;};
00049 
00051   virtual void update();
00053   virtual void draw() const;  
00054   
00055 protected:
00057   Cone(const Cone &C);
00058   
00060   SFFloat _bottomRadius;
00062   SFFloat _height;
00064   SFBool _side;
00066   SFBool _bottom;
00068   ConeDrawArray *_coneArray;
00069 };
00070 
00071 }
00072 }
00073 
00074 #endif

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