VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkSmartVolumeMapper Class Reference

Adaptive volume mapper. More...

#include <vtkSmartVolumeMapper.h>

Inheritance diagram for vtkSmartVolumeMapper:
[legend]
Collaboration diagram for vtkSmartVolumeMapper:
[legend]

Public Types

enum  {
  DefaultRenderMode =0, RayCastAndTextureRenderMode, RayCastRenderMode, TextureRenderMode,
  GPURenderMode, UndefinedRenderMode, InvalidRenderMode
}
 
enum  {
  DefaultRenderMode =0, RayCastAndTextureRenderMode, RayCastRenderMode, TextureRenderMode,
  GPURenderMode, UndefinedRenderMode, InvalidRenderMode
}
 
typedef vtkVolumeMapper Superclass
 
typedef vtkVolumeMapper Superclass
 
- Public Types inherited from vtkVolumeMapper
enum  { COMPOSITE_BLEND, MAXIMUM_INTENSITY_BLEND, MINIMUM_INTENSITY_BLEND, ADDITIVE_BLEND }
 
typedef vtkAbstractVolumeMapper Superclass
 
- Public Types inherited from vtkAbstractVolumeMapper
typedef vtkAbstractMapper3D Superclass
 
- Public Types inherited from vtkAbstractMapper3D
typedef vtkAbstractMapper Superclass
 
- Public Types inherited from vtkAbstractMapper
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkSmartVolumeMapperNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetRequestedRenderMode (int mode)
 
void SetRequestedRenderModeToDefault ()
 
void SetRequestedRenderModeToGPU ()
 
void SetRequestedRenderModeToTexture ()
 
void SetRequestedRenderModeToRayCastAndTexture ()
 
void SetRequestedRenderModeToRayCast ()
 
int GetLastUsedRenderMode ()
 
void Render (vtkRenderer *, vtkVolume *)
 
virtual int IsA (const char *type)
 
vtkSmartVolumeMapperNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetRequestedRenderMode (int mode)
 
void SetRequestedRenderModeToDefault ()
 
void SetRequestedRenderModeToRayCast ()
 
void SetRequestedRenderModeToGPU ()
 
int GetLastUsedRenderMode ()
 
void Render (vtkRenderer *, vtkVolume *)
 
virtual void SetFinalColorWindow (float)
 
virtual float GetFinalColorWindow ()
 
virtual void SetFinalColorLevel (float)
 
virtual float GetFinalColorLevel ()
 
virtual int GetRequestedRenderMode ()
 
virtual void SetInteractiveUpdateRate (double)
 
virtual double GetInteractiveUpdateRate ()
 
virtual void SetMaxMemoryInBytes (vtkIdType)
 
virtual vtkIdType GetMaxMemoryInBytes ()
 
virtual void SetMaxMemoryFraction (float)
 
virtual float GetMaxMemoryFraction ()
 
virtual void SetInterpolationMode (int)
 
virtual int GetInterpolationMode ()
 
void SetInterpolationModeToNearestNeighbor ()
 
void SetInterpolationModeToLinear ()
 
void SetInterpolationModeToCubic ()
 
