vtkFixedPointVolumeRayCastMapper Class Reference

#include <vtkFixedPointVolumeRayCastMapper.h>

Inheritance diagram for vtkFixedPointVolumeRayCastMapper:

Inheritance graph
[legend]
Collaboration diagram for vtkFixedPointVolumeRayCastMapper:

Collaboration graph
[legend]

List of all members.


Detailed Description

A fixed point mapper for volumes.

This is a software ray caster for rendering volumes in vtkImageData. It works with all input data types and up to four components. It performs composite or MIP rendering, and can be intermixed with geometric data. Space leaping is used to speed up the rendering process. In addition, calculation are performed in 15 bit fixed point precision. This mapper is threaded, and will interleave scan lines across processors.

This mapper is a good replacement for vtkVolumeRayCastMapper EXCEPT:

The vtkVolumeRayCastMapper CANNOT be used in these instances when a vtkFixedPointVolumeRayCastMapper can be used:

This mapper handles all data type from unsigned char through double. However, some of the internal calcultions are performed in float and therefore even the full float range may cause problems for this mapper (both in scalar data values and in spacing between samples).

Space leaping is performed by creating a sub-sampled volume. 4x4x4 cells in the original volume are represented by a min, max, and combined gradient and flag value. The min max volume has three unsigned shorts per 4x4x4 group of cells from the original volume - one reprenting the minumum scalar index (the scalar value adjusted to fit in the 15 bit range), the maximum scalar index, and a third unsigned short which is both the maximum gradient opacity in the neighborhood (an unsigned char) and the flag that is filled in for the current lookup tables to indicate whether this region can be skipped.

See also:
vtkVolumeMapper
Events:
vtkCommand::VolumeMapperRenderEndEvent vtkCommand::VolumeMapperComputeGradientsEndEvent vtkCommand::VolumeMapperComputeGradientsProgressEvent vtkCommand::VolumeMapperComputeGradientsStartEvent vtkCommand::VolumeMapperRenderStartEvent
Tests:
vtkFixedPointVolumeRayCastMapper (Tests)

Definition at line 99 of file vtkFixedPointVolumeRayCastMapper.h.


Public Types

