103 #ifndef vtkSmartVolumeMapper_h
104 #define vtkSmartVolumeMapper_h
106 #include "vtkRenderingVolumeOpenGLModule.h"
117 #if !defined(VTK_LEGACY_REMOVE)
119 #endif // VTK_LEGACY_REMOVE
146 vtkGetMacro( FinalColorWindow,
float );
164 vtkGetMacro( FinalColorLevel,
float );
184 void SetRequestedRenderMode(
int mode);
191 void SetRequestedRenderModeToDefault();
198 void SetRequestedRenderModeToGPU();
204 #if !defined(VTK_LEGACY_REMOVE)
205 void SetRequestedRenderModeToTexture();
206 #endif // VTK_LEGACY_REMOVE
215 #if !defined(VTK_LEGACY_REMOVE)
216 void SetRequestedRenderModeToRayCastAndTexture();
217 #endif // VTK_LEGACY_REMOVE
224 void SetRequestedRenderModeToRayCast();
230 void SetRequestedRenderModeToOSPRay();
236 vtkGetMacro( RequestedRenderMode,
int );
247 vtkSetClampMacro( InteractiveUpdateRate,
double, 1.0e-10, 1.0e10 );
256 vtkGetMacro( InteractiveUpdateRate,
double );
263 int GetLastUsedRenderMode();
274 vtkGetMacro( MaxMemoryInBytes,
vtkIdType );
284 vtkSetClampMacro( MaxMemoryFraction,
float, 0.1f, 1.0f );
285 vtkGetMacro( MaxMemoryFraction,
float );
293 vtkSetClampMacro(InterpolationMode,
int,
295 vtkGetMacro(InterpolationMode,
int);
296 void SetInterpolationModeToNearestNeighbor();
297 void SetInterpolationModeToLinear();
298 void SetInterpolationModeToCubic();
311 double viewDirection[3],
394 #if !defined(VTK_LEGACY_REMOVE)
396 #endif // VTK_LEGACY_REMOVE
represents a volume (data & properties) in a rendered scene
#define VTK_RESLICE_NEAREST
Abstract class for a volume mapper.
volume render with 3D texture mapping
#define VTK_RESLICE_CUBIC
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageResample * GPUResampleFilter
This is the resample filter that may be used if we need to create a low resolution version of the vol...
int RayCastSupported
Initialization variables.
record modification and/or execution time
vtkTimeStamp SupportStatusCheckTime
Initialization variables.
Resamples an image to be larger or smaller.
int LowResGPUNecessary
Initialization variables.
vtkGPUVolumeRayCastMapper * GPUMapper
The three potential mappers.
abstract specification for renderers
vtkGPUVolumeRayCastMapper * GPULowResMapper
The three potential mappers.
int RequestedRenderMode
The requested render mode is used to compute the current render mode.
vtkIdType MaxMemoryInBytes
GPU mapper-specific memory ivars.
window superclass for vtkRenderWindow
float FinalColorLevel
Window / level ivars.
vtkFixedPointVolumeRayCastMapper * RayCastMapper
The three potential mappers.
a simple class to control print indentation
double InteractiveUpdateRate
If the DesiredUpdateRate of the vtkRenderWindow causing the Render is at or above this value...
topologically and geometrically regular array of data
virtual void Render(vtkRenderer *ren, vtkVolume *vol)=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
int CurrentRenderMode
The requested render mode is used to compute the current render mode.
represents the common properties for rendering a volume.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A fixed point mapper for volumes.
create a window for renderers to draw into
Removes link dependence on optional ospray module.
int InitializedBlendMode
We need to keep track of the blend mode we had when we initialized because we need to reinitialize (a...
int Initialized
Initialization variables.
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
int GPUSupported
Initialization variables.
static vtkAlgorithm * New()
float MaxMemoryFraction
GPU mapper-specific memory ivars.
int InterpolationMode
Used for downsampling.
Ray casting performed on the GPU.
vtkVolumeTextureMapper3D * TextureMapper
float FinalColorWindow
Window / level ivars.