void CreateCanonicalView (vtkRenderer *ren, vtkVolume *volume, vtkVolume *volume2, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
 
void ReleaseGraphicsResources (vtkWindow *)
 
virtual void SetFinalColorWindow (float)
 
virtual float GetFinalColorWindow ()
 
virtual void SetFinalColorLevel (float)
 
virtual float GetFinalColorLevel ()
 
virtual int GetRequestedRenderMode ()
 
virtual void SetMaxMemoryInBytes (vtkIdType)
 
virtual vtkIdType GetMaxMemoryInBytes ()
 
virtual void SetMaxMemoryFraction (float)
 
virtual float GetMaxMemoryFraction ()
 
virtual void SetInterpolationMode (int)
 
virtual int GetInterpolationMode ()
 
void SetInterpolationModeToNearestNeighbor ()
 
void SetInterpolationModeToLinear ()
 
void SetInterpolationModeToCubic ()
 
void CreateCanonicalView (vtkRenderer *ren, vtkVolume *volume, vtkVolume *volume2, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
 
virtual void SetInteractiveUpdateRate (double)
 
virtual double GetInteractiveUpdateRate ()
 
virtual void SetInteractiveAdjustSampleDistances (int)
 
virtual int GetInteractiveAdjustSampleDistances ()
 
virtual void InteractiveAdjustSampleDistancesOn ()
 
virtual void InteractiveAdjustSampleDistancesOff ()
 
virtual void SetAutoAdjustSampleDistances (int)
 
virtual int GetAutoAdjustSampleDistances ()
 
virtual void AutoAdjustSampleDistancesOn ()
 
virtual void AutoAdjustSampleDistancesOff ()
 
virtual void SetSampleDistance (float)
 
virtual float GetSampleDistance ()
 
void ReleaseGraphicsResources (vtkWindow *)
 
- Public Member Functions inherited from vtkVolumeMapper
vtkVolumeMapperNewInstance () const
 
virtual void SetInputData (vtkImageData *)
 
virtual void SetInputData (vtkDataSet *)
 
vtkImageDataGetInput ()
 
virtual void SetBlendMode (int)
 
void SetBlendModeToComposite ()
 
void SetBlendModeToMaximumIntensity ()
 
void SetBlendModeToMinimumIntensity ()
 
void SetBlendModeToAdditive ()
 
virtual int GetBlendMode ()
 
virtual void SetCropping (int)
 
virtual int GetCropping ()
 
virtual void CroppingOn ()
 
virtual void CroppingOff ()
 
virtual void SetCroppingRegionPlanes (double, double, double, double, double, double)
 
virtual void SetCroppingRegionPlanes (double[6])
 
virtual doubleGetCroppingRegionPlanes ()
 
virtual void GetCroppingRegionPlanes (double data[6])
 
virtual doubleGetVoxelCroppingRegionPlanes ()
 
virtual void GetVoxelCroppingRegionPlanes (double data[6])
 
virtual void SetCroppingRegionFlags (int)
 
virtual int GetCroppingRegionFlags ()
 
void SetCroppingRegionFlagsToSubVolume ()
 
void SetCroppingRegionFlagsToFence ()
 
void SetCroppingRegionFlagsToInvertedFence ()
 
void SetCroppingRegionFlagsToCross ()
 
void SetCroppingRegionFlagsToInvertedCross ()
 
- Public Member Functions inherited from vtkAbstractVolumeMapper
vtkAbstractVolumeMapperNewInstance () const
 
const char * GetScalarModeAsString ()
 
vtkDataSetGetDataSetInput ()
 
vtkDataObjectGetDataObjectInput ()
 
virtual doubleGetBounds ()
 
virtual void GetBounds (double bounds[6])
 
virtual void SetScalarMode (int)
 
virtual int GetScalarMode ()
 
void SetScalarModeToDefault ()
 
void SetScalarModeToUsePointData ()
 
void SetScalarModeToUseCellData ()
 
void SetScalarModeToUsePointFieldData ()
 
void SetScalarModeToUseCellFieldData ()
 
virtual void SelectScalarArray (int arrayNum)
 
virtual void SelectScalarArray (const char *arrayName)
 
virtual char * GetArrayName ()
 
virtual int GetArrayId ()
 
virtual int GetArrayAccessMode ()
 
virtual float GetGradientMagnitudeScale ()
 
virtual float GetGradientMagnitudeBias ()
 
virtual float GetGradientMagnitudeScale (int)
 
virtual float GetGradientMagnitudeBias (int)
 
- Public Member Functions inherited from vtkAbstractMapper3D
vtkAbstractMapper3DNewInstance () const
 
double GetLength ()
 
int GetNumberOfClippingPlanes ()
 
doubleGetCenter ()
 
void GetCenter (double center[3])
 
virtual int IsARayCastMapper ()
 
virtual int IsARenderIntoImageMapper ()
 
void GetClippingPlaneInDataCoords (vtkMatrix4x4 *propMatrix, int i, double planeEquation[4])
 
- Public Member Functions inherited from vtkAbstractMapper
vtkAbstractMapperNewInstance () const
 
virtual unsigned long GetMTime ()
 
void SetClippingPlanes (vtkPlanes *planes)
 
void ShallowCopy (vtkAbstractMapper *m)
 
virtual double GetTimeToDraw ()
 
void AddClippingPlane (vtkPlane *plane)
 
void RemoveClippingPlane (vtkPlane *plane)
 
void RemoveAllClippingPlanes ()
 
virtual void SetClippingPlanes (vtkPlaneCollection *)
 
virtual vtkPlaneCollectionGetClippingPlanes ()
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkSmartVolumeMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSmartVolumeMapperSafeDownCast (vtkObjectBase *o)
 
static vtkSmartVolumeMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSmartVolumeMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkVolumeMapper
static int IsTypeOf (const char *type)
 
static vtkVolumeMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractVolumeMapper
static int IsTypeOf (const char *type)
 
static vtkAbstractVolumeMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractMapper3D
static int IsTypeOf (const char *type)
 
static vtkAbstractMapper3DSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractMapper
static int IsTypeOf (const char *type)
 
static vtkAbstractMapperSafeDownCast (vtkObjectBase *o)
 
static vtkDataArrayGetScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
static vtkAbstractArrayGetAbstractScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkSmartVolumeMapper ()
 
 ~vtkSmartVolumeMapper ()
 
void ConnectMapperInput (vtkVolumeMapper *m)
 
void ConnectFilterInput (vtkImageResample *f)
 
void Initialize (vtkRenderer *ren, vtkVolume *vol)
 
void ComputeRenderMode (vtkRenderer *ren, vtkVolume *vol)
 
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkSmartVolumeMapper ()
 
 ~vtkSmartVolumeMapper ()
 
void ConnectMapperInput (vtkVolumeMapper *m)
 
void ConnectFilterInput (vtkImageResample *f)
 
void Initialize (vtkRenderer *ren, vtkVolume *vol)
 
void ComputeRenderMode (vtkRenderer *ren, vtkVolume *vol)
 
- Protected Member Functions inherited from vtkVolumeMapper
 vtkVolumeMapper ()
 
 ~vtkVolumeMapper ()
 
void ConvertCroppingRegionPlanesToVoxels ()
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
- Protected Member Functions inherited from vtkAbstractVolumeMapper
 vtkAbstractVolumeMapper ()
 
 ~vtkAbstractVolumeMapper ()
 
- Protected Member Functions inherited from vtkAbstractMapper3D
 vtkAbstractMapper3D ()
 
 ~vtkAbstractMapper3D ()
 
- Protected Member Functions inherited from vtkAbstractMapper
 vtkAbstractMapper ()
 
 ~vtkAbstractMapper ()
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

float FinalColorWindow
 
float FinalColorLevel
 
vtkIdType MaxMemoryInBytes
 
float MaxMemoryFraction
 
int InterpolationMode
 
int RequestedRenderMode
 
int CurrentRenderMode
 
int Initialized
 
vtkTimeStamp SupportStatusCheckTime
 
int TextureSupported
 
int GPUSupported
 
int RayCastSupported
 
int LowResGPUNecessary
 
vtkImageResampleGPUResampleFilter
 
double InteractiveUpdateRate
 
vtkGPUVolumeRayCastMapperGPULowResMapper
 
vtkGPUVolumeRayCastMapperGPUMapper
 
vtkFixedPointVolumeRayCastMapperRayCastMapper
 
vtkVolumeTextureMapper3DTextureMapper
 
int InitializedBlendMode
 
float SampleDistance
 
int AutoAdjustSampleDistances
 
int InteractiveAdjustSampleDistances
 
- Protected Attributes inherited from vtkVolumeMapper
int BlendMode
 
int Cropping
 
double CroppingRegionPlanes [6]
 
double VoxelCroppingRegionPlanes [6]
 
int CroppingRegionFlags
 
- Protected Attributes inherited from vtkAbstractVolumeMapper
int ScalarMode
 
char * ArrayName
 
int ArrayId
 
int ArrayAccessMode
 
- Protected Attributes inherited from vtkAbstractMapper3D
double Bounds [6]
 
double Center [3]
 
- Protected Attributes inherited from vtkAbstractMapper
vtkTimerLogTimer
 
double TimeToDraw
 
vtkWindowLastWindow
 
vtkPlaneCollectionClippingPlanes
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

Adaptive volume mapper.

vtkSmartVolumeMapper is a volume mapper that will delegate to a specific volume mapper based on rendering parameters and available hardware. Use the SetRequestedRenderMode() method to control the behavior of the selection. The following options are available:

vtkSmartVolumeMapper::DefaultRenderMode:
Allow the vtkSmartVolumeMapper to select the best mapper based on rendering parameters and hardware support. If GPU ray casting is supported, this mapper will be used for all rendering. If not, then if 3D texture mapping is supported, it will be used for interactive rendering and the vtkFixedPointRayCastMapper will be used for still rendering. If 3D texture mapping is not supported, then the vtkFixedPointRayCastMapper will be used exclusively. This is the default requested render mode, and is generally the best option. When you use this option, your volume will always be rendered, but the method used to render it may vary based on parameters and platform.
vtkSmartVolumeMapper::RayCastAndTextureRenderMode:
Use the vtkVolumeTextureMapper3D for interactive rendering, and the vtkFixedPointVolumeRayCastMapper for still renders. If 3D texture mapping is not supported, then the ray caster will be used exclusively. When you use this option your volume will always be rendered, but the method used for interactive rendering will vary based on parameters and platform. The decision on whether a particular render is interactive or still is based on the adjustable parameter InteractiveUpdateRate. If the DesiredUpdateRate found in the vtkRenderWindow that initiated the Render is at or above the InteractiveUpdateRate value, then the render is considered interactive, otherwise it is considered a still render.
vtkSmartVolumeMapper::RayCastRenderMode:
Use the vtkFixedPointVolumeRayCastMapper for both interactive and still rendering. When you use this option your volume will always be rendered with the vtkFixedPointVolumeRayCastMapper.
vtkSmartVolumeMapper::TextureRenderMode:
Use the vtkVolumeTextureMapper3D, if supported, for both interactive and still rendering. If 3D texture mapping is not supported (either by the hardware, or due to the rendering parameters) then no image will be rendered. Use this option only if you have already checked for support based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty. Also note that the vtkVolumeTextureMapper3D does not support window / level operations on the final image, so FinalColorWindow must be at the default value of 1.0 and FinalColorLevel must be at the default value of 0.5.
vtkSmartVolumeMapper::GPURenderMode:
Use the vtkGPUVolumeRayCastMapper, if supported, for both interactive and still rendering. If the GPU ray caster is not supported (due to hardware limitations or rendering parameters) then no image will be rendered. Use this option only if you have already checked for supported based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty.
vtkSmartVolumeMapper::GPURenderMode:
You can adjust the contrast and brightness in the rendered image using the FinalColorWindow and FinalColorLevel ivars. By default the FinalColorWindow is set to 1.0, and the FinalColorLevel is set to 0.5, which applies no correction to the computed image. To apply the window / level operation to the computer image color, first a Scale and Bias value are computed:
 scale = 1.0 / this->FinalColorWindow
 bias  = 0.5 - this->FinalColorLevel / this->FinalColorWindow
 
To compute a new color (R', G', B', A') from an existing color (R,G,B,A) for a pixel, the following equation is used:
 R' = R*scale + bias*A
 G' = G*scale + bias*A
 B' = B*scale + bias*A
 A' = A
 
Note that bias is multiplied by the alpha component before adding because the red, green, and blue component of the color are already pre-multiplied by alpha. Also note that the window / level operation leaves the alpha component unchanged - it only adjusts the RGB values.

vtkSmartVolumeMapper is a volume mapper that will delegate to a specific volume mapper based on rendering parameters and available hardware. Use the SetRequestedRenderMode() method to control the behavior of the selection. The following options are available:

vtkSmartVolumeMapper::DefaultRenderMode:
Allow the vtkSmartVolumeMapper to select the best mapper based on rendering parameters and hardware support. If GPU ray casting is supported, this mapper will be used for all rendering. If not, then the vtkFixedPointRayCastMapper will be used exclusively. This is the default requested render mode, and is generally the best option. When you use this option, your volume will always be rendered, but the method used to render it may vary based on parameters and platform.
vtkSmartVolumeMapper::RayCastRenderMode:
Use the vtkFixedPointVolumeRayCastMapper for both interactive and still rendering. When you use this option your volume will always be rendered with the vtkFixedPointVolumeRayCastMapper.
vtkSmartVolumeMapper::GPURenderMode:
Use the vtkGPUVolumeRayCastMapper, if supported, for both interactive and still rendering. If the GPU ray caster is not supported (due to hardware limitations or rendering parameters) then no image will be rendered. Use this option only if you have already checked for supported based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty.
vtkSmartVolumeMapper::GPURenderMode:
You can adjust the contrast and brightness in the rendered image using the FinalColorWindow and FinalColorLevel ivars. By default the FinalColorWindow is set to 1.0, and the FinalColorLevel is set to 0.5, which applies no correction to the computed image. To apply the window / level operation to the computer image color, first a Scale and Bias value are computed:
 scale = 1.0 / this->FinalColorWindow
 bias  = 0.5 - this->FinalColorLevel / this->FinalColorWindow
 
To compute a new color (R', G', B', A') from an existing color (R,G,B,A) for a pixel, the following equation is used:
 R' = R*scale + bias*A
 G' = G*scale + bias*A
 B' = B*scale + bias*A
 A' = A
 
Note that bias is multiplied by the alpha component before adding because the red, green, and blue component of the color are already pre-multiplied by alpha. Also note that the window / level operation leaves the alpha component unchanged - it only adjusts the RGB values.
Examples:
vtkSmartVolumeMapper (Examples)
Tests:
vtkSmartVolumeMapper (Tests)

Definition at line 117 of file vtkSmartVolumeMapper.h.

Member Typedef Documentation

Definition at line 121 of file vtkSmartVolumeMapper.h.

Definition at line 96 of file vtkSmartVolumeMapper.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DefaultRenderMode 
RayCastAndTextureRenderMode 
RayCastRenderMode 
TextureRenderMode 
GPURenderMode 
UndefinedRenderMode 
InvalidRenderMode 

Definition at line 154 of file vtkSmartVolumeMapper.h.

anonymous enum
Enumerator
DefaultRenderMode 
RayCastAndTextureRenderMode 
RayCastRenderMode 
TextureRenderMode 
GPURenderMode 
UndefinedRenderMode 
InvalidRenderMode 

Definition at line 129 of file vtkSmartVolumeMapper.h.

Constructor & Destructor Documentation

vtkSmartVolumeMapper::vtkSmartVolumeMapper ( )
protected
vtkSmartVolumeMapper::~vtkSmartVolumeMapper ( )
protected
vtkSmartVolumeMapper::vtkSmartVolumeMapper ( )
protected
vtkSmartVolumeMapper::~vtkSmartVolumeMapper ( )
protected

Member Function Documentation

static vtkSmartVolumeMapper* vtkSmartVolumeMapper::New ( )
static
static int vtkSmartVolumeMapper::IsTypeOf ( const char *  type)
static
virtual int vtkSmartVolumeMapper::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeMapper.

static vtkSmartVolumeMapper* vtkSmartVolumeMapper::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkSmartVolumeMapper::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkVolumeMapper.

vtkSmartVolumeMapper* vtkSmartVolumeMapper::NewInstance ( ) const
void vtkSmartVolumeMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkVolumeMapper.

virtual void vtkSmartVolumeMapper::SetFinalColorWindow ( float  )
virtual

Set the final color window. This controls the contrast of the image. The default value is 1.0. The Window can be negative (this causes a "negative" effect on the image) Although Window can be set to 0.0, any value less than 0.00001 and greater than or equal to 0.0 will be set to 0.00001, and any value greater than -0.00001 but less than or equal to 0.0 will be set to -0.00001. Initial value is 1.0.

virtual float vtkSmartVolumeMapper::GetFinalColorWindow ( )
virtual

Get the final color window. Initial value is 1.0.

virtual void vtkSmartVolumeMapper::SetFinalColorLevel ( float  )
virtual

Set the final color level. The level controls the brightness of the image. The final color window will be centered at the final color level, and together represent a linear remapping of color values. The default value for the level is 0.5.

virtual float vtkSmartVolumeMapper::GetFinalColorLevel ( )
virtual

Get the final color level.

void vtkSmartVolumeMapper::SetRequestedRenderMode ( int  mode)

Set the requested render mode. The default is vtkSmartVolumeMapper::DefaultRenderMode.

void vtkSmartVolumeMapper::SetRequestedRenderModeToDefault ( )

Set the requested render mode to vtkSmartVolumeMapper::DefaultRenderMode. This is the best option for an application that must adapt to different data types, hardware, and rendering parameters.

void vtkSmartVolumeMapper::SetRequestedRenderModeToGPU ( )

Set the requested render mode to vtkSmartVolumeMapper::GPURenderMode. This option will use hardware accelerated rendering exclusively. This is a good option if you know there is hardware acceleration.

void vtkSmartVolumeMapper::SetRequestedRenderModeToTexture ( )

Set the requested render mode to vtkSmartVolumeMapper::TextureRenderMode.

void vtkSmartVolumeMapper::SetRequestedRenderModeToRayCastAndTexture ( )

Set the requested render mode to vtkSmartVolumeMapper::RayCastAndTextureRenderMode. This is a good option if you want to avoid using advanced OpenGL functionality, but would still like to used 3D texture mapping, if available, for interactive rendering.

void vtkSmartVolumeMapper::SetRequestedRenderModeToRayCast ( )

Set the requested render mode to vtkSmartVolumeMapper::RayCastRenderMode. This option will use software rendering exclusively. This is a good option if you know there is no hardware acceleration.

virtual int vtkSmartVolumeMapper::GetRequestedRenderMode ( )
virtual

Get the requested render mode.

virtual void vtkSmartVolumeMapper::SetInteractiveUpdateRate ( double  )
virtual

Set the rate at or above this render will be considered interactive. If the DesiredUpdateRate of the vtkRenderWindow that caused the Render falls at or above this rate, the render is considered interactive and the mapper may be adjusted (depending on the render mode). Initial value is 1.0.

virtual double vtkSmartVolumeMapper::GetInteractiveUpdateRate ( )
virtual

Get the update rate at or above which this is considered an interactive render. Initial value is 1.0.

int vtkSmartVolumeMapper::GetLastUsedRenderMode ( )

This will return the render mode used during the previous call to Render().

virtual void vtkSmartVolumeMapper::SetMaxMemoryInBytes ( vtkIdType  )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum size of the 3D texture in GPU memory. Will default to the size computed from the graphics card. Can be adjusted by the user. Useful if the automatic detection is defective or missing.

virtual vtkIdType vtkSmartVolumeMapper::GetMaxMemoryInBytes ( )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum size of the 3D texture in GPU memory. Will default to the size computed from the graphics card. Can be adjusted by the user. Useful if the automatic detection is defective or missing.

virtual void vtkSmartVolumeMapper::SetMaxMemoryFraction ( float  )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum fraction of the MaxMemoryInBytes that should be used to hold the texture. Valid values are 0.1 to 1.0.

virtual float vtkSmartVolumeMapper::GetMaxMemoryFraction ( )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum fraction of the MaxMemoryInBytes that should be used to hold the texture. Valid values are 0.1 to 1.0.

virtual void vtkSmartVolumeMapper::SetInterpolationMode ( int  )
virtual

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

virtual int vtkSmartVolumeMapper::GetInterpolationMode ( )
virtual

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToNearestNeighbor ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToLinear ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToCubic ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::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 given the supplied blending mode, view direction, and view up vector.

void vtkSmartVolumeMapper::Render ( vtkRenderer ,
vtkVolume  
)
virtual

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.

Implements vtkVolumeMapper.

void vtkSmartVolumeMapper::ReleaseGraphicsResources ( vtkWindow )
virtual

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkVolumeMapper.

void vtkSmartVolumeMapper::ConnectMapperInput ( vtkVolumeMapper m)
protected

Connect input of the vtkSmartVolumeMapper to the input of the internal volume mapper by doing a shallow to avoid memory leaks.

Precondition
m_exists: m!=0
void vtkSmartVolumeMapper::ConnectFilterInput ( vtkImageResample f)
protected

Connect input of the vtkSmartVolumeMapper to the input of the internal resample filter by doing a shallow to avoid memory leaks.

Precondition
m_exists: f!=0
void vtkSmartVolumeMapper::Initialize ( vtkRenderer ren,
vtkVolume vol 
)
protected
void vtkSmartVolumeMapper::ComputeRenderMode ( vtkRenderer ren,
vtkVolume vol 
)
protected
static vtkSmartVolumeMapper* vtkSmartVolumeMapper::New ( )
static
static int vtkSmartVolumeMapper::IsTypeOf ( const char *  type)
static
virtual int vtkSmartVolumeMapper::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeMapper.

static vtkSmartVolumeMapper* vtkSmartVolumeMapper::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkSmartVolumeMapper::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkVolumeMapper.

vtkSmartVolumeMapper* vtkSmartVolumeMapper::NewInstance ( ) const
void vtkSmartVolumeMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkVolumeMapper.

virtual void vtkSmartVolumeMapper::SetFinalColorWindow ( float  )
virtual

Set the final color window. This controls the contrast of the image. The default value is 1.0. The Window can be negative (this causes a "negative" effect on the image) Although Window can be set to 0.0, any value less than 0.00001 and greater than or equal to 0.0 will be set to 0.00001, and any value greater than -0.00001 but less than or equal to 0.0 will be set to -0.00001. Initial value is 1.0.

virtual float vtkSmartVolumeMapper::GetFinalColorWindow ( )
virtual

Get the final color window. Initial value is 1.0.

virtual void vtkSmartVolumeMapper::SetFinalColorLevel ( float  )
virtual

Set the final color level. The level controls the brightness of the image. The final color window will be centered at the final color level, and together represent a linear remapping of color values. The default value for the level is 0.5.

virtual float vtkSmartVolumeMapper::GetFinalColorLevel ( )
virtual

Get the final color level.

void vtkSmartVolumeMapper::SetRequestedRenderMode ( int  mode)

Set the requested render mode. The default is vtkSmartVolumeMapper::DefaultRenderMode.

void vtkSmartVolumeMapper::SetRequestedRenderModeToDefault ( )

Set the requested render mode to vtkSmartVolumeMapper::DefaultRenderMode. This is the best option for an application that must adapt to different data types, hardware, and rendering parameters.

void vtkSmartVolumeMapper::SetRequestedRenderModeToRayCast ( )

Set the requested render mode to vtkSmartVolumeMapper::RayCastRenderMode. This option will use software rendering exclusively. This is a good option if you know there is no hardware acceleration.

void vtkSmartVolumeMapper::SetRequestedRenderModeToGPU ( )

Set the requested render mode to vtkSmartVolumeMapper::GPURenderMode. This option will use hardware accelerated rendering exclusively. This is a good option if you know there is hardware acceleration.

virtual int vtkSmartVolumeMapper::GetRequestedRenderMode ( )
virtual

Get the requested render mode.

int vtkSmartVolumeMapper::GetLastUsedRenderMode ( )

This will return the render mode used during the previous call to Render().

virtual void vtkSmartVolumeMapper::SetMaxMemoryInBytes ( vtkIdType  )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum size of the 3D texture in GPU memory. Will default to the size computed from the graphics card. Can be adjusted by the user. Useful if the automatic detection is defective or missing.

virtual vtkIdType vtkSmartVolumeMapper::GetMaxMemoryInBytes ( )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum size of the 3D texture in GPU memory. Will default to the size computed from the graphics card. Can be adjusted by the user. Useful if the automatic detection is defective or missing.

virtual void vtkSmartVolumeMapper::SetMaxMemoryFraction ( float  )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum fraction of the MaxMemoryInBytes that should be used to hold the texture. Valid values are 0.1 to 1.0.

virtual float vtkSmartVolumeMapper::GetMaxMemoryFraction ( )
virtual

Value passed to the GPU mapper. Ignored by other mappers. Maximum fraction of the MaxMemoryInBytes that should be used to hold the texture. Valid values are 0.1 to 1.0.

virtual void vtkSmartVolumeMapper::SetInterpolationMode ( int  )
virtual

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

virtual int vtkSmartVolumeMapper::GetInterpolationMode ( )
virtual

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToNearestNeighbor ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToLinear ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::SetInterpolationModeToCubic ( )

Set interpolation mode for downsampling (lowres GPU) (initial value: cubic).

void vtkSmartVolumeMapper::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 given the supplied blending mode, view direction, and view up vector.

virtual void vtkSmartVolumeMapper::SetInteractiveUpdateRate ( double  )
virtual

If the DesiredUpdateRate of the vtkRenderWindow that caused the Render falls at or above this rate, the render is considered interactive and the mapper may be adjusted (depending on the render mode). Initial value is 1.0.

virtual double vtkSmartVolumeMapper::GetInteractiveUpdateRate ( )
virtual

Get the update rate at or above which this is considered an interactive render. Initial value is 1.0.

virtual void vtkSmartVolumeMapper::SetInteractiveAdjustSampleDistances ( int  )
virtual

If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and resets the AutoAdjustSampleDistances flag on the internal volume mapper. This flag along with InteractiveUpdateRate is useful to adjust volume mapper sample distance based on whether the render is interactive or still. By default, InteractiveAdjustSampleDistances is enabled.

virtual int vtkSmartVolumeMapper::GetInteractiveAdjustSampleDistances ( )
virtual

If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and resets the AutoAdjustSampleDistances flag on the internal volume mapper. This flag along with InteractiveUpdateRate is useful to adjust volume mapper sample distance based on whether the render is interactive or still. By default, InteractiveAdjustSampleDistances is enabled.

virtual void vtkSmartVolumeMapper::InteractiveAdjustSampleDistancesOn ( )
virtual

If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and resets the AutoAdjustSampleDistances flag on the internal volume mapper. This flag along with InteractiveUpdateRate is useful to adjust volume mapper sample distance based on whether the render is interactive or still. By default, InteractiveAdjustSampleDistances is enabled.

virtual void vtkSmartVolumeMapper::InteractiveAdjustSampleDistancesOff ( )
virtual

If the InteractiveAdjustSampleDistances flag is enabled, vtkSmartVolumeMapper interactively sets and resets the AutoAdjustSampleDistances flag on the internal volume mapper. This flag along with InteractiveUpdateRate is useful to adjust volume mapper sample distance based on whether the render is interactive or still. By default, InteractiveAdjustSampleDistances is enabled.

virtual void vtkSmartVolumeMapper::SetAutoAdjustSampleDistances ( int  )
virtual

If AutoAdjustSampleDistances is on, the ImageSampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). Note that, this flag is ignored when InteractiveAdjustSampleDistances is enabled. To explicitly set and use this flag, one must disable InteractiveAdjustSampleDistances.

virtual int vtkSmartVolumeMapper::GetAutoAdjustSampleDistances ( )
virtual

If AutoAdjustSampleDistances is on, the ImageSampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). Note that, this flag is ignored when InteractiveAdjustSampleDistances is enabled. To explicitly set and use this flag, one must disable InteractiveAdjustSampleDistances.

