VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkOpenGLVolumeTextureMapper3D Class Reference

concrete implementation of 3D volume texture mapping More...

#include <vtkOpenGLVolumeTextureMapper3D.h>

Inheritance diagram for vtkOpenGLVolumeTextureMapper3D:
Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLVolumeTextureMapper3D:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkVolumeTextureMapper3D Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLVolumeTextureMapper3DNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Render (vtkRenderer *ren, vtkVolume *vol)
virtual int GetInitialized ()
void ReleaseGraphicsResources (vtkWindow *)
int IsRenderSupported (vtkVolumeProperty *, vtkRenderer *ren)

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkOpenGLVolumeTextureMapper3D
SafeDownCast (vtkObjectBase *o)
static
vtkOpenGLVolumeTextureMapper3D
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLVolumeTextureMapper3D ()
 ~vtkOpenGLVolumeTextureMapper3D ()
void GetLightInformation (vtkRenderer *ren, vtkVolume *vol, GLfloat lightDirection[2][4], GLfloat lightDiffuseColor[2][4], GLfloat lightSpecularColor[2][4], GLfloat halfwayVector[2][4], GLfloat *ambient)
void Initialize (vtkRenderer *r)
virtual void RenderNV (vtkRenderer *ren, vtkVolume *vol)
virtual void RenderFP (vtkRenderer *ren, vtkVolume *vol)
void RenderOneIndependentNoShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderOneIndependentShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderTwoDependentNoShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderTwoDependentShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderFourDependentNoShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderFourDependentShadeFP (vtkRenderer *ren, vtkVolume *vol)
void RenderOneIndependentNoShadeNV (vtkRenderer *ren, vtkVolume *vol)
void RenderOneIndependentShadeNV (vtkRenderer *ren, vtkVolume *vol)
void RenderTwoDependentNoShadeNV (vtkRenderer *ren, vtkVolume *vol)
void RenderTwoDependentShadeNV (vtkRenderer *ren, vtkVolume *vol)
void RenderFourDependentNoShadeNV (vtkRenderer *ren, vtkVolume *vol)
void RenderFourDependentShadeNV (vtkRenderer *ren, vtkVolume *vol)
void SetupOneIndependentTextures (vtkRenderer *ren, vtkVolume *vol)
void SetupTwoDependentTextures (vtkRenderer *ren, vtkVolume *vol)
void SetupFourDependentTextures (vtkRenderer *ren, vtkVolume *vol)
void SetupRegisterCombinersNoShadeNV (vtkRenderer *ren, vtkVolume *vol, int components)
void SetupRegisterCombinersShadeNV (vtkRenderer *ren, vtkVolume *vol, int components)
void DeleteTextureIndex (GLuint *index)
void CreateTextureIndex (GLuint *index)
void RenderPolygons (vtkRenderer *ren, vtkVolume *vol, int stages[4])
void SetupProgramLocalsForShadingFP (vtkRenderer *ren, vtkVolume *vol)
void Setup3DTextureParameters (vtkVolumeProperty *property)
int IsTextureSizeSupported (int size[3], int components)

Protected Attributes

int Initialized
GLuint Volume1Index
GLuint Volume2Index
GLuint Volume3Index
GLuint ColorLookupIndex
GLuint AlphaLookupIndex
vtkRenderWindowRenderWindow
bool SupportsCompressedTexture
bool SupportsNonPowerOfTwoTextures
int InternalAlpha
int InternalLA
int InternalRGB
int InternalRGBA

Detailed Description

concrete implementation of 3D volume texture mapping

vtkOpenGLVolumeTextureMapper3D renders a volume using 3D texture mapping. See vtkVolumeTextureMapper3D for full description.

See also:
vtkVolumeTextureMapper3D vtkVolumeMapper

Definition at line 36 of file vtkOpenGLVolumeTextureMapper3D.h.


Member Typedef Documentation

Reimplemented from vtkVolumeTextureMapper3D.

Definition at line 40 of file vtkOpenGLVolumeTextureMapper3D.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkOpenGLVolumeTextureMapper3D::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 vtkVolumeTextureMapper3D.

virtual int vtkOpenGLVolumeTextureMapper3D::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 vtkVolumeTextureMapper3D.

Reimplemented from vtkVolumeTextureMapper3D.

virtual vtkObjectBase* vtkOpenGLVolumeTextureMapper3D::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkVolumeTextureMapper3D.

Reimplemented from vtkVolumeTextureMapper3D.

void vtkOpenGLVolumeTextureMapper3D::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 vtkVolumeTextureMapper3D.

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

Reimplemented from vtkVolumeTextureMapper3D.

Is hardware rendering supported? No if the input data is more than one independent component, or if the hardware does not support the required extensions

virtual void vtkOpenGLVolumeTextureMapper3D::Render ( vtkRenderer ren,
vtkVolume vol 
) [virtual]

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

Reimplemented from vtkVolumeTextureMapper3D.

Release any graphics resources that are being consumed by this texture. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkVolumeMapper.

void vtkOpenGLVolumeTextureMapper3D::GetLightInformation ( vtkRenderer ren,
vtkVolume vol,
GLfloat  lightDirection[2][4],
GLfloat  lightDiffuseColor[2][4],
GLfloat  lightSpecularColor[2][4],
GLfloat  halfwayVector[2][4],
GLfloat *  ambient 
) [protected]
virtual void vtkOpenGLVolumeTextureMapper3D::RenderNV ( vtkRenderer ren,
vtkVolume vol 
) [protected, virtual]
virtual void vtkOpenGLVolumeTextureMapper3D::RenderFP ( vtkRenderer ren,
vtkVolume vol 
) [protected, virtual]
void vtkOpenGLVolumeTextureMapper3D::SetupRegisterCombinersNoShadeNV ( vtkRenderer ren,
vtkVolume vol,
int  components 
) [protected]
void vtkOpenGLVolumeTextureMapper3D::SetupRegisterCombinersShadeNV ( vtkRenderer ren,
vtkVolume vol,
int  components 
) [protected]
void vtkOpenGLVolumeTextureMapper3D::DeleteTextureIndex ( GLuint *  index) [protected]
void vtkOpenGLVolumeTextureMapper3D::CreateTextureIndex ( GLuint *  index) [protected]
void vtkOpenGLVolumeTextureMapper3D::RenderPolygons ( vtkRenderer ren,
vtkVolume vol,
int  stages[4] 
) [protected]
int vtkOpenGLVolumeTextureMapper3D::IsTextureSizeSupported ( int  size[3],
int  components 
) [protected]

Check if we can support this texture size for the number of components.

Common code for setting up interpolation / clamping on 3D textures


Member Data Documentation

Definition at line 87 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 88 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 89 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 90 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 91 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 92 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 93 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 95 of file vtkOpenGLVolumeTextureMapper3D.h.

Reimplemented from vtkVolumeTextureMapper3D.

Definition at line 96 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 100 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 101 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 102 of file vtkOpenGLVolumeTextureMapper3D.h.

Definition at line 103 of file vtkOpenGLVolumeTextureMapper3D.h.


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