Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoVolumeRendering.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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : P. ESTRADE (Mar 2000)
22**=======================================================================*/
23#ifndef _SO_VOLUME_RENDERING_
24#define _SO_VOLUME_RENDERING_
25
26#ifdef _WIN32
27# pragma warning( push )
28# pragma warning(disable:4251)
29# pragma warning(disable:4244)
30#endif
31
32#include <VolumeViz/SoVolumeVizLibName.h>
33
34// On Windows the "comment" pragma will automatically add our Volume
35// Rendering library to the application's link string.
36#ifdef _WIN32
37# ifndef VolumeViz_EXPORTS
38# ifndef OIV_DISABLE_AUTOLINK
39# pragma comment(lib,__VOLUMEVIZLIB)
40# endif
41# endif
42#endif // _WIN32
43
44#include <Inventor/nodes/SoSubNode.h>
45#include <LDM/SoLDMGlobalResourceParameters.h>
46#include <LDM/nodes/SoHardwareQuery.h>
47
48#include <Inventor/SoModule.h>
49SO_MODULE_HEADER(SoVolumeViz, __VOLUMEVIZDLL)
50
51class SoLDMTileManager;
52
86
87 public:
107 static void init();
108
119 static void finish();
120
125 static bool isInitialized();
126
128 // Alternate Representation section
129
139 static void setWriteAlternateRep( SbBool flag );
140
145
153 static void setReadAlternateRep( SbBool flag );
154
159
187
199
210
211#if 1 SoDEPRECATED
224 static void setDelayedRendering( SbBool flag );
225SoDEPRECATED
231
232#endif
235 private:
236
237 enum Cmd{
238 SET_WRITE_ALTERNATE_REP = 0,
239 SET_READ_ALTERNATE_REP,
240 SET_DELAYED_RENDERING,
241 SET_IGNORE_FULLY_TRANSPARENT_TILES,
242 SET_MOVE_LOW_RES
243 };
244
246
247private:
248 // ------------------------------------------------------------
249
250 static SbBool s_writeAlternateRep; // write classic Inventor nodes
251 static SbBool s_readAlternateRep; // keep altRep when reading file
252 static SbBool s_delayedRendering; // enable delayed rendering
253 static int s_debugFlag; // internal debug flag
254
255 static int s_initRefCount; // module ref counter
256
257 static const char* s_versionString;
258};
259
260#if defined(_WIN32)
261#pragma warning( pop )
262#endif
263
264#endif // _SO_VOLUME_RENDERING_
265
266
@ HW_TEXCOLORMAP
The system supports the OpenGL paletted texture extension and/or the texture color table extension.
@ HW_3DTEXMAP
The system supports OpenGL 3D texture mapping.
@ HW_TEXCOMPRESSION
The system supports the OpenGL texture compression extension.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Initializes the Volum...
static void setWriteAlternateRep(SbBool flag)
Sets the writeAlternateRep flag.
static void init()
Initializes the VolumeViz module database.
static HW_SupportStatus isSupported(HW_Feature feature)
Returns information about hardware support for various volume rendering features.
static void setReadAlternateRep(SbBool flag)
Sets the readAlternateRep flag.
static SoDEPRECATED SbBool getDelayedRendering()
Returns the delayedRendering flag.
static SbBool getWriteAlternateRep()
Returns the writeAlternateRep flag.
static SoDEPRECATED void setDelayedRendering(SbBool flag)
Sets the delayedRendering flag.
static void finish()
Shuts down the VolumeViz module, which includes freeing any internal static memory that it allocated.
HW_Feature
Hardware Features Mode.
@ HW_3DTEXMAP
The system supports OpenGL 3D texture mapping.
@ HW_TEXCOLORMAP
The system supports the OpenGL paletted texture extension and/or the texture color table extension.
@ HW_TEXCOMPRESSION
The system supports the OpenGL texture compression extension.
HW_SupportStatus
Hardware Features support status.
@ UNKNOWN
unknown status
static bool isInitialized()
Returns TRUE if module is currently initialized.
static SbBool getReadAlternateRep()
Returns the readAlternateRep flag.
int SbBool
Boolean type.
Definition SbBase.h:87