typedef vtkVolumeMapper Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void Render (vtkRenderer *, vtkVolume *)
unsigned int ToFixedPointPosition (float val)
void ToFixedPointPosition (float in[3], unsigned int out[3])
unsigned int ToFixedPointDirection (float dir)
void ToFixedPointDirection (float in[3], unsigned int out[3])
void FixedPointIncrement (unsigned int position[3], unsigned int increment[3])
void GetFloatTripleFromPointer (float v[3], float *ptr)
void GetUIntTripleFromPointer (unsigned int v[3], unsigned int *ptr)
void ShiftVectorDown (unsigned int in[3], unsigned int out[3])
int CheckMinMaxVolumeFlag (unsigned int pos[3], int c)
int CheckMIPMinMaxVolumeFlag (unsigned int pos[3], int c, unsigned short maxIdx, int flip)
void LookupColorUC (unsigned short *colorTable, unsigned short *scalarOpacityTable, unsigned short index, unsigned char color[4])
void LookupDependentColorUC (unsigned short *colorTable, unsigned short *scalarOpacityTable, unsigned short index[4], int components, unsigned char color[4])
void LookupAndCombineIndependentColorsUC (unsigned short *colorTable[4], unsigned short *scalarOpacityTable[4], unsigned short index[4], float weights[4], int components, unsigned char color[4])
int CheckIfCropped (unsigned int pos[3])
virtual vtkRenderWindowGetRenderWindow ()
virtual
vtkFixedPointVolumeRayCastMIPHelper
GetMIPHelper ()
virtual
vtkFixedPointVolumeRayCastCompositeHelper
GetCompositeHelper ()
virtual
vtkFixedPointVolumeRayCastCompositeGOHelper
GetCompositeGOHelper ()
virtual
vtkFixedPointVolumeRayCastCompositeGOShadeHelper
GetCompositeGOShadeHelper ()
virtual
vtkFixedPointVolumeRayCastCompositeShadeHelper
GetCompositeShadeHelper ()
virtual float * GetTableShift ()
virtual void GetTableShift (float data[4])
virtual float * GetTableScale ()
virtual void GetTableScale (float data[4])
virtual int GetShadingRequired ()
virtual int GetGradientOpacityRequired ()
virtual vtkDataArrayGetCurrentScalars ()
virtual vtkDataArrayGetPreviousScalars ()
int * GetRowBounds ()
unsigned short * GetColorTable (int c)
unsigned short * GetScalarOpacityTable (int c)
unsigned short * GetGradientOpacityTable (int c)
vtkVolumeGetVolume ()
unsigned short ** GetGradientNormal ()
unsigned char ** GetGradientMagnitude ()
unsigned short * GetDiffuseShadingTable (int c)
unsigned short * GetSpecularShadingTable (int c)
void ComputeRayInfo (int x, int y, unsigned int pos[3], unsigned int dir[3], unsigned int *numSteps)
void InitializeRayInfo (vtkVolume *vol)
int ShouldUseNearestNeighborInterpolation (vtkVolume *vol)
int PerImageInitialization (vtkRenderer *, vtkVolume *, int, double *, double *, int *)
void PerVolumeInitialization (vtkRenderer *, vtkVolume *)
void PerSubVolumeInitialization (vtkRenderer *, vtkVolume *, int)
void RenderSubVolume ()
void DisplayRenderedImage (vtkRenderer *, vtkVolume *)
void AbortRender ()
void CreateCanonicalView (vtkVolume *volume, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
virtual int GetFlipMIPComparison ()
virtual void SetSampleDistance (float)
virtual float GetSampleDistance ()
virtual void SetInteractiveSampleDistance (float)
virtual float GetInteractiveSampleDistance ()
virtual void SetImageSampleDistance (float)
virtual float GetImageSampleDistance ()
virtual void SetMinimumImageSampleDistance (float)
virtual float GetMinimumImageSampleDistance ()
virtual void SetMaximumImageSampleDistance (float)
virtual float GetMaximumImageSampleDistance ()
virtual void SetAutoAdjustSampleDistances (int)
virtual int GetAutoAdjustSampleDistances ()
virtual void AutoAdjustSampleDistancesOn ()
virtual void AutoAdjustSampleDistancesOff ()
virtual void SetLockSampleDistanceToInputSpacing (int)
virtual int GetLockSampleDistanceToInputSpacing ()
virtual void LockSampleDistanceToInputSpacingOn ()
virtual void LockSampleDistanceToInputSpacingOff ()
void SetNumberOfThreads (int num)
int GetNumberOfThreads ()
virtual void SetIntermixIntersectingGeometry (int)
virtual int GetIntermixIntersectingGeometry ()
virtual void IntermixIntersectingGeometryOn ()
virtual void IntermixIntersectingGeometryOff ()
float ComputeRequiredImageSampleDistance (float desiredTime, vtkRenderer *ren)
float ComputeRequiredImageSampleDistance (float desiredTime, vtkRenderer *ren, vtkVolume *vol)
void SetRayCastImage (vtkFixedPointRayCastImage *)
virtual vtkFixedPointRayCastImageGetRayCastImage ()
float GetEstimatedRenderTime (vtkRenderer *ren, vtkVolume *vol)
float GetEstimatedRenderTime (vtkRenderer *ren)
virtual void SetFinalColorWindow (float)
virtual float GetFinalColorWindow ()
virtual void SetFinalColorLevel (float)
virtual float GetFinalColorLevel ()

Static Public Member Functions

static
vtkFixedPointVolumeRayCastMapper
New ()
static int IsTypeOf (const char *type)
static
vtkFixedPointVolumeRayCastMapper
SafeDownCast (vtkObject *o)

Protected Member Functions

 vtkFixedPointVolumeRayCastMapper ()
 ~vtkFixedPointVolumeRayCastMapper ()
void ComputeMatrices (double volumeOrigin[3], double volumeSpacing[3], int volumeExtent[6], vtkRenderer *ren, vtkVolume *vol)
int ComputeRowBounds (vtkRenderer *ren, int imageFlag, int rowBoundsFlag, int volumeExtent[6])
void CaptureZBuffer (vtkRenderer *ren)
void StoreRenderTime (vtkRenderer *ren, vtkVolume *vol, float t)
float RetrieveRenderTime (vtkRenderer *ren, vtkVolume *vol)
float RetrieveRenderTime (vtkRenderer *ren)
int ClipRayAgainstVolume (float rayStart[3], float rayEnd[3], float rayDirection[3], double bounds[6])
int UpdateColorTable (vtkVolume *vol)
int UpdateGradients (vtkVolume *vol)
int UpdateShadingTable (vtkRenderer *ren, vtkVolume *vol)
void UpdateCroppingRegions ()
void ComputeGradients (vtkVolume *vol)
int ClipRayAgainstClippingPlanes (float rayStart[3], float rayEnd[3], int numClippingPlanes, float *clippingPlanes)
float GetZBufferValue (int x, int y)
void UpdateMinMaxVolume (vtkVolume *vol)
void FillInMaxGradientMagnitudes (int fullDim[3], int smallDim[3])
void ApplyFinalColorWindowLevel ()

Protected Attributes

vtkRayCastImageDisplayHelperImageDisplayHelper
float SampleDistance
float InteractiveSampleDistance
float ImageSampleDistance
float MinimumImageSampleDistance
float MaximumImageSampleDistance
int AutoAdjustSampleDistances
int LockSampleDistanceToInputSpacing
float OldSampleDistance
float OldImageSampleDistance
vtkMultiThreaderThreader
vtkMatrix4x4PerspectiveMatrix
vtkMatrix4x4ViewToWorldMatrix
vtkMatrix4x4ViewToVoxelsMatrix
vtkMatrix4x4VoxelsToViewMatrix
vtkMatrix4x4WorldToVoxelsMatrix
vtkMatrix4x4VoxelsToWorldMatrix
vtkMatrix4x4VolumeMatrix
vtkTransformPerspectiveTransform
vtkTransformVoxelsTransform
vtkTransformVoxelsToViewTransform
vtkFixedPointRayCastImageRayCastImage
int * RowBounds
int * OldRowBounds
float * RenderTimeTable
vtkVolume ** RenderVolumeTable
vtkRenderer ** RenderRendererTable
int RenderTableSize
int RenderTableEntries
int IntermixIntersectingGeometry
float MinimumViewDistance
vtkColorTransferFunctionSavedRGBFunction [4]
vtkPiecewiseFunctionSavedGrayFunction [4]
vtkPiecewiseFunctionSavedScalarOpacityFunction [4]
vtkPiecewiseFunctionSavedGradientOpacityFunction [4]
int SavedColorChannels [4]
float SavedScalarOpacityDistance [4]
int SavedBlendMode
vtkImageDataSavedParametersInput
vtkTimeStamp SavedParametersMTime
vtkImageDataSavedGradientsInput
vtkTimeStamp SavedGradientsMTime
float SavedSampleDistance
unsigned short ColorTable [4][32768 *3]
unsigned short ScalarOpacityTable [4][32768]
unsigned short GradientOpacityTable [4][256]
int TableSize [4]
float TableScale [4]
float TableShift [4]
float GradientMagnitudeScale [4]
float GradientMagnitudeShift [4]
unsigned short ** GradientNormal
unsigned char ** GradientMagnitude
unsigned short * ContiguousGradientNormal
unsigned char * ContiguousGradientMagnitude
int NumberOfGradientSlices
vtkDirectionEncoderDirectionEncoder
vtkEncodedGradientShaderGradientShader
vtkFiniteDifferenceGradientEstimatorGradientEstimator
unsigned short DiffuseShadingTable [4][65536 *3]
unsigned short SpecularShadingTable [4][65536 *3]
int ShadingRequired
int GradientOpacityRequired
vtkDataArrayCurrentScalars
vtkDataArrayPreviousScalars
vtkRenderWindowRenderWindow
vtkVolumeVolume
unsigned int FixedPointCroppingRegionPlanes [6]
unsigned int CroppingRegionMask [27]
vtkFixedPointVolumeRayCastMIPHelperMIPHelper
vtkFixedPointVolumeRayCastCompositeHelperCompositeHelper
vtkFixedPointVolumeRayCastCompositeGOHelperCompositeGOHelper
vtkFixedPointVolumeRayCastCompositeShadeHelperCompositeShadeHelper
vtkFixedPointVolumeRayCastCompositeGOShadeHelperCompositeGOShadeHelper
float ViewToVoxelsArray [16]
float WorldToVoxelsArray [16]
float VoxelsToWorldArray [16]
double CroppingBounds [6]
int NumTransformedClippingPlanes
float * TransformedClippingPlanes
double SavedSpacing [3]
unsigned short * MinMaxVolume
int MinMaxVolumeSize [4]
vtkImageDataSavedMinMaxInput
vtkTimeStamp SavedMinMaxBuildTime
vtkTimeStamp SavedMinMaxGradientTime
vtkTimeStamp SavedMinMaxFlagTime
float FinalColorWindow
float FinalColorLevel
int FlipMIPComparison

Friends

VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays (void *arg)
VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType (void *arg)

Member Typedef Documentation

Reimplemented from vtkVolumeMapper.

Definition at line 103 of file vtkFixedPointVolumeRayCastMapper.h.


Constructor & Destructor Documentation

vtkFixedPointVolumeRayCastMapper::vtkFixedPointVolumeRayCastMapper (  )  [protected]

vtkFixedPointVolumeRayCastMapper::~vtkFixedPointVolumeRayCastMapper (  )  [protected]


Member Function Documentation

static vtkFixedPointVolumeRayCastMapper* vtkFixedPointVolumeRayCastMapper::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

virtual const char* vtkFixedPointVolumeRayCastMapper::GetClassName (  )  [virtual]

Reimplemented from vtkVolumeMapper.

static int vtkFixedPointVolumeRayCastMapper::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type 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.

virtual int vtkFixedPointVolumeRayCastMapper::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 vtkFixedPointVolumeRayCastMapper* vtkFixedPointVolumeRayCastMapper::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkVolumeMapper.

void vtkFixedPointVolumeRayCastMapper::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 vtkFixedPointVolumeRayCastMapper::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.

virtual float vtkFixedPointVolumeRayCastMapper::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.

virtual void vtkFixedPointVolumeRayCastMapper::SetInteractiveSampleDistance ( float   )  [virtual]

Set/Get the distance between samples when interactive rendering is happening. In this case, interactive is defined as this volume mapper having less than 1 second allocated for rendering. When AutoAdjustSampleDistance is On, and the allocated render time is less than 1 second, then this InteractiveSampleDistance will be used instead of the SampleDistance above.

virtual float vtkFixedPointVolumeRayCastMapper::GetInteractiveSampleDistance (  )  [virtual]

Set/Get the distance between samples when interactive rendering is happening. In this case, interactive is defined as this volume mapper having less than 1 second allocated for rendering. When AutoAdjustSampleDistance is On, and the allocated render time is less than 1 second, then this InteractiveSampleDistance will be used instead of the SampleDistance above.

virtual void vtkFixedPointVolumeRayCastMapper::SetImageSampleDistance ( float   )  [virtual]

Sampling distance in the XY image dimensions. Default value of 1 meaning 1 ray cast per pixel. If set to 0.5, 4 rays will be cast per pixel. If set to 2.0, 1 ray will be cast for every 4 (2 by 2) pixels. This value will be adjusted to meet a desired frame rate when AutoAdjustSampleDistances is on.

virtual float vtkFixedPointVolumeRayCastMapper::GetImageSampleDistance (  )  [virtual]

Sampling distance in the XY image dimensions. Default value of 1 meaning 1 ray cast per pixel. If set to 0.5, 4 rays will be cast per pixel. If set to 2.0, 1 ray will be cast for every 4 (2 by 2) pixels. This value will be adjusted to meet a desired frame rate when AutoAdjustSampleDistances is on.

virtual void vtkFixedPointVolumeRayCastMapper::SetMinimumImageSampleDistance ( float   )  [virtual]

This is the minimum image sample distance allow when the image sample distance is being automatically adjusted.

virtual float vtkFixedPointVolumeRayCastMapper::GetMinimumImageSampleDistance (  )  [virtual]

This is the minimum image sample distance allow when the image sample distance is being automatically adjusted.

virtual void vtkFixedPointVolumeRayCastMapper::SetMaximumImageSampleDistance ( float   )  [virtual]

This is the maximum image sample distance allow when the image sample distance is being automatically adjusted.

virtual float vtkFixedPointVolumeRayCastMapper::GetMaximumImageSampleDistance (  )  [virtual]

This is the maximum image sample distance allow when the image sample distance is being automatically adjusted.

virtual void vtkFixedPointVolumeRayCastMapper::SetAutoAdjustSampleDistances ( int   )  [virtual]

If AutoAdjustSampleDistances is on, the the ImageSampleDistance and the SampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). If this is an interactive render (more than 1 frame per second) the SampleDistance will be increased, otherwise it will not be altered (a binary decision, as opposed to the ImageSampleDistance which will vary continuously).

