1 #ifndef SIMVOLEON_SOORTHOSLICE_H
2 #define SIMVOLEON_SOORTHOSLICE_H
36 #include <Inventor/nodes/SoShape.h>
37 #include <Inventor/fields/SoSFUInt32.h>
38 #include <Inventor/fields/SoSFEnum.h>
39 #include <Inventor/fields/SoSFBool.h>
40 #include <Inventor/fields/SoSFNode.h>
42 #include <VolumeViz/C/basic.h>
47 typedef SoShape inherited;
52 static void initClass(
void);
56 enum Axis { X = 0, Y, Z };
57 enum Interpolation { NEAREST, LINEAR };
58 enum AlphaUse { ALPHA_AS_IS, ALPHA_OPAQUE, ALPHA_BINARY };
59 enum ClippingSide { FRONT, BACK };
63 SoSFEnum interpolation;
65 SoSFEnum clippingSide;
69 virtual SbBool affectsState(
void)
const;
74 virtual void doAction(SoAction * action);
75 virtual void GLRender(SoGLRenderAction * action);
76 virtual void rayPick(SoRayPickAction * action);
77 virtual void generatePrimitives(SoAction * action);
78 virtual void computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center);
79 virtual void write(SoWriteAction * action);
81 virtual SbBool readInstance(SoInput * in,
unsigned short flags);
84 friend class SoOrthoSliceP;
85 class SoOrthoSliceP * pimpl;
88 #endif // !SIMVOLEON_SOORTHOSLICE_H