virtual void vtkSmartVolumeMapper::AutoAdjustSampleDistancesOn ( )
virtual

If AutoAdjustSampleDistances is on, the ImageSampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). Note that, this flag is ignored when InteractiveAdjustSampleDistances is enabled. To explicitly set and use this flag, one must disable InteractiveAdjustSampleDistances.

virtual void vtkSmartVolumeMapper::AutoAdjustSampleDistancesOff ( )
virtual

If AutoAdjustSampleDistances is on, the ImageSampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). Note that, this flag is ignored when InteractiveAdjustSampleDistances is enabled. To explicitly set and use this flag, one must disable InteractiveAdjustSampleDistances.

virtual void vtkSmartVolumeMapper::SetSampleDistance ( float  )
virtual

Set/Get the distance between samples used for rendering when AutoAdjustSampleDistances is off, or when this mapper has more than 1 second allocated to it for rendering. If SampleDistance is negative, it will be computed based on the dataset spacing. Initial value is -1.0.

virtual float vtkSmartVolumeMapper::GetSampleDistance ( )
virtual

Set/Get the distance between samples used for rendering when AutoAdjustSampleDistances is off, or when this mapper has more than 1 second allocated to it for rendering. If SampleDistance is negative, it will be computed based on the dataset spacing. Initial value is -1.0.