virtual int vtkFixedPointVolumeRayCastMapper::GetAutoAdjustSampleDistances (  )  [virtual]

If AutoAdjustSampleDistances is on, the the ImageSampleDistance and the SampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). If this is an interactive render (more than 1 frame per second) the SampleDistance will be increased, otherwise it will not be altered (a binary decision, as opposed to the ImageSampleDistance which will vary continuously).

virtual void vtkFixedPointVolumeRayCastMapper::AutoAdjustSampleDistancesOn (  )  [virtual]

If AutoAdjustSampleDistances is on, the the ImageSampleDistance and the SampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). If this is an interactive render (more than 1 frame per second) the SampleDistance will be increased, otherwise it will not be altered (a binary decision, as opposed to the ImageSampleDistance which will vary continuously).

virtual void vtkFixedPointVolumeRayCastMapper::AutoAdjustSampleDistancesOff (  )  [virtual]

If AutoAdjustSampleDistances is on, the the ImageSampleDistance and the SampleDistance will be varied to achieve the allocated render time of this prop (controlled by the desired update rate and any culling in use). If this is an interactive render (more than 1 frame per second) the SampleDistance will be increased, otherwise it will not be altered (a binary decision, as opposed to the ImageSampleDistance which will vary continuously).

virtual void vtkFixedPointVolumeRayCastMapper::SetLockSampleDistanceToInputSpacing ( int   )  [virtual]

