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

Builds the space leaping data structure. More...

#include <vtkVolumeRayCastSpaceLeapingImageFilter.h>

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

Public Types

typedef vtkThreadedImageAlgorithm Superclass
 
- Public Types inherited from vtkThreadedImageAlgorithm
typedef vtkImageAlgorithm Superclass
 
- Public Types inherited from vtkImageAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int GetNumberOfIndependentComponents ()
 
unsigned short * GetMinMaxVolume (int dims[4])
 
virtual void SetCache (vtkImageData *imageCache)
 
unsigned long ComputeOffset (int ext[6], int wholeExt[6], int nComponents)
 
virtual void SetCurrentScalars (vtkDataArray *)
 
virtual vtkDataArrayGetCurrentScalars ()
 
virtual void SetIndependentComponents (int)
 
virtual int GetIndependentComponents ()
 
virtual void SetComputeGradientOpacity (int)
 
virtual int GetComputeGradientOpacity ()
 
virtual void ComputeGradientOpacityOn ()
 
virtual void ComputeGradientOpacityOff ()
 
virtual void SetComputeMinMax (int)
 
virtual int GetComputeMinMax ()
 
virtual void ComputeMinMaxOn ()
 
virtual void ComputeMinMaxOff ()
 
virtual void SetUpdateGradientOpacityFlags (int)
 
virtual int GetUpdateGradientOpacityFlags ()
 
virtual void UpdateGradientOpacityFlagsOn ()
 
virtual void UpdateGradientOpacityFlagsOff ()
 
unsigned long GetLastMinMaxBuildTime ()
 
unsigned long GetLastMinMaxFlagTime ()
 
virtual void SetTableShift (float, float, float, float)
 
virtual void SetTableShift (float[4])
 
virtual float * GetTableShift ()
 
virtual void GetTableShift (float &, float &, float &, float &)
 
virtual void GetTableShift (float[4])
 
virtual void SetTableScale (float, float, float, float)
 
virtual void SetTableScale (float[4])
 
virtual float * GetTableScale ()
 
virtual void GetTableScale (float &, float &, float &, float &)
 
virtual void GetTableScale (float[4])
 
virtual void SetTableSize (int, int, int, int)
 
virtual void SetTableSize (int[4])
 
virtual int * GetTableSize ()
 
virtual void GetTableSize (int &, int &, int &, int &)
 
virtual void GetTableSize (int[4])
 
unsigned short * GetMinNonZeroScalarIndex ()
 
unsigned char * GetMinNonZeroGradientMagnitudeIndex ()
 
void SetGradientMagnitude (unsigned char **gradientMagnitude)
 
unsigned char ** GetGradientMagnitude ()
 
void SetScalarOpacityTable (int c, unsigned short *t)
 
void SetGradientOpacityTable (int c, unsigned short *t)
 
- Public Member Functions inherited from vtkThreadedImageAlgorithm
virtual void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
 
virtual void SetNumberOfThreads (int)
 
virtual int GetNumberOfThreads ()
 
virtual int SplitExtent (int splitExt[6], int startExt[6], int num, int total)
 
- Public Member Functions inherited from vtkImageAlgorithm
vtkDataObjectGetInput (int port)
 
vtkDataObjectGetInput ()
 
vtkImageDataGetImageDataInput (int port)
 
vtkImageDataGetOutput ()
 
vtkImageDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInput (vtkDataObject *)
 
void SetInput (int, vtkDataObject *)
 
virtual void AddInput (vtkDataObject *)
 
virtual void AddInput (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
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)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
virtual void Update ()
 
virtual void UpdateInformation ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
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)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
 
virtual void DebugOff ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
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)
 
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 &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static
vtkVolumeRayCastSpaceLeapingImageFilter
SafeDownCast (vtkObject *o)
 
static
vtkVolumeRayCastSpaceLeapingImageFilter
New ()
 
static void ComputeInputExtentsForOutput (int inExt[6], unsigned int inDim[3], int outExt[6], vtkImageData *inData)
 
- Static Public Member Functions inherited from vtkThreadedImageAlgorithm
static int IsTypeOf (const char *type)
 
static vtkThreadedImageAlgorithmSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkImageAlgorithm
static int IsTypeOf (const char *type)
 
static vtkImageAlgorithmSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObject *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyPRESERVES_DATASET ()
 
static vtkInformationIntegerKeyPRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKeyPRESERVES_BOUNDS ()
 
static vtkInformationIntegerKeyPRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKeyPRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKeyPRESERVES_RANGES ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *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

 vtkVolumeRayCastSpaceLeapingImageFilter ()
 
 ~vtkVolumeRayCastSpaceLeapingImageFilter ()
 
void InternalRequestUpdateExtent (int *, int *)
 
