 |
VTK
9.1.0
|
Go to the documentation of this file.
92 #ifndef vtkSmartVolumeMapper_h
93 #define vtkSmartVolumeMapper_h
96 #include "vtkRenderingVolumeOpenGL2Module.h"
127 vtkSetMacro(FinalColorWindow,
float);
134 vtkGetMacro(FinalColorWindow,
float);
145 vtkSetMacro(FinalColorLevel,
float);
152 vtkGetMacro(FinalColorLevel,
float);
158 DefaultRenderMode = 0,
159 RayCastRenderMode = 1,
161 OSPRayRenderMode = 3,
162 UndefinedRenderMode = 4,
163 InvalidRenderMode = 5
203 vtkGetMacro(RequestedRenderMode,
int);
231 vtkSetClampMacro(MaxMemoryFraction,
float, 0.1f, 1.0f);
232 vtkGetMacro(MaxMemoryFraction,
float);
241 vtkGetMacro(InterpolationMode,
int);
262 vtkSetClampMacro(InteractiveUpdateRate,
double, 1.0e-10, 1.0e10);
271 vtkGetMacro(InteractiveUpdateRate,
double);
283 vtkSetClampMacro(InteractiveAdjustSampleDistances,
vtkTypeBool, 0, 1);
311 vtkSetMacro(SampleDistance,
float);
312 vtkGetMacro(SampleDistance,
float);
345 vtkGetMacro(VectorMode,
int);
347 vtkSetClampMacro(VectorComponent,
int, 0, 3);
348 vtkGetMacro(VectorComponent,
int);
355 vtkSetStringMacro(Transfer2DYAxisArray);
356 vtkGetStringMacro(Transfer2DYAxisArray);
char * Transfer2DYAxisArray
Define the array used for the Y axis of transfer 2D.
Abstract class for a volume mapper.
void SetRequestedRenderMode(int mode)
Set the requested render mode.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int VectorComponent
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
void SetRequestedRenderModeToOSPRay()
Set the requested render mode to vtkSmartVolumeMapper::OSPRayRenderMode.
void SetVectorMode(int mode)
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
float FinalColorLevel
Window / level ivars.
represents a volume (data & properties) in a rendered scene
~vtkSmartVolumeMapper() override
vtkTimeStamp SupportStatusCheckTime
Initialization variables.
void SetInterpolationModeToLinear()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
void ConnectFilterInput(vtkImageResample *f)
Connect input of the vtkSmartVolumeMapper to the input of the internal resample filter by doing a sha...
A fixed point mapper for volumes.
record modification and/or execution time
double InteractiveUpdateRate
If the DesiredUpdateRate of the vtkRenderWindow causing the Render is at or above this value,...
int GPUSupported
Initialization variables.
void SetInterpolationModeToNearestNeighbor()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
int RayCastSupported
Initialization variables.
void Render(vtkRenderer *, vtkVolume *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.
Mapper to render volumes defined as vtkMultiBlockDataSet.
int CurrentRenderMode
The requested render mode is used to compute the current render mode.
static vtkSmartVolumeMapper * New()
abstract superclass for arrays of numeric data
float MaxMemoryFraction
GPU mapper-specific memory ivars.
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 SetRequestedRenderModeToRayCast()
Set the requested render mode to vtkSmartVolumeMapper::RayCastRenderMode.
window superclass for vtkRenderWindow
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkTypeBool AutoAdjustSampleDistances
Set whether or not the sample distance should be automatically calculated within the internal volume ...
vtkDataSet * LastInput
Keep a cache of the last input to the mapper so that input data changes can be propogated to the resa...
vtkGPUVolumeRayCastMapper * GPULowResMapper
The three potential mappers.
vtkDataSet * LastFilterInput
Keep a cache of the last input to the mapper so that input data changes can be propogated to the resa...
int VectorMode
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
int InterpolationMode
Used for downsampling.
Resamples an image to be larger or smaller.
VectorModeType
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
#define VTK_RESLICE_CUBIC
void ComputeRenderMode(vtkRenderer *ren, vtkVolume *vol)
The method that computes the render mode from the requested render mode based on the support status f...
vtkImageData * InputDataMagnitude
This filter is used to compute the magnitude of 3-component data.
int Initialized
Initialization variables.
topologically and geometrically regular array of data
a simple class to control print indentation
vtkTypeBool InteractiveAdjustSampleDistances
If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and ...
vtkGPUVolumeRayCastMapper * GPUMapper
The three potential mappers.
Ray casting performed on the GPU.
void SetInterpolationModeToCubic()
Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).
#define VTK_RESLICE_NEAREST
int InitializedBlendMode
We need to keep track of the blend mode we had when we initialized because we need to reinitialize (a...
int RequestedRenderMode
The requested render mode is used to compute the current render mode.
void SetRequestedRenderModeToDefault()
Set the requested render mode to vtkSmartVolumeMapper::DefaultRenderMode.
vtkImageMagnitude * ImageMagnitude
This filter is used to compute the magnitude of 3-component data.
abstract class to specify dataset behavior
int GetLastUsedRenderMode()
This will return the render mode used during the previous call to Render().
int LowResGPUNecessary
Initialization variables.
abstract specification for renderers
vtkTimeStamp MagnitudeUploadTime
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
Removes link dependence on optional ospray module.
vtkFixedPointVolumeRayCastMapper * RayCastMapper
The three potential mappers.
vtkIdType MaxMemoryInBytes
GPU mapper-specific memory ivars.
void SetRequestedRenderModeToGPU()
Set the requested render mode to vtkSmartVolumeMapper::GPURenderMode.
create a window for renderers to draw into
void Initialize(vtkRenderer *ren, vtkVolume *vol)
The initialize method.
void ConnectMapperInput(vtkVolumeMapper *m)
Connect input of the vtkSmartVolumeMapper to the input of the internal volume mapper by doing a shall...
float FinalColorWindow
Window / level ivars.
vtkImageResample * GPUResampleFilter
This is the resample filter that may be used if we need to create a low resolution version of the vol...
represents the common properties for rendering a volume.
float SampleDistance
The distance between sample points along the ray.