Automatically compute the sample distance from the data spacing. When the number of voxels is 8, the sample distance will be roughly 1/200 the average voxel size. The distance will grow proportionally to numVoxels^(1/3) until it reaches 1/2 average voxel size when number of voxels is 1E6. Note that ScalarOpacityUnitDistance is still taken into account and if different than 1, will effect the sample distance.

virtual int vtkFixedPointVolumeRayCastMapper::GetLockSampleDistanceToInputSpacing (  )  [virtual]

Automatically compute the sample distance from the data spacing. When the number of voxels is 8, the sample distance will be roughly 1/200 the average voxel size. The distance will grow proportionally to numVoxels^(1/3) until it reaches 1/2 average voxel size when number of voxels is 1E6. Note that ScalarOpacityUnitDistance is still taken into account and if different than 1, will effect the sample distance.

virtual void vtkFixedPointVolumeRayCastMapper::LockSampleDistanceToInputSpacingOn (  )  [virtual]

Automatically compute the sample distance from the data spacing. When the number of voxels is 8, the sample distance will be roughly 1/200 the average voxel size. The distance will grow proportionally to numVoxels^(1/3) until it reaches 1/2 average voxel size when number of voxels is 1E6. Note that ScalarOpacityUnitDistance is still taken into account and if different than 1, will effect the sample distance.

