Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
openGLSphere.h
1 #ifndef _OPENGLSPHERE_H
2 #define _OPENGLSPHERE_H
3 
4 #include "Drawable.h"
5 
6 class GLUquadric;
7 
8 class OpenGLSphere : public Drawable
9 {
10 public:
11  DECLARE_CLASS_INFO(OpenGLSphere,Drawable,Renderer)
12 
13  OpenGLSphere(const kstl::string& name,DECLARE_CLASS_NAME_TREE_ARG);
14 
15  bool Draw(TravState* travstate);
16  // return true because has a bounding box
17  virtual bool BBoxUpdate(kdouble/* time */) {return true;}
18 
19  void GetBoundingBox(Point3D& pmin,Point3D& pmax) const;
20 
21 
22 protected:
23  maFloat mRadius;
24  maVect4DF mColor;
25 
26  GLUquadric *mQuadObj;
27  virtual ~OpenGLSphere();
28 
29  unsigned int mListIndex;
30 
31 };
32 
33 #endif //_OPENGLSPHERE_H
maArrayHeritage< 0, kfloat, CoreModifiable::ATTRIBUTE_TYPE::FLOAT, 1, 4 >
maNumericHeritage
CoreModifiableAttributeData for numeric without different level of notification.
Definition: maNumeric.h:17
Drawable.h
Drawable
Base class for all drawable objects.
Definition: Drawable.h:22
Drawable::BBoxUpdate
virtual bool BBoxUpdate(kdouble time)
update the bounding box
Definition: Drawable.h:88
Drawable::Draw
virtual bool Draw(TravState *)
initialise draw method
Definition: Drawable.cpp:142
TravState
Base class used to store current scene traversal state.
Definition: TravState.h:72