00001 #ifndef COIN_SOSPHERE_H
00002 #define COIN_SOSPHERE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoShape.h>
00029 #include <Inventor/fields/SoSFFloat.h>
00030
00031 class COIN_DLL_API SoSphere : public SoShape {
00032 typedef SoShape inherited;
00033
00034 SO_NODE_HEADER(SoSphere);
00035
00036 public:
00037 static void initClass(void);
00038 SoSphere(void);
00039
00040 SoSFFloat radius;
00041
00042 virtual void GLRender(SoGLRenderAction * action);
00043 virtual void rayPick(SoRayPickAction * action);
00044 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00045
00046 protected:
00047 virtual ~SoSphere();
00048
00049 virtual void generatePrimitives(SoAction * action);
00050 virtual void computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center);
00051 };
00052
00053 #endif // !COIN_SOSPHERE_H