00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef COIN_SOVRMLSPHERE_H
00025 #define COIN_SOVRMLSPHERE_H
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/VRMLnodes/SoVRMLGeometry.h>
00029 #include <Inventor/fields/SoSFFloat.h>
00030
00031 class COIN_DLL_API SoVRMLSphere : public SoVRMLGeometry
00032 {
00033 typedef SoVRMLGeometry inherited;
00034 SO_NODE_HEADER(SoVRMLSphere);
00035
00036 public:
00037 static void initClass(void);
00038 SoVRMLSphere(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 ~SoVRMLSphere();
00048
00049 virtual void generatePrimitives(SoAction * action);
00050 virtual void computeBBox(SoAction * action,
00051 SbBox3f & box, SbVec3f & center);
00052
00053 };
00054
00055 #endif // ! COIN_SOVRMLSPHERE_H