Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkVolumeTextureMapper2D Class Reference

Abstract class for a volume mapper. More...

#include <vtkVolumeTextureMapper2D.h>

Inheritance diagram for vtkVolumeTextureMapper2D:

Inheritance graph
[legend]
Collaboration diagram for vtkVolumeTextureMapper2D:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent index)
virtual void SetTargetTextureSize (int, int)
void SetTargetTextureSize (int[2])
virtual int * GetTargetTextureSize ()
virtual void GetTargetTextureSize (int &, int &)
virtual void GetTargetTextureSize (int[2])
virtual void SetMaximumNumberOfPlanes (int)
virtual int GetMaximumNumberOfPlanes ()
virtual void Render (vtkRenderer *, vtkVolume *)
virtual void RenderQuads (int vtkNotUsed(count), float *vtkNotUsed(v), float *vtkNotUsed(t), unsigned char *vtkNotUsed(texture), int vtkNotUsed(size)[2])
int GetInternalSkipFactor ()

Static Public Methods

int IsTypeOf (const char *type)
vtkVolumeTextureMapper2D * SafeDownCast (vtkObject *o)
vtkVolumeTextureMapper2D * New ()

Protected Methods

 vtkVolumeTextureMapper2D ()
 ~vtkVolumeTextureMapper2D ()
 vtkVolumeTextureMapper2D (const vtkVolumeTextureMapper2D &)
void operator= (const vtkVolumeTextureMapper2D &)
void InitializeRender (vtkRenderer *ren, vtkVolume *vol)
void GenerateTexturesAndRenderQuads ()

Protected Attributes

int MajorDirection
int TargetTextureSize [2]
int MaximumNumberOfPlanes
int InternalSkipFactor

Detailed Description

Abstract class for a volume mapper.

Date:
2000/12/10 20:08:59
Revision:
1.12

vtkVolumeTextureMapper2D renders a volume using 2D texture mapping.

See also:
vtkVolumeMapper
Examples:
vtkVolumeTextureMapper2D (examples)

Definition at line 60 of file vtkVolumeTextureMapper2D.h.


Constructor & Destructor Documentation

vtkVolumeTextureMapper2D::vtkVolumeTextureMapper2D   [protected]
 

vtkVolumeTextureMapper2D::~vtkVolumeTextureMapper2D   [protected]
 

vtkVolumeTextureMapper2D::vtkVolumeTextureMapper2D const vtkVolumeTextureMapper2D &    [inline, protected]
 

Definition at line 105 of file vtkVolumeTextureMapper2D.h.


Member Function Documentation

virtual const char* vtkVolumeTextureMapper2D::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

int vtkVolumeTextureMapper2D::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

virtual int vtkVolumeTextureMapper2D::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

vtkVolumeTextureMapper2D* vtkVolumeTextureMapper2D::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

void vtkVolumeTextureMapper2D::PrintSelf ostream &    os,
vtkIndent    index
[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 vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

vtkVolumeTextureMapper2D* vtkVolumeTextureMapper2D::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkProcessObject.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

virtual void vtkVolumeTextureMapper2D::SetTargetTextureSize int   ,
int   
[virtual]
 

Target size in pixels of each size of the texture for downloading. Default is 512x512 - so a 512x512 texture will be tiled with as many slices of the volume as possible, then all the quads will be rendered. This can be set to optimize for a particular architecture. This must be set with numbers that are a power of two.

void vtkVolumeTextureMapper2D::SetTargetTextureSize int   [2]
 

virtual int* vtkVolumeTextureMapper2D::GetTargetTextureSize   [virtual]
 

virtual void vtkVolumeTextureMapper2D::GetTargetTextureSize int &   ,
int &   
[virtual]
 

virtual void vtkVolumeTextureMapper2D::GetTargetTextureSize int   [2] [virtual]
 

virtual void vtkVolumeTextureMapper2D::SetMaximumNumberOfPlanes int    [virtual]
 

This is the maximum number of planes that will be created for texture mapping the volume. If the volume has more voxels than this along the viewing direction, then planes of the volume will be skipped to ensure that this maximum is not violated. A skip factor is used, and is incremented until the maximum condition is satisfied.

virtual int vtkVolumeTextureMapper2D::GetMaximumNumberOfPlanes   [virtual]
 

virtual void vtkVolumeTextureMapper2D::Render vtkRenderer   ren,
vtkVolume   vol
[inline, virtual]
 

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

Reimplemented from vtkVolumeTextureMapper.

Reimplemented in vtkMesaVolumeTextureMapper2D, and vtkOpenGLVolumeTextureMapper2D.

Definition at line 88 of file vtkVolumeTextureMapper2D.h.

virtual void vtkVolumeTextureMapper2D::RenderQuads int vtkNotUsed(count)   ,
float *vtkNotUsed(v)   ,
float *vtkNotUsed(t)   ,
unsigned char *vtkNotUsed(texture)   ,
int vtkNotUsed(size)   [2]
[inline, virtual]
 

Definition at line 90 of file vtkVolumeTextureMapper2D.h.

int vtkVolumeTextureMapper2D::GetInternalSkipFactor   [inline]
 

Made public only for access from the templated method. Not a vtkGetMacro to avoid the PrintSelf defect.

Definition at line 97 of file vtkVolumeTextureMapper2D.h.

void vtkVolumeTextureMapper2D::operator= const vtkVolumeTextureMapper2D &    [inline, protected]
 

Definition at line 106 of file vtkVolumeTextureMapper2D.h.

void vtkVolumeTextureMapper2D::InitializeRender vtkRenderer   ren,
vtkVolume   vol
[protected]
 

Reimplemented from vtkVolumeTextureMapper.

void vtkVolumeTextureMapper2D::GenerateTexturesAndRenderQuads   [protected]
 


Member Data Documentation

int vtkVolumeTextureMapper2D::MajorDirection [protected]
 

Definition at line 112 of file vtkVolumeTextureMapper2D.h.

int vtkVolumeTextureMapper2D::TargetTextureSize[2] [protected]
 

Definition at line 113 of file vtkVolumeTextureMapper2D.h.

int vtkVolumeTextureMapper2D::MaximumNumberOfPlanes [protected]
 

Definition at line 115 of file vtkVolumeTextureMapper2D.h.

int vtkVolumeTextureMapper2D::InternalSkipFactor [protected]
 

Definition at line 116 of file vtkVolumeTextureMapper2D.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:02:21 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001