virtual void vtkFixedPointVolumeRayCastMapper::LockSampleDistanceToInputSpacingOff (  )  [virtual]

Automatically compute the sample distance from the data spacing. When the number of voxels is 8, the sample distance will be roughly 1/200 the average voxel size. The distance will grow proportionally to numVoxels^(1/3) until it reaches 1/2 average voxel size when number of voxels is 1E6. Note that ScalarOpacityUnitDistance is still taken into account and if different than 1, will effect the sample distance.

void vtkFixedPointVolumeRayCastMapper::SetNumberOfThreads ( int  num  ) 

Set/Get the number of threads to use. This by default is equal to the number of available processors detected.

int vtkFixedPointVolumeRayCastMapper::GetNumberOfThreads (  ) 

Set/Get the number of threads to use. This by default is equal to the number of available processors detected.

virtual void vtkFixedPointVolumeRayCastMapper::SetIntermixIntersectingGeometry ( int   )  [virtual]

If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays.

virtual int vtkFixedPointVolumeRayCastMapper::GetIntermixIntersectingGeometry (  )  [virtual]

If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays.

virtual void vtkFixedPointVolumeRayCastMapper::IntermixIntersectingGeometryOn (  )  [virtual]

If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays.

virtual void vtkFixedPointVolumeRayCastMapper::IntermixIntersectingGeometryOff (  )  [virtual]

If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays.

float vtkFixedPointVolumeRayCastMapper::ComputeRequiredImageSampleDistance ( float  desiredTime,
vtkRenderer ren 
)

What is the image sample distance required to achieve the desired time? A version of this method is provided that does not require the volume argument since if you are using an LODProp3D you may not know this information. If you use this version you must be certain that the ray cast mapper is only used for one volume (and not shared among multiple volumes)

float vtkFixedPointVolumeRayCastMapper::ComputeRequiredImageSampleDistance ( float  desiredTime,
vtkRenderer ren,
vtkVolume vol 
)

What is the image sample distance required to achieve the desired time? A version of this method is provided that does not require the volume argument since if you are using an LODProp3D you may not know this information. If you use this version you must be certain that the ray cast mapper is only used for one volume (and not shared among multiple volumes)

void vtkFixedPointVolumeRayCastMapper::Render ( vtkRenderer ,
vtkVolume  
) [virtual]

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

Implements vtkVolumeMapper.

unsigned int vtkFixedPointVolumeRayCastMapper::ToFixedPointPosition ( float  val  )  [inline]

Definition at line 524 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::ToFixedPointPosition ( float  in[3],
unsigned int  out[3] 
) [inline]

Definition at line 529 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned int vtkFixedPointVolumeRayCastMapper::ToFixedPointDirection ( float  dir  )  [inline]

Definition at line 536 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::ToFixedPointDirection ( float  in[3],
unsigned int  out[3] 
) [inline]

Definition at line 543 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::FixedPointIncrement ( unsigned int  position[3],
unsigned int  increment[3] 
) [inline]

Definition at line 559 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::GetFloatTripleFromPointer ( float  v[3],
float *  ptr 
) [inline]

