73 #ifndef vtkSmartVolumeMapper_h 74 #define vtkSmartVolumeMapper_h 76 #include "vtkRenderingVolumeOpenGL2Module.h" 108 vtkSetMacro( FinalColorWindow,
float );
115 vtkGetMacro( FinalColorWindow,
float );
126 vtkSetMacro( FinalColorLevel,
float );
133 vtkGetMacro( FinalColorLevel,
float );
143 UndefinedRenderMode=4,
151 void SetRequestedRenderMode(
int mode);
158 void SetRequestedRenderModeToDefault();
165 void SetRequestedRenderModeToRayCast();
172 void SetRequestedRenderModeToGPU();
178 void SetRequestedRenderModeToOSPRay();
184 vtkGetMacro( RequestedRenderMode,
int );
191 int GetLastUsedRenderMode();
201 vtkSetMacro( MaxMemoryInBytes,
vtkIdType );
202 vtkGetMacro( MaxMemoryInBytes,
vtkIdType );
212 vtkSetClampMacro( MaxMemoryFraction,
float, 0.1f, 1.0f );
213 vtkGetMacro( MaxMemoryFraction,
float );
221 vtkSetClampMacro(InterpolationMode,
int,
223 vtkGetMacro(InterpolationMode,
int);
224 void SetInterpolationModeToNearestNeighbor();
225 void SetInterpolationModeToLinear();
226 void SetInterpolationModeToCubic();
239 double viewDirection[3],
249 vtkSetClampMacro( InteractiveUpdateRate,
double, 1.0e-10, 1.0e10 );
258 vtkGetMacro( InteractiveUpdateRate,
double );
270 vtkSetClampMacro( InteractiveAdjustSampleDistances,
vtkTypeBool, 0, 1);
271 vtkGetMacro( InteractiveAdjustSampleDistances,
vtkTypeBool);
272 vtkBooleanMacro( InteractiveAdjustSampleDistances,
vtkTypeBool);
285 vtkSetClampMacro( AutoAdjustSampleDistances,
vtkTypeBool, 0, 1 );
286 vtkGetMacro( AutoAdjustSampleDistances,
vtkTypeBool );
287 vtkBooleanMacro( AutoAdjustSampleDistances,
vtkTypeBool );
298 vtkSetMacro( SampleDistance,
float );
299 vtkGetMacro( SampleDistance,
float );
331 void SetVectorMode(
int mode);
332 vtkGetMacro(VectorMode,
int);
334 vtkSetClampMacro(VectorComponent,
int, 0, 3);
335 vtkGetMacro(VectorComponent,
int);
represents a volume (data & properties) in a rendered scene
#define VTK_RESLICE_NEAREST
Abstract class for a volume mapper.
int VectorComponent
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
#define VTK_RESLICE_CUBIC
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.
vtkFixedPointVolumeRayCastMapper * RayCastMapper
The three potential mappers.
vtkTypeBool InteractiveAdjustSampleDistances
If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and ...
vtkGPUVolumeRayCastMapper * GPULowResMapper
The three potential mappers.
abstract specification for renderers
int RequestedRenderMode
The requested render mode is used to compute the current render mode.
vtkImageResample * GPUResampleFilter
This is the resample filter that may be used if we need to create a low resolution version of the vol...
float SampleDistance
The distance between sample points along the ray.
vtkIdType MaxMemoryInBytes
GPU mapper-specific memory ivars.
Mapper to render volumes defined as vtkMultiBlockDataSet.
int VectorMode
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
vtkImageMagnitude * ImageMagnitude
This filter is used to compute the magnitude of 3-component data.
void Render(vtkRenderer *ren, vtkVolume *vol) override=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
window superclass for vtkRenderWindow
VectorModeType
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
float FinalColorLevel
Window / level ivars.
a simple class to control print indentation
double InteractiveUpdateRate
If the DesiredUpdateRate of the vtkRenderWindow causing the Render is at or above this value,...
vtkTypeBool AutoAdjustSampleDistances
Set whether or not the sample distance should be automatically calculated within the internal volume ...
topologically and geometrically regular array of data
Colapses components with magnitude function.
abstract superclass for arrays of numeric data
int CurrentRenderMode
The requested render mode is used to compute the current render mode.
represents the common properties for rendering a volume.
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
A fixed point mapper for volumes.
create a window for renderers to draw into
Removes link dependence on optional ospray module.
vtkTimeStamp MagnitudeUploadTime
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
vtkGPUVolumeRayCastMapper * GPUMapper
The three potential mappers.
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.
int GPUSupported
Initialization variables.
static vtkAlgorithm * New()
vtkImageData * InputDataMagnitude
This filter is used to compute the magnitude of 3-component data.
float MaxMemoryFraction
GPU mapper-specific memory ivars.
int InterpolationMode
Used for downsampling.
Ray casting performed on the GPU.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float FinalColorWindow
Window / level ivars.