void ComputeFirstNonZeroOpacityIndices ()
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id)
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void FillScalarOpacityFlags (vtkImageData *minMaxVolume, int outExt[6])
 
void FillScalarAndGradientOpacityFlags (vtkImageData *minMaxVolume, int outExt[6])
 
virtual void AllocateOutputData (vtkImageData *out, int *uExtent)
 
virtual vtkImageDataAllocateOutputData (vtkDataObject *out)
 
- Protected Member Functions inherited from vtkThreadedImageAlgorithm
 vtkThreadedImageAlgorithm ()
 
 ~vtkThreadedImageAlgorithm ()
 
- Protected Member Functions inherited from vtkImageAlgorithm
 vtkImageAlgorithm ()
 
 ~vtkImageAlgorithm ()
 
virtual void CopyInputArrayAttributesToOutput (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual void CopyAttributeData (vtkImageData *in, vtkImageData *out, vtkInformationVector **inputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual void ExecuteData (vtkDataObject *output)
 
virtual void Execute ()
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
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)
 
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 &os)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int IndependentComponents
 
vtkTimeStamp LastMinMaxBuildTime
 
vtkTimeStamp LastMinMaxFlagTime
 
vtkDataArrayCurrentScalars
 
float TableShift [4]
 
float TableScale [4]
 
int TableSize [4]
 
int ComputeGradientOpacity
 
int ComputeMinMax
 
int UpdateGradientOpacityFlags
 
unsigned short * MinNonZeroScalarIndex
 
unsigned char * MinNonZeroGradientMagnitudeIndex
 
unsigned char ** GradientMagnitude
 
unsigned short * ScalarOpacityTable [4]
 
unsigned short * GradientOpacityTable [4]
 
vtkImageDataCache
 
- Protected Attributes inherited from vtkThreadedImageAlgorithm
vtkMultiThreaderThreader
 
int NumberOfThreads
 

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
 
- Friends inherited from vtkObject

Detailed Description

Builds the space leaping data structure.

This is an optimized multi-threaded imaging filter that builds the space leaping datastructure, used by vtkFixedPointVolumeRayCastMapper. Empty space leaping is used to skip large empty regions in the scalar opacity and/or the gradient opacity transfer functions. Depending on the various options set by vtkFixedPointVolumeRayCastMapper, the class will internally invoke one of the many optmized routines to compute the min/max/gradient-max values within a fixed block size, trying to compute everything in a single multi-threaded pass through the data

The block size may be changed at compile time. Its ifdef'ed to 4 in the CXX file.

Definition at line 38 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

Member Typedef Documentation

Definition at line 41 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

Constructor & Destructor Documentation

vtkVolumeRayCastSpaceLeapingImageFilter::vtkVolumeRayCastSpaceLeapingImageFilter ( )
protected
vtkVolumeRayCastSpaceLeapingImageFilter::~vtkVolumeRayCastSpaceLeapingImageFilter ( )
protected

Member Function Documentation

virtual const char* vtkVolumeRayCastSpaceLeapingImageFilter::GetClassName ( )
virtual

Reimplemented from vtkThreadedImageAlgorithm.

static int vtkVolumeRayCastSpaceLeapingImageFilter::IsTypeOf ( const char *  type)
static
virtual int vtkVolumeRayCastSpaceLeapingImageFilter::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 vtkThreadedImageAlgorithm.

static vtkVolumeRayCastSpaceLeapingImageFilter* vtkVolumeRayCastSpaceLeapingImageFilter::SafeDownCast ( vtkObject o)
static
void vtkVolumeRayCastSpaceLeapingImageFilter::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 vtkThreadedImageAlgorithm.

static vtkVolumeRayCastSpaceLeapingImageFilter* vtkVolumeRayCastSpaceLeapingImageFilter::New ( )
static
virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetCurrentScalars ( vtkDataArray )
virtual

Set the scalars.

virtual vtkDataArray* vtkVolumeRayCastSpaceLeapingImageFilter::GetCurrentScalars ( )
virtual

Set the scalars.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetIndependentComponents ( int  )
virtual

Do we use independent components, or dependent components ?

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::GetIndependentComponents ( )
virtual

Do we use independent components, or dependent components ?

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetComputeGradientOpacity ( int  )
virtual

Compute gradient opacity ?

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::GetComputeGradientOpacity ( )
virtual

Compute gradient opacity ?

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeGradientOpacityOn ( )
virtual

Compute gradient opacity ?

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeGradientOpacityOff ( )
virtual

Compute gradient opacity ?

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetComputeMinMax ( int  )
virtual

Compute the min max structure ?.

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::GetComputeMinMax ( )
virtual

Compute the min max structure ?.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeMinMaxOn ( )
virtual

