00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __VOLUME_FACE_SET
00026 #define __VOLUME_FACE_SET
00027
00028 #include <Inventor/nodes/SoFaceSet.h>
00029
00030 #include <VolumeViz/nodes/SoVolumeGeometry.h>
00031 #include <Inventor/fields/SoSFBool.h>
00032 #include <Inventor/fields/SoSFFloat.h>
00033 #include <Inventor/SbBox.h>
00034
00035 class SoVolumeGeometryVbo;
00036
00163 class SoVolumeFaceSet : public SoFaceSet, public SoVolumeGeometry
00164 {
00165 SO_NODE_HEADER(SoVolumeFaceSet);
00166
00167 public :
00168
00170 SoVolumeFaceSet();
00171
00176 SoSFBool clipGeometry;
00177
00189 SoSFFloat offset;
00190
00194 SoSFEnum interpolation;
00195
00196 #if 1 SoDEPRECATED
00201 SoSFBool useVbo;
00202
00203 #endif
00205 #if 1 SoDEPRECATED enum
00208 Interpolation {
00210 NEAREST = SoVolumeShape::NEAREST,
00212 LINEAR = SoVolumeShape::LINEAR
00213 };
00214
00215 #endif
00218 private:
00219
00220 static void initClass();
00221
00223 static void exitClass();
00224
00226 virtual void GLRender(SoGLRenderAction *action);
00227
00229 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er);
00230
00232 virtual void computeBBox(SoAction *action, SbXfBox3d &box, SbVec3d ¢er);
00233
00234 private:
00235
00237 virtual void notify(SoNotList *list);
00238
00239 #if 1 SoDEPRECATED
00243 virtual SoVolumeShape::Interpolation getInteractiveInterpolationValue(SoState* state) const;
00244
00245 #endif
00247 private:
00248
00249 virtual void shapeRender(SoGLRenderAction* action);
00250
00252 virtual void shapeGeneratePrimitives(SoAction* action);
00253
00255 virtual void checkShapeStyle(SoState *state,const SoShapeStyleElement *shapeStyle);
00256
00258 virtual void GLRenderBoundingBox(SoGLRenderAction* action);
00259
00261 virtual void getBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er);
00262
00264 virtual void getBBox(SoAction *action, SbXfBox3d &box, SbVec3d ¢er);
00265
00267 virtual int getNumVertices(SoState* state);
00268
00270 virtual int getIndexCoord(int index) const;
00271
00273 virtual ~SoVolumeFaceSet();
00274
00275 using SoVolumeGeometry::doRendering;
00276 };
00277
00278 #endif //__VOLUME_FACE_SET
00279
00280
00281