performs piecewise linear ray integration.
More...
#include <vtkUnstructuredGridLinearRayIntegrator.h>
List of all members.
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) |
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.
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.
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 |
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
vtkLinearRayIntegratorTransferFunction* vtkUnstructuredGridLinearRayIntegrator::TransferFunctions |
|
protected |
vtkTimeStamp vtkUnstructuredGridLinearRayIntegrator::TransferFunctionsModified |
|
protected |
int vtkUnstructuredGridLinearRayIntegrator::NumIndependentComponents |
|
protected |
The documentation for this class was generated from the following file: