Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoSlice.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2021 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24
25#ifndef SO_SLICE_H
26#define SO_SLICE_H
27
28#include <VolumeViz/nodes/SoVolumeShape.h>
29
30class SoVolumeData;
32class SoSliceInterface;
33
62class SoSlice : public SoVolumeShape {
63 SO_NODE_ABSTRACT_HEADER(SoSlice);
64
65public:
66
83
92
105
117
144
159
183
184private:
185 // Define callback used in computeGeometryAndTex
186 typedef int textureCreateCB( int dimx, int dimy, unsigned int *texData, void *userData );
187
188 static void initClass();
189 static void exitClass();
190
195 virtual bool enableColorMap(SoState *state,
196 SoTransferFunction::GLColorMapType colorMapInstalled,
197 int &texType);
198
199private:
201 virtual void GLRender(SoGLRenderAction* action);
202
203private:
204
208 SoSlice();
209
213 virtual ~SoSlice();
214
215#ifndef HIDDEN_FROM_DOC
216
217 //Return false if normal rendering can't be done
218 bool handleAlternateRep(SoGLRenderAction *action, SoVolumeData *volumeDataNode);
219
220 virtual bool isTransparent(SoState *state);
221
225 virtual void installClippingPlanes(SoState * SO_UNUSED_PARAM(state)) {}
226
227#endif // HIDDEN_FROM_DOC
228};
229
230#endif
231
232
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Node that define...
Renders a scene graph using Open Inventor's Render Engine.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a a node.
Definition SoSFNode.h:97
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Abstract base class f...
Definition SoSlice.h:62
AlphaUse
Alpha component usage mode Used in the alphaUse field.
Definition SoSlice.h:109
@ ALPHA_BINARY
Use Alpha in binary mode.
Definition SoSlice.h:115
@ ALPHA_AS_IS
Use alpha values as is.
Definition SoSlice.h:111
@ ALPHA_OPAQUE
Ignore alpha values (slice is opaque)
Definition SoSlice.h:113
SoSFBool enableBumpMapping
Specifies if a bump mapping effect will be applied to the slice.
Definition SoSlice.h:82
SoSFFloat bumpScale
Specifies the intensity of the bump mapping effect.
Definition SoSlice.h:91
SoSFNode alternateRep
This field optionally holds a subgraph containing only core Open Inventor nodes that can be used for ...
Definition SoSlice.h:104
SoSFBool largeSliceSupport
Activate/deactivate direct loading of full resolution slice data.
Definition SoSlice.h:182
SoSFBool useRGBA
Specifies whether to create RGBA textures.
Definition SoSlice.h:158
SoSFEnum alphaUse
Specifies how to use the alpha component of each voxel's RGBA value.
Definition SoSlice.h:143
Traversal state.
Definition SoState.h:74
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Volume data property ...
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Abstract base class f...