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_INDEXED_TRIANGLE_STRIP_SET
00026 #define __VOLUME_INDEXED_TRIANGLE_STRIP_SET
00027
00028 #include <Inventor/nodes/SoIndexedTriangleStripSet.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
00175 class SoVolumeIndexedTriangleStripSet : public SoIndexedTriangleStripSet, public SoVolumeGeometry
00176 {
00177 SO_NODE_HEADER(SoVolumeIndexedTriangleStripSet);
00178
00179 public :
00180
00182 SoVolumeIndexedTriangleStripSet();
00183
00188 SoSFBool clipGeometry;
00189
00201 SoSFFloat offset;
00202
00206 SoSFEnum interpolation;
00207
00208 #if 1 SoDEPRECATED enum
00211 Interpolation {
00213 NEAREST = SoVolumeShape::NEAREST,
00215 LINEAR = SoVolumeShape::LINEAR
00216 };
00217
00218 #endif
00221 private:
00222
00223 static void initClass();
00224
00226 static void exitClass();
00227
00229 virtual void GLRender(SoGLRenderAction *action);
00230
00232 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er);
00233
00235 virtual void computeBBox(SoAction *action, SbXfBox3d &box, SbVec3d ¢er);
00236
00237 private:
00238
00240 virtual void notify(SoNotList *list);
00241
00242 #if 1 SoDEPRECATED
00246 virtual SoVolumeShape::Interpolation getInteractiveInterpolationValue(SoState* state) const;
00247
00248 #endif
00250 private:
00251
00252 virtual void shapeRender(SoGLRenderAction* action);
00253
00255 virtual void shapeGeneratePrimitives(SoAction* action);
00256
00258 virtual void checkShapeStyle(SoState *state,const SoShapeStyleElement *shapeStyle);
00259
00261 virtual void GLRenderBoundingBox(SoGLRenderAction* action);
00262
00264 virtual void getBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er);
00265
00267 virtual void getBBox(SoAction *action, SbXfBox3d &box, SbVec3d ¢er);
00268
00270 virtual int getNumVertices(SoState* state);
00271
00273 virtual int getIndexCoord(int index) const;
00274
00276 virtual ~SoVolumeIndexedTriangleStripSet();
00277
00278 using SoVolumeGeometry::doRendering;
00279
00280 private:
00281 SoDEPRECATED
00283 SoSFBool useVbo;
00284
00285 };
00286
00287 #endif //__VOLUME_INDEXED_TRIANGLE_STRIP_SET
00288
00289
00290