void vtkSmartVolumeMapper::Render ( vtkRenderer ,
vtkVolume  
)
virtual

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.

Implements vtkVolumeMapper.

void vtkSmartVolumeMapper::ReleaseGraphicsResources ( vtkWindow )
virtual

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkVolumeMapper.

void vtkSmartVolumeMapper::ConnectMapperInput ( vtkVolumeMapper m)
protected

Connect input of the vtkSmartVolumeMapper to the input of the internal volume mapper by doing a shallow to avoid memory leaks.

Precondition
m_exists: m!=0
void vtkSmartVolumeMapper::ConnectFilterInput ( vtkImageResample f)
protected

Connect input of the vtkSmartVolumeMapper to the input of the internal resample filter by doing a shallow to avoid memory leaks.

Precondition
m_exists: f!=0
void vtkSmartVolumeMapper::Initialize ( vtkRenderer ren,
vtkVolume vol 
)
protected
void vtkSmartVolumeMapper::ComputeRenderMode ( vtkRenderer ren,
vtkVolume vol 
)
protected

Member Data Documentation

float vtkSmartVolumeMapper::FinalColorWindow
protected

Definition at line 293 of file vtkSmartVolumeMapper.h.

float vtkSmartVolumeMapper::FinalColorLevel
protected

Definition at line 294 of file vtkSmartVolumeMapper.h.

