|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   73 #ifndef vtkSmartVolumeMapper_h 
   74 #define vtkSmartVolumeMapper_h 
   77 #include "vtkRenderingVolumeOpenGL2Module.h"  
  108   vtkSetMacro(FinalColorWindow, 
float);
 
  115   vtkGetMacro(FinalColorWindow, 
float);
 
  126   vtkSetMacro(FinalColorLevel, 
float);
 
  133   vtkGetMacro(FinalColorLevel, 
float);
 
  139     DefaultRenderMode = 0,
 
  140     RayCastRenderMode = 1,
 
  142     OSPRayRenderMode = 3,
 
  143     UndefinedRenderMode = 4,
 
  144     InvalidRenderMode = 5
 
  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);
 
  222   vtkGetMacro(InterpolationMode, 
int);
 
  223   void SetInterpolationModeToNearestNeighbor();
 
  224   void SetInterpolationModeToLinear();
 
  225   void SetInterpolationModeToCubic();
 
  243   vtkSetClampMacro(InteractiveUpdateRate, 
double, 1.0e-10, 1.0e10);
 
  252   vtkGetMacro(InteractiveUpdateRate, 
double);
 
  264   vtkSetClampMacro(InteractiveAdjustSampleDistances, 
vtkTypeBool, 0, 1);
 
  265   vtkGetMacro(InteractiveAdjustSampleDistances, 
vtkTypeBool);
 
  266   vtkBooleanMacro(InteractiveAdjustSampleDistances, 
vtkTypeBool);
 
  279   vtkSetClampMacro(AutoAdjustSampleDistances, 
vtkTypeBool, 0, 1);
 
  280   vtkGetMacro(AutoAdjustSampleDistances, 
vtkTypeBool);
 
  281   vtkBooleanMacro(AutoAdjustSampleDistances, 
vtkTypeBool);
 
  292   vtkSetMacro(SampleDistance, 
float);
 
  293   vtkGetMacro(SampleDistance, 
float);
 
  325   void SetVectorMode(
int mode);
 
  326   vtkGetMacro(VectorMode, 
int);
 
  328   vtkSetClampMacro(VectorComponent, 
int, 0, 3);
 
  329   vtkGetMacro(VectorComponent, 
int);
 
  
Abstract class for a volume mapper.
represents a volume (data & properties) in a rendered scene
vtkTimeStamp SupportStatusCheckTime
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,...
Mapper to render volumes defined as vtkMultiBlockDataSet.
Colapses components with magnitude function..
abstract superclass for arrays of numeric data
window superclass for vtkRenderWindow
vtkTypeBool AutoAdjustSampleDistances
Set whether or not the sample distance should be automatically calculated within the internal volume ...
vtkGPUVolumeRayCastMapper * GPULowResMapper
The three potential mappers.
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.
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...
VectorModeType
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
#define VTK_RESLICE_CUBIC
vtkImageData * InputDataMagnitude
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
Ray casting performed on the GPU.
#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.
vtkImageMagnitude * ImageMagnitude
This filter is used to compute the magnitude of 3-component data.
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
static vtkAlgorithm * New()
abstract specification for renderers
vtkTimeStamp MagnitudeUploadTime
Removes link dependence on optional ospray module.
vtkFixedPointVolumeRayCastMapper * RayCastMapper
vtkIdType MaxMemoryInBytes
GPU mapper-specific memory ivars.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create a window for renderers to draw into
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.