VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkVolumeRayCastMapper Class Reference

A slow but accurate mapper for rendering volumes. More...

#include <vtkVolumeRayCastMapper.h>

Inheritance diagram for vtkVolumeRayCastMapper:
Inheritance graph
[legend]
Collaboration diagram for vtkVolumeRayCastMapper:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkVolumeMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkVolumeRayCastMapperNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void Render (vtkRenderer *, vtkVolume *)
void ReleaseGraphicsResources (vtkWindow *)
float GetZeroOpacityThreshold (vtkVolume *vol)
virtual void SetSampleDistance (double)
virtual double GetSampleDistance ()
virtual void SetVolumeRayCastFunction (vtkVolumeRayCastFunction *)
virtual vtkVolumeRayCastFunctionGetVolumeRayCastFunction ()
virtual void SetGradientEstimator (vtkEncodedGradientEstimator *gradest)
virtual
vtkEncodedGradientEstimator
GetGradientEstimator ()
virtual vtkEncodedGradientShaderGetGradientShader ()
virtual void SetImageSampleDistance (double)
virtual double GetImageSampleDistance ()
virtual void SetMinimumImageSampleDistance (double)
virtual double GetMinimumImageSampleDistance ()
virtual void SetMaximumImageSampleDistance (double)
virtual double GetMaximumImageSampleDistance ()
virtual void SetAutoAdjustSampleDistances (int)
virtual int GetAutoAdjustSampleDistances ()
virtual void AutoAdjustSampleDistancesOn ()
virtual void AutoAdjustSampleDistancesOff ()
void SetNumberOfThreads (int num)
int GetNumberOfThreads ()
virtual void SetIntermixIntersectingGeometry (int)
virtual int GetIntermixIntersectingGeometry ()
virtual void IntermixIntersectingGeometryOn ()
virtual void IntermixIntersectingGeometryOff ()
virtual float GetGradientMagnitudeScale ()
virtual float GetGradientMagnitudeBias ()
virtual float GetGradientMagnitudeScale (int)
virtual float GetGradientMagnitudeBias (int)

Static Public Member Functions

static vtkVolumeRayCastMapperNew ()
static int IsTypeOf (const char *type)
static vtkVolumeRayCastMapperSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkVolumeRayCastMapper ()
 ~vtkVolumeRayCastMapper ()
virtual void ReportReferences (vtkGarbageCollector *)
void UpdateShadingTables (vtkRenderer *ren, vtkVolume *vol)
void ComputeMatrices (vtkImageData *data, vtkVolume *vol)
int ComputeRowBounds (vtkVolume *vol, vtkRenderer *ren)
void StoreRenderTime (vtkRenderer *ren, vtkVolume *vol, float t)
float RetrieveRenderTime (vtkRenderer *ren, vtkVolume *vol)
int ClipRayAgainstVolume (vtkVolumeRayCastDynamicInfo *dynamicInfo, float bounds[6])
void InitializeClippingPlanes (vtkVolumeRayCastStaticInfo *staticInfo, vtkPlaneCollection *planes)
int ClipRayAgainstClippingPlanes (vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)
double GetZBufferValue (int x, int y)

Protected Attributes

vtkVolumeRayCastFunctionVolumeRayCastFunction
vtkEncodedGradientEstimatorGradientEstimator
vtkEncodedGradientShaderGradientShader
vtkRayCastImageDisplayHelperImageDisplayHelper
double SampleDistance
double ImageSampleDistance
double MinimumImageSampleDistance
double MaximumImageSampleDistance
int AutoAdjustSampleDistances
double WorldSampleDistance
int ScalarDataType
void * ScalarDataPointer
vtkMultiThreaderThreader
vtkMatrix4x4PerspectiveMatrix
vtkMatrix4x4ViewToWorldMatrix
vtkMatrix4x4ViewToVoxelsMatrix
vtkMatrix4x4VoxelsToViewMatrix
vtkMatrix4x4WorldToVoxelsMatrix
vtkMatrix4x4VoxelsToWorldMatrix
vtkMatrix4x4VolumeMatrix
vtkTransformPerspectiveTransform
vtkTransformVoxelsTransform
vtkTransformVoxelsToViewTransform
int ImageViewportSize [2]
int ImageMemorySize [2]
int ImageInUseSize [2]
int ImageOrigin [2]
unsigned char * Image
intRowBounds
intOldRowBounds
floatRenderTimeTable
vtkVolume ** RenderVolumeTable
vtkRenderer ** RenderRendererTable
int RenderTableSize
int RenderTableEntries
int IntermixIntersectingGeometry
floatZBuffer
int ZBufferSize [2]
int ZBufferOrigin [2]
float MinimumViewDistance

Friends

VTK_THREAD_RETURN_TYPE VolumeRayCastMapper_CastRays (void *arg)

Detailed Description

A slow but accurate mapper for rendering volumes.

This is a software ray caster for rendering volumes in vtkImageData.

See also:
vtkVolumeMapper
Examples:
vtkVolumeRayCastMapper (Examples)
Tests:
vtkVolumeRayCastMapper (Tests)

Definition at line 67 of file vtkVolumeRayCastMapper.h.


Member Typedef Documentation

Reimplemented from vtkVolumeMapper.

Definition at line 71 of file vtkVolumeRayCastMapper.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkAlgorithm.

