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

vtkProjectedTetrahedraMapper Class Reference

#include <vtkProjectedTetrahedraMapper.h>

Inheritance diagram for vtkProjectedTetrahedraMapper:

Inheritance graph
[legend]
Collaboration diagram for vtkProjectedTetrahedraMapper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Unstructured grid volume renderer.

vtkProjectedTetrahedraMapper is an implementation of the classic Projected Tetrahedra algorithm presented by Shirley and Tuchman in "A Polygonal Approximation to Direct Scalar Volume Rendering" in Computer Graphics, December 1990.

Bug:
This mapper relies highly on the implementation of the OpenGL pipeline. A typically hardware driver has lots of options and some settings can cause this mapper to produce artifacts.
Tests:
vtkProjectedTetrahedraMapper (Tests)

Definition at line 53 of file vtkProjectedTetrahedraMapper.h.

Public Types

typedef vtkUnstructuredGridVolumeMapper Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetVisibilitySort (vtkVisibilitySort *sort)
const char * GetScalarModeAsString ()
virtual void Render (vtkRenderer *renderer, vtkVolume *volume)
virtual void ReleaseGraphicsResources (vtkWindow *window)
virtual vtkVisibilitySortGetVisibilitySort ()
virtual void SetScalarMode (int)
virtual int GetScalarMode ()
void SetScalarModeToDefault ()
void SetScalarModeToUsePointData ()
void SetScalarModeToUseCellData ()
void SetScalarModeToUsePointFieldData ()
void SetScalarModeToUseCellFieldData ()
virtual void SelectScalarArray (int arrayNum)
virtual void SelectScalarArray (const char *arrayName)
virtual char * GetArrayName ()
virtual int GetArrayId ()
virtual int GetArrayAccessMode ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkProjectedTetrahedraMapperSafeDownCast (vtkObject *o)
static vtkProjectedTetrahedraMapperNew ()
static void MapScalarsToColors (vtkDataArray *colors, vtkVolume *volume, vtkDataArray *scalars)

Protected Member Functions

 vtkProjectedTetrahedraMapper ()
 ~vtkProjectedTetrahedraMapper ()
virtual void ProjectTetrahedra (vtkRenderer *renderer, vtkVolume *volume)
virtual void ReportReferences (vtkGarbageCollector *collector)

Protected Attributes

vtkUnsignedCharArrayColors
int UsingCellColors
vtkFloatArrayTransformedPoints
float MaxCellSize
vtkTimeStamp InputAnalyzedTime
vtkTimeStamp OpacityTextureTime
vtkTimeStamp ColorsMappedTime
unsigned int OpacityTexture
vtkVisibilitySortVisibilitySort
int ScalarMode
char * ArrayName
int ArrayId
int ArrayAccessMode
int GaveError
vtkVolumeLastVolume


Member Typedef Documentation

typedef vtkUnstructuredGridVolumeMapper vtkProjectedTetrahedraMapper::Superclass
 

Reimplemented from vtkUnstructuredGridVolumeMapper.

Definition at line 57 of file vtkProjectedTetrahedraMapper.h.


Constructor & Destructor Documentation

vtkProjectedTetrahedraMapper::vtkProjectedTetrahedraMapper  )  [protected]
 

vtkProjectedTetrahedraMapper::~vtkProjectedTetrahedraMapper  )  [protected]
 


Member Function Documentation

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

Reimplemented from vtkUnstructuredGridVolumeMapper.

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

virtual int vtkProjectedTetrahedraMapper::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 vtkUnstructuredGridVolumeMapper.

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

Reimplemented from vtkUnstructuredGridVolumeMapper.

static vtkProjectedTetrahedraMapper* vtkProjectedTetrahedraMapper::New  )  [static]
 

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

Reimplemented from vtkAlgorithm.

virtual void vtkProjectedTetrahedraMapper::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 vtkUnstructuredGridVolumeMapper.

virtual void vtkProjectedTetrahedraMapper::SetVisibilitySort vtkVisibilitySort sort  )  [virtual]
 

virtual vtkVisibilitySort* vtkProjectedTetrahedraMapper::GetVisibilitySort  )  [virtual]
 

virtual void vtkProjectedTetrahedraMapper::SetScalarMode int   )  [virtual]
 

Control how the filter works with scalar point data and cell attribute data. By default (ScalarModeToDefault), the filter will use point data, and if no point data is available, then cell data is used. Alternatively you can explicitly set the filter to use point data (ScalarModeToUsePointData) or cell data (ScalarModeToUseCellData). You can also choose to get the scalars from an array in point field data (ScalarModeToUsePointFieldData) or cell field data (ScalarModeToUseCellFieldData). If scalars are coming from a field data array, you must call SelectColorArray before you call GetColors.

virtual int vtkProjectedTetrahedraMapper::GetScalarMode  )  [virtual]
 

void vtkProjectedTetrahedraMapper::SetScalarModeToDefault  )  [inline]
 

Definition at line 77 of file vtkProjectedTetrahedraMapper.h.

References VTK_SCALAR_MODE_DEFAULT.

void vtkProjectedTetrahedraMapper::SetScalarModeToUsePointData  )  [inline]
 

Definition at line 79 of file vtkProjectedTetrahedraMapper.h.

References VTK_SCALAR_MODE_USE_POINT_DATA.

void vtkProjectedTetrahedraMapper::SetScalarModeToUseCellData  )  [inline]
 

Definition at line 81 of file vtkProjectedTetrahedraMapper.h.

References VTK_SCALAR_MODE_USE_CELL_DATA.