Compute the min max structure ?.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeMinMaxOff ( )
virtual

Compute the min max structure ?.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetUpdateGradientOpacityFlags ( int  )
virtual

Update the gradient opacity flags. (The scalar opacity flags are always updated upon execution of this filter.)

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::GetUpdateGradientOpacityFlags ( )
virtual

Update the gradient opacity flags. (The scalar opacity flags are always updated upon execution of this filter.)

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::UpdateGradientOpacityFlagsOn ( )
virtual

Update the gradient opacity flags. (The scalar opacity flags are always updated upon execution of this filter.)

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::UpdateGradientOpacityFlagsOff ( )
virtual

Update the gradient opacity flags. (The scalar opacity flags are always updated upon execution of this filter.)

unsigned long vtkVolumeRayCastSpaceLeapingImageFilter::GetLastMinMaxBuildTime ( )
inline

Get the last execution time. This is updated every time the scalars or the gradient opacity values are computed

Definition at line 83 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned long vtkVolumeRayCastSpaceLeapingImageFilter::GetLastMinMaxFlagTime ( )
inline

Get the last execution time. This is updated every time the flags bits are re-computed.

Definition at line 90 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableShift ( float  ,
float  ,
float  ,
float   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableShift ( float  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual float* vtkVolumeRayCastSpaceLeapingImageFilter::GetTableShift ( )
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableShift ( float &  ,
float &  ,
float &  ,
float &   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableShift ( float  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableScale ( float  ,
float  ,
float  ,
float   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableScale ( float  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual float* vtkVolumeRayCastSpaceLeapingImageFilter::GetTableScale ( )
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableScale ( float &  ,
float &  ,
float &  ,
float &   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableScale ( float  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableSize ( int  ,
int  ,
int  ,
int   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetTableSize ( int  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual int* vtkVolumeRayCastSpaceLeapingImageFilter::GetTableSize ( )
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableSize ( int &  ,
int &  ,
int &  ,
int &   
)
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::GetTableSize ( int  [4])
virtual

Is the difference between max and min of the data less than 32768? If so, and if the data is not of float/double type, use a simple offset mapping. If the difference between max and min is 32768 or greater, or the data is of type float or double, we must use an offset / scaling mapping. In this case, the array size will be 32768 - we need to figure out the offset and scale factor.

int vtkVolumeRayCastSpaceLeapingImageFilter::GetNumberOfIndependentComponents ( )

Get the number of independent components for which we need to keep track of min/max

unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::GetMinMaxVolume ( int  dims[4])

Get the raw pointer to the final computed space leaping datastructure. The result is only valid after Update() has been called on the filter. Note that this filter holds onto its memory. The dimensions of the min- max volume are in dims. The 4th value in the array indicates the number of independent components, (also queried via GetNumberOfIndependentComponents())

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::SetCache ( vtkImageData imageCache)
virtual

INTERNAL - Do not use Set the last cached min-max volume, as used by vtkFixedPointVolumeRayCastMapper.

static void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeInputExtentsForOutput ( int  inExt[6],
unsigned int  inDim[3],
int  outExt[6],
vtkImageData inData 
)
static

Compute the extents and dimensions of the input that's required to generate an output min-max structure given by outExt. INTERNAL - Do not use

unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::GetMinNonZeroScalarIndex ( )

Get the first non-zero scalar opacity and gradient opacity indices for each independent copmonent INTERNAL - Do not use.

unsigned char* vtkVolumeRayCastSpaceLeapingImageFilter::GetMinNonZeroGradientMagnitudeIndex ( )

Get the first non-zero scalar opacity and gradient opacity indices for each independent copmonent INTERNAL - Do not use.

void vtkVolumeRayCastSpaceLeapingImageFilter::SetGradientMagnitude ( unsigned char **  gradientMagnitude)

Pointer to the pre-computed gradient magnitude structure. This is pre- computed by the vtkFixedPointVolumeRayCastMapper class. This should be set if one has the ComputeGradientOpacity flag enabled.

unsigned char** vtkVolumeRayCastSpaceLeapingImageFilter::GetGradientMagnitude ( )

Pointer to the pre-computed gradient magnitude structure. This is pre- computed by the vtkFixedPointVolumeRayCastMapper class. This should be set if one has the ComputeGradientOpacity flag enabled.

void vtkVolumeRayCastSpaceLeapingImageFilter::SetScalarOpacityTable ( int  c,
unsigned short *  t 
)

Set the scalar opacity and gradient opacity tables computed for each component by the vtkFixedPointVolumeRayCastMapper

void vtkVolumeRayCastSpaceLeapingImageFilter::SetGradientOpacityTable ( int  c,
unsigned short *  t 
)

Set the scalar opacity and gradient opacity tables computed for each component by the vtkFixedPointVolumeRayCastMapper

unsigned long vtkVolumeRayCastSpaceLeapingImageFilter::ComputeOffset ( int  ext[6],
int  wholeExt[6],
int  nComponents 
)

INTERNAL - Do not use Compute the offset within an image of whole extents wholeExt, to access the data starting at extents ext.

void vtkVolumeRayCastSpaceLeapingImageFilter::InternalRequestUpdateExtent ( int *  ,
int *   
)
protected
virtual int vtkVolumeRayCastSpaceLeapingImageFilter::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

See superclass for details

Reimplemented from vtkImageAlgorithm.

void vtkVolumeRayCastSpaceLeapingImageFilter::ThreadedRequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  outExt[6],
int  id 
)
protectedvirtual

See superclass for details

Reimplemented from vtkThreadedImageAlgorithm.

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

See superclass for details

Reimplemented from vtkThreadedImageAlgorithm.

virtual int vtkVolumeRayCastSpaceLeapingImageFilter::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

See superclass for details

Reimplemented from vtkImageAlgorithm.

void vtkVolumeRayCastSpaceLeapingImageFilter::ComputeFirstNonZeroOpacityIndices ( )
protected

Compute the first non-zero scalar opacity and gradient opacity values that are encountered when marching from the beginning of the transfer function tables.

void vtkVolumeRayCastSpaceLeapingImageFilter::FillScalarOpacityFlags ( vtkImageData minMaxVolume,
int  outExt[6] 
)
protected

Fill the flags after processing the min/max/gradient structure. This optimized version is invoked when only scalar opacity table is needed.

void vtkVolumeRayCastSpaceLeapingImageFilter::FillScalarAndGradientOpacityFlags ( vtkImageData minMaxVolume,
int  outExt[6] 
)
protected

Fill the flags after processing the min/max/gradient structure. This optimized version is invoked when both scalar and gradient opacity tables need to be visited.

virtual void vtkVolumeRayCastSpaceLeapingImageFilter::AllocateOutputData ( vtkImageData out,
int *  uExtent 
)
protectedvirtual

Allocate the output data. If we have a cache with the same metadata as the output we are going to generate, re-use the cache as we may not be updating all data in the min-max structure.

Reimplemented from vtkImageAlgorithm.

virtual vtkImageData* vtkVolumeRayCastSpaceLeapingImageFilter::AllocateOutputData ( vtkDataObject out)
protectedvirtual

Allocate the output data. If we have a cache with the same metadata as the output we are going to generate, re-use the cache as we may not be updating all data in the min-max structure.

Reimplemented from vtkImageAlgorithm.

Member Data Documentation

int vtkVolumeRayCastSpaceLeapingImageFilter::IndependentComponents
protected

Definition at line 172 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

vtkTimeStamp vtkVolumeRayCastSpaceLeapingImageFilter::LastMinMaxBuildTime
protected

Definition at line 173 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

vtkTimeStamp vtkVolumeRayCastSpaceLeapingImageFilter::LastMinMaxFlagTime
protected

Definition at line 174 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

vtkDataArray* vtkVolumeRayCastSpaceLeapingImageFilter::CurrentScalars
protected

Definition at line 175 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

float vtkVolumeRayCastSpaceLeapingImageFilter::TableShift[4]
protected

Definition at line 176 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

float vtkVolumeRayCastSpaceLeapingImageFilter::TableScale[4]
protected

Definition at line 177 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

int vtkVolumeRayCastSpaceLeapingImageFilter::TableSize[4]
protected

Definition at line 178 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

int vtkVolumeRayCastSpaceLeapingImageFilter::ComputeGradientOpacity
protected

Definition at line 179 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

int vtkVolumeRayCastSpaceLeapingImageFilter::ComputeMinMax
protected

Definition at line 180 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

int vtkVolumeRayCastSpaceLeapingImageFilter::UpdateGradientOpacityFlags
protected

Definition at line 181 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::MinNonZeroScalarIndex
protected

Definition at line 182 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned char* vtkVolumeRayCastSpaceLeapingImageFilter::MinNonZeroGradientMagnitudeIndex
protected

Definition at line 183 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned char** vtkVolumeRayCastSpaceLeapingImageFilter::GradientMagnitude
protected

Definition at line 184 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::ScalarOpacityTable[4]
protected

Definition at line 185 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::GradientOpacityTable[4]
protected

Definition at line 186 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.

vtkImageData* vtkVolumeRayCastSpaceLeapingImageFilter::Cache
protected

Definition at line 187 of file vtkVolumeRayCastSpaceLeapingImageFilter.h.


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