Definition at line 588 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::GetUIntTripleFromPointer ( unsigned int  v[3],
unsigned int *  ptr 
) [inline]

Definition at line 595 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::ShiftVectorDown ( unsigned int  in[3],
unsigned int  out[3] 
) [inline]

Definition at line 602 of file vtkFixedPointVolumeRayCastMapper.h.

int vtkFixedPointVolumeRayCastMapper::CheckMinMaxVolumeFlag ( unsigned int  pos[3],
int  c 
) [inline]

Definition at line 610 of file vtkFixedPointVolumeRayCastMapper.h.

int vtkFixedPointVolumeRayCastMapper::CheckMIPMinMaxVolumeFlag ( unsigned int  pos[3],
int  c,
unsigned short  maxIdx,
int  flip 
) [inline]

Definition at line 622 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::LookupColorUC ( unsigned short *  colorTable,
unsigned short *  scalarOpacityTable,
unsigned short  index,
unsigned char  color[4] 
) [inline]

Definition at line 649 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::LookupDependentColorUC ( unsigned short *  colorTable,
unsigned short *  scalarOpacityTable,
unsigned short  index[4],
int  components,
unsigned char  color[4] 
) [inline]

Definition at line 664 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::LookupAndCombineIndependentColorsUC ( unsigned short *  colorTable[4],
unsigned short *  scalarOpacityTable[4],
unsigned short  index[4],
float  weights[4],
int  components,
unsigned char  color[4] 
) [inline]

Definition at line 694 of file vtkFixedPointVolumeRayCastMapper.h.

int vtkFixedPointVolumeRayCastMapper::CheckIfCropped ( unsigned int  pos[3]  )  [inline]

Definition at line 719 of file vtkFixedPointVolumeRayCastMapper.h.

virtual vtkRenderWindow* vtkFixedPointVolumeRayCastMapper::GetRenderWindow (  )  [virtual]

virtual vtkFixedPointVolumeRayCastMIPHelper* vtkFixedPointVolumeRayCastMapper::GetMIPHelper (  )  [virtual]

virtual vtkFixedPointVolumeRayCastCompositeHelper* vtkFixedPointVolumeRayCastMapper::GetCompositeHelper (  )  [virtual]

virtual vtkFixedPointVolumeRayCastCompositeGOHelper* vtkFixedPointVolumeRayCastMapper::GetCompositeGOHelper (  )  [virtual]

virtual vtkFixedPointVolumeRayCastCompositeGOShadeHelper* vtkFixedPointVolumeRayCastMapper::GetCompositeGOShadeHelper (  )  [virtual]

virtual vtkFixedPointVolumeRayCastCompositeShadeHelper* vtkFixedPointVolumeRayCastMapper::GetCompositeShadeHelper (  )  [virtual]

virtual float* vtkFixedPointVolumeRayCastMapper::GetTableShift (  )  [virtual]

virtual void vtkFixedPointVolumeRayCastMapper::GetTableShift ( float  data[4]  )  [virtual]

virtual float* vtkFixedPointVolumeRayCastMapper::GetTableScale (  )  [virtual]

virtual void vtkFixedPointVolumeRayCastMapper::GetTableScale ( float  data[4]  )  [virtual]

virtual int vtkFixedPointVolumeRayCastMapper::GetShadingRequired (  )  [virtual]

virtual int vtkFixedPointVolumeRayCastMapper::GetGradientOpacityRequired (  )  [virtual]

virtual vtkDataArray* vtkFixedPointVolumeRayCastMapper::GetCurrentScalars (  )  [virtual]

virtual vtkDataArray* vtkFixedPointVolumeRayCastMapper::GetPreviousScalars (  )  [virtual]

int* vtkFixedPointVolumeRayCastMapper::GetRowBounds (  )  [inline]

Definition at line 255 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short* vtkFixedPointVolumeRayCastMapper::GetColorTable ( int  c  )  [inline]

Definition at line 256 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short* vtkFixedPointVolumeRayCastMapper::GetScalarOpacityTable ( int  c  )  [inline]

Definition at line 257 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short* vtkFixedPointVolumeRayCastMapper::GetGradientOpacityTable ( int  c  )  [inline]

Definition at line 258 of file vtkFixedPointVolumeRayCastMapper.h.

vtkVolume* vtkFixedPointVolumeRayCastMapper::GetVolume (  )  [inline]

Definition at line 259 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short** vtkFixedPointVolumeRayCastMapper::GetGradientNormal (  )  [inline]

Definition at line 260 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned char** vtkFixedPointVolumeRayCastMapper::GetGradientMagnitude (  )  [inline]

