64#ifndef vtkSmartVolumeMapper_h
65#define vtkSmartVolumeMapper_h
68#include "vtkRenderingVolumeOpenGL2Module.h"
71VTK_ABI_NAMESPACE_BEGIN
100 vtkSetMacro(FinalColorWindow,
float);
107 vtkGetMacro(FinalColorWindow,
float);
118 vtkSetMacro(FinalColorLevel,
float);
125 vtkGetMacro(FinalColorLevel,
float);
131 DefaultRenderMode = 0,
132 RayCastRenderMode = 1,
134 OSPRayRenderMode = 3,
135 UndefinedRenderMode = 4,
136 InvalidRenderMode = 5
176 vtkGetMacro(RequestedRenderMode,
int);
204 vtkSetClampMacro(MaxMemoryFraction,
float, 0.1f, 1.0f);
205 vtkGetMacro(MaxMemoryFraction,
float);
214 vtkGetMacro(InterpolationMode,
int);
226 vtkImageData* image,
int blend_mode,
double viewDirection[3],
double viewUp[3]);
246 vtkSetClampMacro(InteractiveUpdateRate,
double, 1.0e-10, 1.0e10);
255 vtkGetMacro(InteractiveUpdateRate,
double);
267 vtkSetClampMacro(InteractiveAdjustSampleDistances,
vtkTypeBool, 0, 1);
295 vtkSetMacro(SampleDistance,
float);
296 vtkGetMacro(SampleDistance,
float);
306 vtkSetClampMacro(GlobalIlluminationReach,
float, 0.0f, 1.0f);
307 vtkGetMacro(GlobalIlluminationReach,
float);
317 vtkSetClampMacro(VolumetricScatteringBlending,
float, 0.0f, 2.0f);
318 vtkGetMacro(VolumetricScatteringBlending,
float);
351 vtkGetMacro(VectorMode,
int);
353 vtkSetClampMacro(VectorComponent,
int, 0, 3);
354 vtkGetMacro(VectorComponent,
int);
361 vtkSetStringMacro(Transfer2DYAxisArray);
362 vtkGetStringMacro(Transfer2DYAxisArray);
375 LowResModeDisabled = 0,
376 LowResModeResample = 1,
379 vtkSetMacro(LowResMode,
int);
380 vtkGetMacro(LowResMode,
int)
404 float FinalColorWindow;
405 float FinalColorLevel;
413 float MaxMemoryFraction;
419 int InterpolationMode;
427 int RequestedRenderMode;
428 int CurrentRenderMode;
438 int RayCastSupported;
439 int LowResGPUNecessary;
494 int InitializedBlendMode;
504 float SampleDistance;
509 float GlobalIlluminationReach = 0.0;
514 float VolumetricScatteringBlending = 0.0;
527 double InteractiveUpdateRate;
565 char* Transfer2DYAxisArray;
567 int LowResMode = LowResModeDisabled;
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
A fixed point mapper for volumes.
Ray casting performed on the GPU.
topologically and geometrically regular array of data
Resamples an image to be larger or smaller.
a simple class to control print indentation
Mapper to render volumes defined as vtkMultiBlockDataSet.
Removes link dependence on optional ospray module.
create a window for renderers to draw into
abstract specification for renderers
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetLastUsedRenderMode()
This will return the render mode used during the previous call to Render().
void SetVectorMode(int mode)
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
void SetInterpolationModeToLinear()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
void SetRequestedRenderModeToOSPRay()
Set the requested render mode to vtkSmartVolumeMapper::OSPRayRenderMode.
void CreateCanonicalView(vtkRenderer *ren, vtkVolume *volume, vtkVolume *volume2, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
This method can be used to render a representative view of the input data into the supplied image giv...
void SetInterpolationModeToNearestNeighbor()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
void SetRequestedRenderMode(int mode)
Set the requested render mode.
static vtkSmartVolumeMapper * New()
LowResModeType
LowResDisable disables low res mode (default) LowResResample enable low res mode by automatically res...
void SetRequestedRenderModeToRayCast()
Set the requested render mode to vtkSmartVolumeMapper::RayCastRenderMode.
void SetRequestedRenderModeToGPU()
Set the requested render mode to vtkSmartVolumeMapper::GPURenderMode.
void SetRequestedRenderModeToDefault()
Set the requested render mode to vtkSmartVolumeMapper::DefaultRenderMode.
void Render(vtkRenderer *, vtkVolume *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.
void SetInterpolationModeToCubic()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
VectorModeType
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
record modification and/or execution time
Abstract class for a volume mapper.
represents the common properties for rendering a volume.
represents a volume (data & properties) in a rendered scene
window superclass for vtkRenderWindow
#define VTK_RESLICE_CUBIC
#define VTK_RESLICE_NEAREST