vtkUnstructuredGridLinearRayIntegrator Class Reference

#include <vtkUnstructuredGridLinearRayIntegrator.h>

Inheritance diagram for vtkUnstructuredGridLinearRayIntegrator:

Inheritance graph
[legend]
Collaboration diagram for vtkUnstructuredGridLinearRayIntegrator:

Collaboration graph
[legend]

List of all members.


Detailed Description

performs piecewise linear ray integration.

vtkUnstructuredGridLinearRayIntegrator performs piecewise linear ray integration. Considering that transfer functions in VTK are piecewise linear, this class should give the "correct" integration under most circumstances. However, the computations performed are fairly hefty and should, for the most part, only be used as a benchmark for other, faster methods.

See also:
vtkUnstructuredGridPartialPreIntegration
Tests:
vtkUnstructuredGridLinearRayIntegrator (Tests)

Definition at line 53 of file vtkUnstructuredGridLinearRayIntegrator.h.


Public Types

typedef
vtkUnstructuredGridVolumeRayIntegrator 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void Initialize (vtkVolume *volume, vtkDataArray *scalars)
virtual void Integrate (vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkUnstructuredGridLinearRayIntegrator
SafeDownCast (vtkObject *o)
static
vtkUnstructuredGridLinearRayIntegrator
New ()
static void IntegrateRay (double length, double intensity_front, double attenuation_front, double intensity_back, double attenuation_back, float color[4])
static void IntegrateRay (double length, const double color_front[3], double attenuation_front, const double color_back[3], double attenuation_back, float color[4])
static float Psi (float length, float attenuation_front, float attenuation_back)

Protected Member Functions

 vtkUnstructuredGridLinearRayIntegrator ()
 ~vtkUnstructuredGridLinearRayIntegrator ()

Protected Attributes

vtkVolumePropertyProperty
vtkLinearRayIntegratorTransferFunction * TransferFunctions
vtkTimeStamp TransferFunctionsModified
int NumIndependentComponents

Member Typedef Documentation


Constructor & Destructor Documentation

vtkUnstructuredGridLinearRayIntegrator::vtkUnstructuredGridLinearRayIntegrator (  )  [protected]

vtkUnstructuredGridLinearRayIntegrator::~vtkUnstructuredGridLinearRayIntegrator (  )  [protected]


Member Function Documentation

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

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

virtual int vtkUnstructuredGridLinearRayIntegrator::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 vtkUnstructuredGridVolumeRayIntegrator.

static vtkUnstructuredGridLinearRayIntegrator* vtkUnstructuredGridLinearRayIntegrator::SafeDownCast ( vtkObject o  )  [static]

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

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

Reimplemented from vtkObject.

virtual void vtkUnstructuredGridLinearRayIntegrator::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 vtkUnstructuredGridVolumeRayIntegrator.

virtual void vtkUnstructuredGridLinearRayIntegrator::Initialize ( vtkVolume volume,
vtkDataArray scalars 
) [virtual]

Set up the integrator with the given properties and scalars.

Implements vtkUnstructuredGridVolumeRayIntegrator.

virtual void vtkUnstructuredGridLinearRayIntegrator::Integrate ( vtkDoubleArray intersectionLengths,
vtkDataArray nearIntersections,
vtkDataArray farIntersections,
float  color[4] 
) [virtual]

Given a set of intersections (defined by the three arrays), compute the peicewise integration of the array in front to back order. /c intersectionLengths holds the lengths of each peicewise segment. /c nearIntersections and /c farIntersections hold the scalar values at the front and back of each segment. /c color should contain the RGBA value of the volume in front of the segments passed in, and the result will be placed back into /c color.

Implements vtkUnstructuredGridVolumeRayIntegrator.

static void vtkUnstructuredGridLinearRayIntegrator::IntegrateRay ( double  length,
double  intensity_front,
double  attenuation_front,
double  intensity_back,
double  attenuation_back,
float  color[4] 
) [static]

Integrates a single ray segment. color is blended with the result (with color in front). The result is written back into color.

static void vtkUnstructuredGridLinearRayIntegrator::IntegrateRay ( double  length,
const double  color_front[3],
double  attenuation_front,
const double  color_back[3],
double  attenuation_back,
float  color[4] 
) [static]

Integrates a single ray segment. color is blended with the result (with color in front). The result is written back into color.

static float vtkUnstructuredGridLinearRayIntegrator::Psi ( float  length,
float  attenuation_front,
float  attenuation_back 
) [static]

Computes Psi (as defined by Moreland and Angel, "A Fast High Accuracy Volume Renderer for Unstructured Data").


Member Data Documentation

Definition at line 94 of file vtkUnstructuredGridLinearRayIntegrator.h.

vtkLinearRayIntegratorTransferFunction* vtkUnstructuredGridLinearRayIntegrator::TransferFunctions [protected]

Definition at line 96 of file vtkUnstructuredGridLinearRayIntegrator.h.

Definition at line 97 of file vtkUnstructuredGridLinearRayIntegrator.h.

Definition at line 98 of file vtkUnstructuredGridLinearRayIntegrator.h.


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

Generated on Mon Sep 27 18:58:36 2010 for VTK by  doxygen 1.5.6