Definition at line 261 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short* vtkFixedPointVolumeRayCastMapper::GetDiffuseShadingTable ( int  c  )  [inline]

Definition at line 262 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short* vtkFixedPointVolumeRayCastMapper::GetSpecularShadingTable ( int  c  )  [inline]

Definition at line 263 of file vtkFixedPointVolumeRayCastMapper.h.

void vtkFixedPointVolumeRayCastMapper::ComputeRayInfo ( int  x,
int  y,
unsigned int  pos[3],
unsigned int  dir[3],
unsigned int *  numSteps 
)

void vtkFixedPointVolumeRayCastMapper::InitializeRayInfo ( vtkVolume vol  ) 

int vtkFixedPointVolumeRayCastMapper::ShouldUseNearestNeighborInterpolation ( vtkVolume vol  ) 

void vtkFixedPointVolumeRayCastMapper::SetRayCastImage ( vtkFixedPointRayCastImage  ) 

Set / Get the underlying image object. One will be automatically created - only need to set it when using from an AMR mapper which renders multiple times into the same image.

virtual vtkFixedPointRayCastImage* vtkFixedPointVolumeRayCastMapper::GetRayCastImage (  )  [virtual]

Set / Get the underlying image object. One will be automatically created - only need to set it when using from an AMR mapper which renders multiple times into the same image.

int vtkFixedPointVolumeRayCastMapper::PerImageInitialization ( vtkRenderer ,
vtkVolume ,
int  ,
double *  ,
double *  ,
int *   
)

void vtkFixedPointVolumeRayCastMapper::PerVolumeInitialization ( vtkRenderer ,
vtkVolume  
)

void vtkFixedPointVolumeRayCastMapper::PerSubVolumeInitialization ( vtkRenderer ,
vtkVolume ,
int   
)

void vtkFixedPointVolumeRayCastMapper::RenderSubVolume (  ) 

void vtkFixedPointVolumeRayCastMapper::DisplayRenderedImage ( vtkRenderer ,
vtkVolume  
)

void vtkFixedPointVolumeRayCastMapper::AbortRender (  ) 

void vtkFixedPointVolumeRayCastMapper::CreateCanonicalView ( vtkVolume volume,
vtkImageData image,
int  blend_mode,
double  viewDirection[3],
double  viewUp[3] 
)

float vtkFixedPointVolumeRayCastMapper::GetEstimatedRenderTime ( vtkRenderer ren,
vtkVolume vol 
) [inline]

Get an estimate of the rendering time for a given volume / renderer. Only valid if this mapper has been used to render that volume for that renderer previously. Estimate is good when the viewing parameters have not changed much since that last render.

Definition at line 301 of file vtkFixedPointVolumeRayCastMapper.h.

float vtkFixedPointVolumeRayCastMapper::GetEstimatedRenderTime ( vtkRenderer ren  )  [inline]

Get an estimate of the rendering time for a given volume / renderer. Only valid if this mapper has been used to render that volume for that renderer previously. Estimate is good when the viewing parameters have not changed much since that last render.

Definition at line 304 of file vtkFixedPointVolumeRayCastMapper.h.

virtual void vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow ( float   )  [virtual]

Set/Get the window / level applied to the final color. This allows brightness / contrast adjustments on the final image. window is the width of the window. level is the center of the window. Initial window value is 1.0 Initial level value is 0.5 window cannot be null but can be negative, this way values will be reversed. |window| can be larger than 1.0 level can be any real value.

virtual float vtkFixedPointVolumeRayCastMapper::GetFinalColorWindow (  )  [virtual]

Set/Get the window / level applied to the final color. This allows brightness / contrast adjustments on the final image. window is the width of the window. level is the center of the window. Initial window value is 1.0 Initial level value is 0.5 window cannot be null but can be negative, this way values will be reversed. |window| can be larger than 1.0 level can be any real value.

virtual void vtkFixedPointVolumeRayCastMapper::SetFinalColorLevel ( float   )  [virtual]

Set/Get the window / level applied to the final color. This allows brightness / contrast adjustments on the final image. window is the width of the window. level is the center of the window. Initial window value is 1.0 Initial level value is 0.5 window cannot be null but can be negative, this way values will be reversed. |window| can be larger than 1.0 level can be any real value.

virtual float vtkFixedPointVolumeRayCastMapper::GetFinalColorLevel (  )  [virtual]

Set/Get the window / level applied to the final color. This allows brightness / contrast adjustments on the final image. window is the width of the window. level is the center of the window. Initial window value is 1.0 Initial level value is 0.5 window cannot be null but can be negative, this way values will be reversed. |window| can be larger than 1.0 level can be any real value.