static int vtkVolumeRayCastMapper::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 vtkVolumeRayCastMapper::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.

Reimplemented from vtkVolumeMapper.

virtual vtkObjectBase* vtkVolumeRayCastMapper::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkVolumeMapper.

Reimplemented from vtkVolumeMapper.

void vtkVolumeRayCastMapper::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 vtkVolumeRayCastMapper::SetSampleDistance ( double  ) [virtual]

Set/Get the distance between samples. This variable is only used for sampling ray casting methods. Methods that compute a ray value by stepping cell-by-cell are not affected by this value.

Set/Get the distance between samples. This variable is only used for sampling ray casting methods. Methods that compute a ray value by stepping cell-by-cell are not affected by this value.

Get / Set the volume ray cast function. This is used to process values found along the ray to compute a final pixel value.

Get / Set the volume ray cast function. This is used to process values found along the ray to compute a final pixel value.

Set / Get the gradient estimator used to estimate normals

Set / Get the gradient estimator used to estimate normals

Get the gradient shader.

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.

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 is the minimum image sample distance allow when the image sample distance is being automatically adjusted

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

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

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

If AutoAdjustSampleDistances is on, the 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).

If AutoAdjustSampleDistances is on, the 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).

If AutoAdjustSampleDistances is on, the 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).

If AutoAdjustSampleDistances is on, the 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).

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

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

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

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

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

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

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

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

Implements vtkVolumeMapper.

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.

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Return the scalar value below which all opacities are zero

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume

Reimplemented from vtkAbstractVolumeMapper.

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume

Reimplemented from vtkAbstractVolumeMapper.

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume

Reimplemented from vtkAbstractVolumeMapper.

Definition at line 166 of file vtkVolumeRayCastMapper.h.

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume

Reimplemented from vtkAbstractVolumeMapper.

Definition at line 168 of file vtkVolumeRayCastMapper.h.

virtual void vtkVolumeRayCastMapper::ReportReferences ( vtkGarbageCollector ) [protected, virtual]

Reimplemented from vtkAlgorithm.

void vtkVolumeRayCastMapper::UpdateShadingTables ( vtkRenderer ren,
vtkVolume vol 
) [protected]
void vtkVolumeRayCastMapper::ComputeMatrices ( vtkImageData data,
vtkVolume vol 
) [protected]
void vtkVolumeRayCastMapper::StoreRenderTime ( vtkRenderer ren,
vtkVolume vol,
float  t 
) [protected]

Friends And Related Function Documentation


Member Data Documentation

Definition at line 178 of file vtkVolumeRayCastMapper.h.

Definition at line 179 of file vtkVolumeRayCastMapper.h.

Definition at line 180 of file vtkVolumeRayCastMapper.h.

Definition at line 181 of file vtkVolumeRayCastMapper.h.

Definition at line 186 of file vtkVolumeRayCastMapper.h.

Definition at line 187 of file vtkVolumeRayCastMapper.h.

Definition at line 188 of file vtkVolumeRayCastMapper.h.

Definition at line 189 of file vtkVolumeRayCastMapper.h.

Definition at line 190 of file vtkVolumeRayCastMapper.h.

Definition at line 192 of file vtkVolumeRayCastMapper.h.

Definition at line 193 of file vtkVolumeRayCastMapper.h.

Definition at line 194 of file vtkVolumeRayCastMapper.h.

Definition at line 204 of file vtkVolumeRayCastMapper.h.

Definition at line 206 of file vtkVolumeRayCastMapper.h.

Definition at line 207 of file vtkVolumeRayCastMapper.h.

Definition at line 208 of file vtkVolumeRayCastMapper.h.

Definition at line 209 of file vtkVolumeRayCastMapper.h.

Definition at line 210 of file vtkVolumeRayCastMapper.h.

Definition at line 211 of file vtkVolumeRayCastMapper.h.

Definition at line 213 of file vtkVolumeRayCastMapper.h.

Definition at line 215 of file vtkVolumeRayCastMapper.h.

Definition at line 216 of file vtkVolumeRayCastMapper.h.

Definition at line 217 of file vtkVolumeRayCastMapper.h.

Definition at line 220 of file vtkVolumeRayCastMapper.h.

Definition at line 226 of file vtkVolumeRayCastMapper.h.

Definition at line 232 of file vtkVolumeRayCastMapper.h.

Definition at line 236 of file vtkVolumeRayCastMapper.h.

unsigned char* vtkVolumeRayCastMapper::Image [protected]

Definition at line 239 of file vtkVolumeRayCastMapper.h.

Definition at line 241 of file vtkVolumeRayCastMapper.h.

Definition at line 242 of file vtkVolumeRayCastMapper.h.

Definition at line 244 of file vtkVolumeRayCastMapper.h.

Definition at line 245 of file vtkVolumeRayCastMapper.h.

Definition at line 246 of file vtkVolumeRayCastMapper.h.

Definition at line 247 of file vtkVolumeRayCastMapper.h.

Definition at line 248 of file vtkVolumeRayCastMapper.h.

Definition at line 253 of file vtkVolumeRayCastMapper.h.

Definition at line 255 of file vtkVolumeRayCastMapper.h.

Definition at line 256 of file vtkVolumeRayCastMapper.h.

Definition at line 257 of file vtkVolumeRayCastMapper.h.

Definition at line 259 of file vtkVolumeRayCastMapper.h.


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