Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

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
Created by:
  • Moreland, Kenneth
CVS contributions (if > 5%):
  • Moreland, Kenneth (97%)
CVS logs (CVSweb):
  • .h (/Rendering/vtkUnstructuredGridLinearRayIntegrator.h)
  • .cxx (/Rendering/vtkUnstructuredGridLinearRayIntegrator.cxx)
Tests:
vtkUnstructuredGridLinearRayIntegrator (Tests)

Definition at line 62 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 (vtkVolumeProperty *property, vtkDataArray *scalars)
virtual void Integrate (vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])

Static Public Member Functions

int IsTypeOf (const char *type)
vtkUnstructuredGridLinearRayIntegratorSafeDownCast (vtkObject *o)
vtkUnstructuredGridLinearRayIntegratorNew ()
void IntegrateRay (double length, double intensity_front, double attenuation_front, double intensity_back, double attenuation_back, float color[4])
void IntegrateRay (double length, const double color_front[3], double attenuation_front, const double color_back[3], double attenuation_back, float color[4])
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

typedef vtkUnstructuredGridVolumeRayIntegrator vtkUnstructuredGridLinearRayIntegrator::Superclass
 

Reimplemented from vtkUnstructuredGridVolumeRayIntegrator.

Definition at line 66 of file vtkUnstructuredGridLinearRayIntegrator.h.


Constructor & Destructor Documentation

vtkUnstructuredGridLinearRayIntegrator::vtkUnstructuredGridLinearRayIntegrator  )  [protected]
 

vtkUnstructuredGridLinearRayIntegrator::~vtkUnstructuredGridLinearRayIntegrator  )  [protected]
 


Member Function Documentation

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

Reimplemented from vtkUnstructuredGridVolumeRayIntegrator.

int vtkUnstructuredGridLinearRayIntegrator::IsTypeOf const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUnstructuredGridVolumeRayIntegrator.

virtual int vtkUnstructuredGridLinearRayIntegrator::IsA const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUnstructuredGridVolumeRayIntegrator.

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

Reimplemented from vtkUnstructuredGridVolumeRayIntegrator.

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 vtkVolumeProperty property,
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.

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.

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.

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

vtkVolumeProperty* vtkUnstructuredGridLinearRayIntegrator::Property [protected]
 

Definition at line 103 of file vtkUnstructuredGridLinearRayIntegrator.h.

vtkLinearRayIntegratorTransferFunction* vtkUnstructuredGridLinearRayIntegrator::TransferFunctions [protected]
 

Definition at line 105 of file vtkUnstructuredGridLinearRayIntegrator.h.

vtkTimeStamp vtkUnstructuredGridLinearRayIntegrator::TransferFunctionsModified [protected]
 

Definition at line 106 of file vtkUnstructuredGridLinearRayIntegrator.h.

int vtkUnstructuredGridLinearRayIntegrator::NumIndependentComponents [protected]
 

Definition at line 107 of file vtkUnstructuredGridLinearRayIntegrator.h.


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