virtual int vtkFixedPointVolumeRayCastMapper::GetFlipMIPComparison (  )  [virtual]

void vtkFixedPointVolumeRayCastMapper::ComputeMatrices ( double  volumeOrigin[3],
double  volumeSpacing[3],
int  volumeExtent[6],
vtkRenderer ren,
vtkVolume vol 
) [protected]

int vtkFixedPointVolumeRayCastMapper::ComputeRowBounds ( vtkRenderer ren,
int  imageFlag,
int  rowBoundsFlag,
int  volumeExtent[6] 
) [protected]

void vtkFixedPointVolumeRayCastMapper::CaptureZBuffer ( vtkRenderer ren  )  [protected]

void vtkFixedPointVolumeRayCastMapper::StoreRenderTime ( vtkRenderer ren,
vtkVolume vol,
float  t 
) [protected]

float vtkFixedPointVolumeRayCastMapper::RetrieveRenderTime ( vtkRenderer ren,
vtkVolume vol 
) [protected]

float vtkFixedPointVolumeRayCastMapper::RetrieveRenderTime ( vtkRenderer ren  )  [protected]

int vtkFixedPointVolumeRayCastMapper::ClipRayAgainstVolume ( float  rayStart[3],
float  rayEnd[3],
float  rayDirection[3],
double  bounds[6] 
) [protected]

int vtkFixedPointVolumeRayCastMapper::UpdateColorTable ( vtkVolume vol  )  [protected]

int vtkFixedPointVolumeRayCastMapper::UpdateGradients ( vtkVolume vol  )  [protected]

int vtkFixedPointVolumeRayCastMapper::UpdateShadingTable ( vtkRenderer ren,
vtkVolume vol 
) [protected]

void vtkFixedPointVolumeRayCastMapper::UpdateCroppingRegions (  )  [protected]

void vtkFixedPointVolumeRayCastMapper::ComputeGradients ( vtkVolume vol  )  [protected]

int vtkFixedPointVolumeRayCastMapper::ClipRayAgainstClippingPlanes ( float  rayStart[3],
float  rayEnd[3],
int  numClippingPlanes,
float *  clippingPlanes 
) [protected]

float vtkFixedPointVolumeRayCastMapper::GetZBufferValue ( int  x,
int  y 
) [protected]

void vtkFixedPointVolumeRayCastMapper::UpdateMinMaxVolume ( vtkVolume vol  )  [protected]

void vtkFixedPointVolumeRayCastMapper::FillInMaxGradientMagnitudes ( int  fullDim[3],
int  smallDim[3] 
) [protected]

void vtkFixedPointVolumeRayCastMapper::ApplyFinalColorWindowLevel (  )  [protected]


Friends And Related Function Documentation

VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays ( void *  arg  )  [friend]

VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType ( void *  arg  )  [friend]


Member Data Documentation

Definition at line 333 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 336 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 337 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 340 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 341 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 342 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 343 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 344 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 347 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 348 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 367 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 369 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 370 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 371 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 372 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 373 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 374 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 376 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 378 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 379 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 380 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 383 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 385 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 386 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 388 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 389 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 390 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 391 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 392 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 398 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 400 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 402 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 403 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 404 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 405 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 406 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 407 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 408 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 409 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 410 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 412 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 413 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 415 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short vtkFixedPointVolumeRayCastMapper::ColorTable[4][32768 *3] [protected]

Definition at line 418 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short vtkFixedPointVolumeRayCastMapper::ScalarOpacityTable[4][32768] [protected]

Definition at line 419 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short vtkFixedPointVolumeRayCastMapper::GradientOpacityTable[4][256] [protected]

Definition at line 420 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 421 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 422 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 423 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 425 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 426 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 428 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 429 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 430 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 431 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 433 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 435 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 437 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 439 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short vtkFixedPointVolumeRayCastMapper::DiffuseShadingTable[4][65536 *3] [protected]

Definition at line 441 of file vtkFixedPointVolumeRayCastMapper.h.

unsigned short vtkFixedPointVolumeRayCastMapper::SpecularShadingTable[4][65536 *3] [protected]

Definition at line 442 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 444 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 445 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 447 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 448 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 450 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 451 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 471 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 472 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 479 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 480 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 481 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 482 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 483 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 486 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 487 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 488 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 490 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 492 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 493 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 495 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 499 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 500 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 501 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 502 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 503 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 504 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 510 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 511 of file vtkFixedPointVolumeRayCastMapper.h.

Definition at line 513 of file vtkFixedPointVolumeRayCastMapper.h.


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

Generated on Mon Sep 27 18:24:19 2010 for VTK by  doxygen 1.5.6