vtkIdType vtkSmartVolumeMapper::MaxMemoryInBytes
protected

Definition at line 297 of file vtkSmartVolumeMapper.h.

float vtkSmartVolumeMapper::MaxMemoryFraction
protected

Definition at line 298 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::InterpolationMode
protected

Definition at line 301 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::RequestedRenderMode
protected

Definition at line 306 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::CurrentRenderMode
protected

Definition at line 307 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::Initialized
protected

Definition at line 310 of file vtkSmartVolumeMapper.h.

vtkTimeStamp vtkSmartVolumeMapper::SupportStatusCheckTime
protected

Definition at line 311 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::TextureSupported
protected

Definition at line 312 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::GPUSupported
protected

Definition at line 313 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::RayCastSupported
protected

Definition at line 314 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::LowResGPUNecessary
protected

Definition at line 315 of file vtkSmartVolumeMapper.h.

vtkImageResample * vtkSmartVolumeMapper::GPUResampleFilter
protected

Definition at line 319 of file vtkSmartVolumeMapper.h.

double vtkSmartVolumeMapper::InteractiveUpdateRate
protected

Definition at line 324 of file vtkSmartVolumeMapper.h.

vtkGPUVolumeRayCastMapper * vtkSmartVolumeMapper::GPULowResMapper
protected

Definition at line 337 of file vtkSmartVolumeMapper.h.

vtkGPUVolumeRayCastMapper * vtkSmartVolumeMapper::GPUMapper
protected

Definition at line 338 of file vtkSmartVolumeMapper.h.

vtkFixedPointVolumeRayCastMapper * vtkSmartVolumeMapper::RayCastMapper
protected

Definition at line 339 of file vtkSmartVolumeMapper.h.

vtkVolumeTextureMapper3D* vtkSmartVolumeMapper::TextureMapper
protected

Definition at line 340 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::InitializedBlendMode
protected

Definition at line 346 of file vtkSmartVolumeMapper.h.

float vtkSmartVolumeMapper::SampleDistance
protected

Definition at line 339 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::AutoAdjustSampleDistances
protected

Definition at line 343 of file vtkSmartVolumeMapper.h.

int vtkSmartVolumeMapper::InteractiveAdjustSampleDistances
protected

Definition at line 355 of file vtkSmartVolumeMapper.h.


The documentation for this class was generated from the following file: