vtkVolumeTextureMapper2D Class Reference
#include <vtkVolumeTextureMapper2D.h>
Inheritance diagram for vtkVolumeTextureMapper2D:
[legend]Collaboration diagram for vtkVolumeTextureMapper2D:
[legend]List of all members.
Detailed Description
Abstract class for a volume mapper.
vtkVolumeTextureMapper2D renders a volume using 2D texture mapping.
- See also:
- vtkVolumeMapper
- Examples:
- vtkVolumeTextureMapper2D (Examples)
- Tests:
- vtkVolumeTextureMapper2D (Tests)
Definition at line 36 of file vtkVolumeTextureMapper2D.h.
|
Public Types |
typedef vtkVolumeTextureMapper | Superclass |
Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
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 vtkNotUsed(reverseFlag)) |
int | GetInternalSkipFactor () |
int * | GetAxisTextureSize () |
int | GetSaveTextures () |
unsigned char * | GetTexture () |
|
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 | SetMaximumStorageSize (int) |
virtual int | GetMaximumStorageSize () |
Static Public Member Functions |
int | IsTypeOf (const char *type) |
vtkVolumeTextureMapper2D * | SafeDownCast (vtkObject *o) |
vtkVolumeTextureMapper2D * | New () |
Protected Member Functions |
| vtkVolumeTextureMapper2D () |
| ~vtkVolumeTextureMapper2D () |
void | InitializeRender (vtkRenderer *ren, vtkVolume *vol) |
void | InitializeRender (vtkRenderer *ren, vtkVolume *vol, int majorDirection) |
void | GenerateTexturesAndRenderQuads (vtkRenderer *ren, vtkVolume *vol) |
void | ComputeAxisTextureSize (int axis, int *size) |
void | RenderSavedTexture () |
Protected Attributes |
int | MajorDirection |
int | TargetTextureSize [2] |
int | MaximumNumberOfPlanes |
int | InternalSkipFactor |
int | MaximumStorageSize |
unsigned char * | Texture |
int | TextureSize |
int | SaveTextures |
vtkTimeStamp | TextureMTime |
int | AxisTextureSize [3][3] |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkVolumeTextureMapper2D::vtkVolumeTextureMapper2D |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkVolumeTextureMapper2D::GetClassName |
( |
|
) |
[virtual] |
|
int vtkVolumeTextureMapper2D::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
virtual int vtkVolumeTextureMapper2D::IsA |
( |
const char * |
type |
) |
[virtual] |
|
void vtkVolumeTextureMapper2D::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
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::RenderQuads |
( |
int |
vtkNotUsed(count), |
|
|
float * |
vtkNotUsed(v), |
|
|
float * |
vtkNotUsed(t), |
|
|
unsigned char * |
vtkNotUsed(texture), |
|
|
int |
vtkNotUsed(size)[2], |
|
|
int |
vtkNotUsed(reverseFlag) |
|
) |
[inline, virtual] |
|
int vtkVolumeTextureMapper2D::GetInternalSkipFactor |
( |
|
) |
[inline] |
|
|
Made public only for access from the templated method. Not a vtkGetMacro to avoid the PrintSelf defect. Definition at line 87 of file vtkVolumeTextureMapper2D.h. |
int* vtkVolumeTextureMapper2D::GetAxisTextureSize |
( |
|
) |
[inline] |
|
int vtkVolumeTextureMapper2D::GetSaveTextures |
( |
|
) |
[inline] |
|
unsigned char* vtkVolumeTextureMapper2D::GetTexture |
( |
|
) |
[inline] |
|
void vtkVolumeTextureMapper2D::InitializeRender |
( |
vtkRenderer * |
ren, |
|
|
vtkVolume * |
vol |
|
) |
[inline, protected] |
|
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] |
|
Member Data Documentation
The documentation for this class was generated from the following file: