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_SOVRMLBOX_H
00025 #define COIN_SOVRMLBOX_H
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/VRMLnodes/SoVRMLGeometry.h>
00029 #include <Inventor/fields/SoSFVec3f.h>
00030
00031 class COIN_DLL_API SoVRMLBox : public SoVRMLGeometry
00032 {
00033 typedef SoVRMLGeometry inherited;
00034 SO_NODE_HEADER(SoVRMLBox);
00035
00036 public:
00037 static void initClass(void);
00038 SoVRMLBox(void);
00039
00040 SoSFVec3f size;
00041
00042 virtual void GLRender(SoGLRenderAction * action);
00043 virtual void rayPick(SoRayPickAction * action);
00044 virtual void getPrimitiveCount( SoGetPrimitiveCountAction * action );
00045
00046 protected:
00047 virtual ~SoVRMLBox();
00048
00049 virtual void generatePrimitives( SoAction * action );
00050 virtual void computeBBox( SoAction * action, SbBox3f & box,
00051 SbVec3f & center );
00052 };
00053
00054 #endif // ! COIN_SOVRMLBOX_H