79 #ifndef vtkSmartVolumeMapper_h
80 #define vtkSmartVolumeMapper_h
82 #include "vtkRenderingVolumeOpenGL2Module.h"
120 vtkGetMacro( FinalColorWindow,
float );
138 vtkGetMacro( FinalColorLevel,
float );
145 #if !defined(VTK_LEGACY_REMOVE)
146 RayCastAndTextureRenderMode=1,
149 #if !defined(VTK_LEGACY_REMOVE)
153 UndefinedRenderMode=5,
195 vtkGetMacro( RequestedRenderMode,
int );
223 vtkSetClampMacro( MaxMemoryFraction,
float, 0.1f, 1.0f );
224 vtkGetMacro( MaxMemoryFraction,
float );
232 vtkSetClampMacro(InterpolationMode,
int,
234 vtkGetMacro(InterpolationMode,
int);
250 double viewDirection[3],
260 vtkSetClampMacro( InteractiveUpdateRate,
double, 1.0e-10, 1.0e10 );
269 vtkGetMacro( InteractiveUpdateRate,
double );
281 vtkSetClampMacro( InteractiveAdjustSampleDistances,
int, 0, 1);
282 vtkGetMacro( InteractiveAdjustSampleDistances,
int);
296 vtkSetClampMacro( AutoAdjustSampleDistances,
int, 0, 1 );
297 vtkGetMacro( AutoAdjustSampleDistances,
int );
310 vtkGetMacro( SampleDistance,
float );
342 vtkSetClampMacro(VectorMode,
int, -1, 1);
343 vtkGetMacro(VectorMode,
int);
345 vtkSetClampMacro(VectorComponent,
int, 0, 3);
346 vtkGetMacro(VectorComponent,
int);
A fixed point mapper for volumes.
Ray casting performed on the GPU.
topologically and geometrically regular array of data
Colapses components with magnitude function.
Resamples an image to be larger or smaller.
a simple class to control print indentation
Removes link dependence on optional ospray module.
create a window for renderers to draw into
abstract specification for renderers
int Initialized
Initialization variables.
int VectorMode
VectorMode is a special rendering mode for 3-component vectors which makes use of GPURayCastMapper's ...
int RequestedRenderMode
The requested render mode is used to compute the current render mode.
void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
int GetLastUsedRenderMode()
This will return the render mode used during the previous call to Render().
vtkImageResample * GPUResampleFilter
This is the resample filter that may be used if we need to create a low resolution version of the vol...
vtkFixedPointVolumeRayCastMapper * RayCastMapper
vtkImageData * InputDataMagnitude
float SampleDistance
The distance between sample points along the ray.
vtkIdType MaxMemoryInBytes
GPU mapper-specific memory ivars.
void Render(vtkRenderer *, vtkVolume *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.
void Initialize(vtkRenderer *ren, vtkVolume *vol)
The initialize method.
int InitializedBlendMode
We need to keep track of the blend mode we had when we initialized because we need to reinitialize (a...
int AutoAdjustSampleDistances
Set whether or not the sample distance should be automatically calculated within the internal volume ...
void SetInterpolationModeToLinear()
void ConnectFilterInput(vtkImageResample *f)
Connect input of the vtkSmartVolumeMapper to the input of the internal resample filter by doing a sha...
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 PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int InteractiveAdjustSampleDistances
If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and ...
void SetInterpolationModeToNearestNeighbor()
void SetRequestedRenderMode(int mode)
Set the requested render mode.
double InteractiveUpdateRate
If the DesiredUpdateRate of the vtkRenderWindow causing the Render is at or above this value,...
void ConnectMapperInput(vtkVolumeMapper *m)
Connect input of the vtkSmartVolumeMapper to the input of the internal volume mapper by doing a shall...
int InterpolationMode
Used for downsampling.
vtkTimeStamp SupportStatusCheckTime
void SetRequestedRenderModeToRayCast()
Set the requested render mode to vtkSmartVolumeMapper::RayCastRenderMode.
vtkGPUVolumeRayCastMapper * GPUMapper
void SetRequestedRenderModeToGPU()
Set the requested render mode to vtkSmartVolumeMapper::GPURenderMode.
vtkGPUVolumeRayCastMapper * GPULowResMapper
The three potential mappers.
float FinalColorWindow
Window / level ivars.
static vtkSmartVolumeMapper * New()
void SetRequestedRenderModeToDefault()
Set the requested render mode to vtkSmartVolumeMapper::DefaultRenderMode.
vtkImageMagnitude * ImageMagnitude
This filter is used to compute the magnitude of 3-component data.
void ComputeRenderMode(vtkRenderer *ren, vtkVolume *vol)
The method that computes the render mode from the requested render mode based on the support status f...
void SetInterpolationModeToCubic()
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.