00001
00002
00004
00005 #ifndef GLCONE_H
00006 #define GLCONE_H
00007
00008 #include "X3DGLGeometry3DNode.h"
00009
00010 namespace X3DTK {
00011
00012 class Cone;
00013 class ConeDrawArray;
00014
00017
00018 class GLCone : public X3DGLGeometry3DNode
00019 {
00020 public:
00022 GLCone();
00024 virtual SFNode clone() const;
00026 ~GLCone();
00027
00029 SFFloat &getBottomRadius() const {return (SFFloat &)_bottomRadius;};
00031 SFFloat &getHeight() const {return (SFFloat &)_height;};
00033 SFBool &getSide() const {return (SFBool &)_side;};
00035 SFBool &getBottom() const {return (SFBool &)_bottom;};
00037 inline ConeDrawArray *&getConeDrawArray() const {return (ConeDrawArray *&)_coneArray;};
00038
00039 protected:
00041 GLCone(const GLCone &C);
00042
00043 private:
00044
00045 SFFloat _bottomRadius;
00046 SFFloat _height;
00047 SFBool _side;
00048 SFBool _bottom;
00049 ConeDrawArray *_coneArray;
00050 };
00051
00052 }
00053
00054 #endif