vtkVolumeRayCastMapper Class Reference
#include <vtkVolumeRayCastMapper.h>
Inheritance diagram for vtkVolumeRayCastMapper:
[legend]Collaboration diagram for vtkVolumeRayCastMapper:
[legend]List of all members.
Detailed Description
A slow but accurate mapper for rendering volumes.
This is a software ray caster for rendering volumes in vtkImageData.
- See also:
- vtkVolumeMapper
- Created by:
-
- CVS contributions (if > 5%):
-
- CVS logs (CVSweb):
.h (/Rendering/vtkVolumeRayCastMapper
.h)
.cxx (/Rendering/vtkVolumeRayCastMapper
.cxx)
- Examples:
- vtkVolumeRayCastMapper (Examples)
- Tests:
- vtkVolumeRayCastMapper (Tests)
Definition at line 101 of file vtkVolumeRayCastMapper.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 *) |
void | ReleaseGraphicsResources (vtkWindow *) |
float | GetZeroOpacityThreshold (vtkVolume *vol) |
|
virtual void | SetSampleDistance (double) |
virtual double | GetSampleDistance () |
|
virtual void | SetVolumeRayCastFunction (vtkVolumeRayCastFunction *) |
virtual vtkVolumeRayCastFunction * | GetVolumeRayCastFunction () |
|
virtual void | SetGradientEstimator (vtkEncodedGradientEstimator *gradest) |
virtual vtkEncodedGradientEstimator * | GetGradientEstimator () |
|
virtual vtkEncodedGradientShader * | GetGradientShader () |
|
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) |
virtual 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 |
vtkVolumeRayCastMapper * | New () |
int | IsTypeOf (const char *type) |
vtkVolumeRayCastMapper * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkVolumeRayCastMapper () |
| ~vtkVolumeRayCastMapper () |
virtual void | ReportReferences (vtkGarbageCollector *) |
virtual void | RemoveReferences () |
void | UpdateShadingTables (vtkRenderer *ren, vtkVolume *vol) |
void | ComputeMatrices (vtkImageData *data, vtkVolume *vol) |
virtual void | RenderTexture (vtkVolume *vol, vtkRenderer *ren)=0 |
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 |
vtkVolumeRayCastFunction * | VolumeRayCastFunction |
vtkEncodedGradientEstimator * | GradientEstimator |
vtkEncodedGradientShader * | GradientShader |
double | SampleDistance |
double | ImageSampleDistance |
double | MinimumImageSampleDistance |
double | MaximumImageSampleDistance |
int | AutoAdjustSampleDistances |
double | WorldSampleDistance |
int | ScalarDataType |
void * | ScalarDataPointer |
vtkMultiThreader * | Threader |
int | NumberOfThreads |
vtkMatrix4x4 * | PerspectiveMatrix |
vtkMatrix4x4 * | ViewToWorldMatrix |
vtkMatrix4x4 * | ViewToVoxelsMatrix |
vtkMatrix4x4 * | VoxelsToViewMatrix |
vtkMatrix4x4 * | WorldToVoxelsMatrix |
vtkMatrix4x4 * | VoxelsToWorldMatrix |
vtkMatrix4x4 * | VolumeMatrix |
vtkTransform * | PerspectiveTransform |
vtkTransform * | VoxelsTransform |
vtkTransform * | VoxelsToViewTransform |
int | ImageViewportSize [2] |
int | ImageMemorySize [2] |
int | ImageInUseSize [2] |
int | ImageOrigin [2] |
unsigned char * | Image |
int * | RowBounds |
int * | OldRowBounds |
float * | RenderTimeTable |
vtkVolume ** | RenderVolumeTable |
vtkRenderer ** | RenderRendererTable |
int | RenderTableSize |
int | RenderTableEntries |
int | IntermixIntersectingGeometry |
float * | ZBuffer |
int | ZBufferSize [2] |
int | ZBufferOrigin [2] |
float | MinimumViewDistance |
Friends |
VTK_THREAD_RETURN_TYPE | VolumeRayCastMapper_CastRays (void *arg) |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkVolumeRayCastMapper::vtkVolumeRayCastMapper |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkVolumeRayCastMapper::GetClassName |
( |
|
) |
[virtual] |
|
int vtkVolumeRayCastMapper::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
virtual int vtkVolumeRayCastMapper::IsA |
( |
const char * |
type |
) |
[virtual] |
|
void vtkVolumeRayCastMapper::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
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. |
virtual double vtkVolumeRayCastMapper::GetSampleDistance |
( |
|
) |
[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. |
|
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 |
virtual void vtkVolumeRayCastMapper::SetImageSampleDistance |
( |
double |
|
) |
[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. |
virtual double vtkVolumeRayCastMapper::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. |
virtual void vtkVolumeRayCastMapper::SetMinimumImageSampleDistance |
( |
double |
|
) |
[virtual] |
|
|
This is the minimum image sample distance allow when the image sample distance is being automatically adjusted |
virtual double vtkVolumeRayCastMapper::GetMinimumImageSampleDistance |
( |
|
) |
[virtual] |
|
|
This is the minimum image sample distance allow when the image sample distance is being automatically adjusted |
virtual void vtkVolumeRayCastMapper::SetMaximumImageSampleDistance |
( |
double |
|
) |
[virtual] |
|
|
This is the maximum image sample distance allow when the image sample distance is being automatically adjusted |
virtual double vtkVolumeRayCastMapper::GetMaximumImageSampleDistance |
( |
|
) |
[virtual] |
|
|
This is the maximum image sample distance allow when the image sample distance is being automatically adjusted |
virtual void vtkVolumeRayCastMapper::SetAutoAdjustSampleDistances |
( |
int |
|
) |
[virtual] |
|
|
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). |
virtual int vtkVolumeRayCastMapper::GetAutoAdjustSampleDistances |
( |
|
) |
[virtual] |
|
|
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). |
virtual void vtkVolumeRayCastMapper::AutoAdjustSampleDistancesOn |
( |
|
) |
[virtual] |
|
|
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). |
virtual void vtkVolumeRayCastMapper::AutoAdjustSampleDistancesOff |
( |
|
) |
[virtual] |
|
|
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). |
void vtkVolumeRayCastMapper::SetNumberOfThreads |
( |
int |
num |
) |
|
|
|
Set/Get the number of threads to use. This by default is equal to the number of available processors detected. |
virtual int vtkVolumeRayCastMapper::GetNumberOfThreads |
( |
|
) |
[virtual] |
|
|
Set/Get the number of threads to use. This by default is equal to the number of available processors detected. |
virtual void vtkVolumeRayCastMapper::SetIntermixIntersectingGeometry |
( |
int |
|
) |
[virtual] |
|
|
If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays. |
virtual int vtkVolumeRayCastMapper::GetIntermixIntersectingGeometry |
( |
|
) |
[virtual] |
|
|
If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays. |
virtual void vtkVolumeRayCastMapper::IntermixIntersectingGeometryOn |
( |
|
) |
[virtual] |
|
|
If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays. |
virtual void vtkVolumeRayCastMapper::IntermixIntersectingGeometryOff |
( |
|
) |
[virtual] |
|
|
If IntermixIntersectingGeometry is turned on, the zbuffer will be captured and used to limit the traversal of the rays. |
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.
Implements vtkVolumeMapper. |
void vtkVolumeRayCastMapper::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. |
float vtkVolumeRayCastMapper::GetZeroOpacityThreshold |
( |
vtkVolume * |
vol |
) |
|
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Return the scalar value below which all opacities are zero |
virtual float vtkVolumeRayCastMapper::GetGradientMagnitudeScale |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume
Reimplemented from vtkAbstractVolumeMapper. |
virtual float vtkVolumeRayCastMapper::GetGradientMagnitudeBias |
( |
|
) |
[virtual] |
|
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Values needed by the volume
Reimplemented from vtkAbstractVolumeMapper. |
virtual float vtkVolumeRayCastMapper::GetGradientMagnitudeScale |
( |
int |
|
) |
[inline, virtual] |
|
virtual float vtkVolumeRayCastMapper::GetGradientMagnitudeBias |
( |
int |
|
) |
[inline, virtual] |
|
virtual void vtkVolumeRayCastMapper::ReportReferences |
( |
vtkGarbageCollector * |
|
) |
[protected, virtual] |
|
virtual void vtkVolumeRayCastMapper::RemoveReferences |
( |
|
) |
[protected, virtual] |
|
virtual void vtkVolumeRayCastMapper::RenderTexture |
( |
vtkVolume * |
vol, |
|
|
vtkRenderer * |
ren |
|
) |
[protected, pure virtual] |
|
void vtkVolumeRayCastMapper::StoreRenderTime |
( |
vtkRenderer * |
ren, |
|
|
vtkVolume * |
vol, |
|
|
float |
t |
|
) |
[protected] |
|
double vtkVolumeRayCastMapper::GetZBufferValue |
( |
int |
x, |
|
|
int |
y |
|
) |
[protected] |
|
Friends And Related Function Documentation
VTK_THREAD_RETURN_TYPE VolumeRayCastMapper_CastRays |
( |
void * |
arg |
) |
[friend] |
|
Member Data Documentation
The documentation for this class was generated from the following file: