00001 #ifndef SO_ALGEBRAIC_SPHERE_H 00002 #define SO_ALGEBRAIC_SPHERE_H 00003 00004 #include <Inventor/nodes/SoAlgebraicShape.h> 00005 #include <Inventor/fields/SoSFFloat.h> 00006 00007 00040 class SoAlgebraicSphere : public SoAlgebraicShape 00041 { 00042 SO_NODE_HEADER(SoAlgebraicSphere); 00043 00044 public: 00045 00049 SoSFFloat radius; 00050 00054 SoAlgebraicSphere (); 00055 00056 private: 00057 00061 virtual ~SoAlgebraicSphere () {} 00062 00068 virtual void computeBBox ( SbBox3f &box, SbVec3f ¢er ); 00069 00070 private: 00071 00075 virtual void rayPick ( SoRayPickAction *action ); 00076 00080 virtual SoNode* getAlternateRep ( SoAction* action ); 00081 00082 private: 00083 00085 00088 static void initClass (); 00089 static void exitClass (); 00091 00092 }; 00093 00094 #endif // SO_ALGEBRAIC_SPHERE_H 00095