void vtkProjectedTetrahedraMapper::SetScalarModeToUsePointFieldData  )  [inline]
 

Definition at line 83 of file vtkProjectedTetrahedraMapper.h.

References VTK_SCALAR_MODE_USE_POINT_FIELD_DATA.

void vtkProjectedTetrahedraMapper::SetScalarModeToUseCellFieldData  )  [inline]
 

Definition at line 85 of file vtkProjectedTetrahedraMapper.h.

References VTK_SCALAR_MODE_USE_CELL_FIELD_DATA.

virtual void vtkProjectedTetrahedraMapper::SelectScalarArray int  arrayNum  )  [virtual]
 

When ScalarMode is set to UsePointFileData or UseCellFieldData, you can specify which array to use for coloring using these methods. The transfer function in the vtkVolumeProperty (attached to the calling vtkVolume) will decide how to convert vectors to colors.

virtual void vtkProjectedTetrahedraMapper::SelectScalarArray const char *  arrayName  )  [virtual]
 

When ScalarMode is set to UsePointFileData or UseCellFieldData, you can specify which array to use for coloring using these methods. The transfer function in the vtkVolumeProperty (attached to the calling vtkVolume) will decide how to convert vectors to colors.

virtual char* vtkProjectedTetrahedraMapper::GetArrayName  )  [inline, virtual]
 

Get the array name or number and component to color by.

Definition at line 100 of file vtkProjectedTetrahedraMapper.h.

virtual int vtkProjectedTetrahedraMapper::GetArrayId  )  [inline, virtual]
 

Get the array name or number and component to color by.

Definition at line 101 of file vtkProjectedTetrahedraMapper.h.

virtual int vtkProjectedTetrahedraMapper::GetArrayAccessMode  )  [inline, virtual]
 

Get the array name or number and component to color by.

Definition at line 102 of file vtkProjectedTetrahedraMapper.h.

const char* vtkProjectedTetrahedraMapper::GetScalarModeAsString  ) 
 

Return the method for obtaining scalar data.

virtual void vtkProjectedTetrahedraMapper::Render vtkRenderer renderer,
vtkVolume volume
[virtual]
 

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Render the volume

Implements vtkUnstructuredGridVolumeMapper.

virtual void vtkProjectedTetrahedraMapper::ReleaseGraphicsResources vtkWindow window  )  [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 vtkUnstructuredGridVolumeMapper.

static void vtkProjectedTetrahedraMapper::MapScalarsToColors vtkDataArray colors,
vtkVolume volume,
vtkDataArray scalars
[static]
 

virtual void vtkProjectedTetrahedraMapper::ProjectTetrahedra vtkRenderer renderer,
vtkVolume volume
[protected, virtual]
 

virtual void vtkProjectedTetrahedraMapper::ReportReferences vtkGarbageCollector collector  )  [protected, virtual]
 

The visibility sort will probably make a reference loop by holding a reference to the input.

Reimplemented from vtkAlgorithm.


Member Data Documentation

vtkUnsignedCharArray* vtkProjectedTetrahedraMapper::Colors [protected]
 

Definition at line 119 of file vtkProjectedTetrahedraMapper.h.

int vtkProjectedTetrahedraMapper::UsingCellColors [protected]
 

Definition at line 120 of file vtkProjectedTetrahedraMapper.h.

vtkFloatArray* vtkProjectedTetrahedraMapper::TransformedPoints [protected]
 

Definition at line 122 of file vtkProjectedTetrahedraMapper.h.

float vtkProjectedTetrahedraMapper::MaxCellSize [protected]
 

Definition at line 124 of file vtkProjectedTetrahedraMapper.h.

vtkTimeStamp vtkProjectedTetrahedraMapper::InputAnalyzedTime [protected]
 

Definition at line 125 of file vtkProjectedTetrahedraMapper.h.

vtkTimeStamp vtkProjectedTetrahedraMapper::OpacityTextureTime [protected]
 

Definition at line 126 of file vtkProjectedTetrahedraMapper.h.

vtkTimeStamp vtkProjectedTetrahedraMapper::ColorsMappedTime [protected]
 

Definition at line 127 of file vtkProjectedTetrahedraMapper.h.

unsigned int vtkProjectedTetrahedraMapper::OpacityTexture [protected]
 

Definition at line 129 of file vtkProjectedTetrahedraMapper.h.

vtkVisibilitySort* vtkProjectedTetrahedraMapper::VisibilitySort [protected]
 

Definition at line 131 of file vtkProjectedTetrahedraMapper.h.

int vtkProjectedTetrahedraMapper::ScalarMode [protected]
 

Definition at line 133 of file vtkProjectedTetrahedraMapper.h.

char* vtkProjectedTetrahedraMapper::ArrayName [protected]
 

Definition at line 134 of file vtkProjectedTetrahedraMapper.h.

int vtkProjectedTetrahedraMapper::ArrayId [protected]
 

Definition at line 135 of file vtkProjectedTetrahedraMapper.h.

int vtkProjectedTetrahedraMapper::ArrayAccessMode [protected]
 

Definition at line 136 of file vtkProjectedTetrahedraMapper.h.

int vtkProjectedTetrahedraMapper::GaveError [protected]
 

Definition at line 138 of file vtkProjectedTetrahedraMapper.h.

vtkVolume* vtkProjectedTetrahedraMapper::LastVolume [protected]
 

Definition at line 140 of file vtkProjectedTetrahedraMapper.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 22 00:11:13 2008 for VTK by  doxygen 1.4.3-20050530