VTK
|
Abstract class for a volume mapper. More...
#include <vtkVolumeTextureMapper2D.h>
Abstract class for a volume mapper.
vtkVolumeTextureMapper2D renders a volume using 2D texture mapping.
Definition at line 37 of file vtkVolumeTextureMapper2D.h.
Reimplemented from vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
Definition at line 40 of file vtkVolumeTextureMapper2D.h.
vtkVolumeTextureMapper2D::vtkVolumeTextureMapper2D | ( | ) | [protected] |
vtkVolumeTextureMapper2D::~vtkVolumeTextureMapper2D | ( | ) | [protected] |
static int vtkVolumeTextureMapper2D::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 vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
virtual int vtkVolumeTextureMapper2D::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 vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
static vtkVolumeTextureMapper2D* vtkVolumeTextureMapper2D::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
virtual vtkObjectBase* vtkVolumeTextureMapper2D::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
Reimplemented from vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
void vtkVolumeTextureMapper2D::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 vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
static vtkVolumeTextureMapper2D* vtkVolumeTextureMapper2D::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
Reimplemented in 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] | ) |
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.
virtual int* vtkVolumeTextureMapper2D::GetTargetTextureSize | ( | ) | [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.
virtual void vtkVolumeTextureMapper2D::GetTargetTextureSize | ( | 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.
virtual void vtkVolumeTextureMapper2D::GetTargetTextureSize | ( | int | [2] | ) | [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.
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] |
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 void vtkVolumeTextureMapper2D::SetMaximumStorageSize | ( | int | ) | [virtual] |
This is the maximum size of saved textures in bytes. If this size is large enough to hold the RGBA textures for all three directions (XxYxZx3x4 is the approximate value - it is actually a bit larger due to wasted space in the textures) then the textures will be saved.
virtual int vtkVolumeTextureMapper2D::GetMaximumStorageSize | ( | ) | [virtual] |
This is the maximum size of saved textures in bytes. If this size is large enough to hold the RGBA textures for all three directions (XxYxZx3x4 is the approximate value - it is actually a bit larger due to wasted space in the textures) then the textures will be saved.
virtual void vtkVolumeTextureMapper2D::Render | ( | vtkRenderer * | , |
vtkVolume * | |||
) | [inline, virtual] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Render the volume
Implements vtkVolumeTextureMapper.
Reimplemented in vtkOpenGLVolumeTextureMapper2D.
Definition at line 78 of file vtkVolumeTextureMapper2D.h.
virtual void vtkVolumeTextureMapper2D::RenderQuads | ( | int | vtkNotUsedcount, |
float * | vtkNotUsedv, | ||
float * | vtkNotUsedt, | ||
unsigned char * | vtkNotUsedtexture, | ||
int | vtkNotUsed(size)[2], | ||
int | vtkNotUsedreverseFlag | ||
) | [inline, virtual] |
Definition at line 80 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 88 of file vtkVolumeTextureMapper2D.h.
int* vtkVolumeTextureMapper2D::GetAxisTextureSize | ( | ) | [inline] |
Definition at line 90 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::GetSaveTextures | ( | ) | [inline] |
Definition at line 92 of file vtkVolumeTextureMapper2D.h.
unsigned char* vtkVolumeTextureMapper2D::GetTexture | ( | ) | [inline] |
Definition at line 94 of file vtkVolumeTextureMapper2D.h.
void vtkVolumeTextureMapper2D::InitializeRender | ( | vtkRenderer * | ren, |
vtkVolume * | vol | ||
) | [inline, protected] |
Reimplemented from vtkVolumeTextureMapper.
Definition at line 103 of file vtkVolumeTextureMapper2D.h.
void vtkVolumeTextureMapper2D::InitializeRender | ( | vtkRenderer * | ren, |
vtkVolume * | vol, | ||
int | majorDirection | ||
) | [protected] |
void vtkVolumeTextureMapper2D::GenerateTexturesAndRenderQuads | ( | vtkRenderer * | ren, |
vtkVolume * | vol | ||
) | [protected] |
void vtkVolumeTextureMapper2D::ComputeAxisTextureSize | ( | int | axis, |
int * | size | ||
) | [protected] |
void vtkVolumeTextureMapper2D::RenderSavedTexture | ( | ) | [protected] |
int vtkVolumeTextureMapper2D::MajorDirection [protected] |
Definition at line 110 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::TargetTextureSize[2] [protected] |
Definition at line 111 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::MaximumNumberOfPlanes [protected] |
Definition at line 113 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::InternalSkipFactor [protected] |
Definition at line 114 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::MaximumStorageSize [protected] |
Definition at line 115 of file vtkVolumeTextureMapper2D.h.
unsigned char* vtkVolumeTextureMapper2D::Texture [protected] |
Definition at line 117 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::TextureSize [protected] |
Definition at line 118 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::SaveTextures [protected] |
Definition at line 119 of file vtkVolumeTextureMapper2D.h.
vtkTimeStamp vtkVolumeTextureMapper2D::TextureMTime [protected] |
Definition at line 120 of file vtkVolumeTextureMapper2D.h.
int vtkVolumeTextureMapper2D::AxisTextureSize[3][3] [protected] |
Definition at line 122 of file vtkVolumeTextureMapper2D.h.