VTK
|
OpenGL mapper for image slice display. More...
#include <vtkMesaImageSliceMapper.h>
OpenGL mapper for image slice display.
vtkMesaImageSliceMapper is a concrete implementation of the abstract class vtkImageSliceMapper that interfaces to the OpenGL library.
Definition at line 38 of file vtkMesaImageSliceMapper.h.
Reimplemented from vtkImageSliceMapper.
Definition at line 43 of file vtkMesaImageSliceMapper.h.
vtkMesaImageSliceMapper::vtkMesaImageSliceMapper | ( | ) | [protected] |
vtkMesaImageSliceMapper::~vtkMesaImageSliceMapper | ( | ) | [protected] |
static vtkMesaImageSliceMapper* vtkMesaImageSliceMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageSliceMapper.
virtual const char* vtkMesaImageSliceMapper::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkImageSliceMapper.
static int vtkMesaImageSliceMapper::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 vtkImageSliceMapper.
virtual int vtkMesaImageSliceMapper::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 vtkImageSliceMapper.
static vtkMesaImageSliceMapper* vtkMesaImageSliceMapper::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkImageSliceMapper.
virtual void vtkMesaImageSliceMapper::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 vtkImageSliceMapper.
void vtkMesaImageSliceMapper::Render | ( | vtkRenderer * | ren, |
vtkImageSlice * | prop | ||
) | [virtual] |
Implement base class method. Perform the render.
Reimplemented from vtkImageSliceMapper.
void vtkMesaImageSliceMapper::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources that are being consumed by this mapper, the image texture in particular. Using the same texture in multiple render windows is NOT currently supported.
Reimplemented from vtkImageSliceMapper.
void vtkMesaImageSliceMapper::RenderColorAndLighting | ( | double | red, |
double | green, | ||
double | blue, | ||
double | alpha, | ||
double | ambient, | ||
double | diffuse | ||
) | [protected] |
Call the OpenGL code that does color and lighting.
void vtkMesaImageSliceMapper::RenderBackingPolygon | ( | ) | [protected] |
Render an opaque polygon behind the image. This is also used in multi-pass rendering to render into the depth buffer.
void vtkMesaImageSliceMapper::RecursiveRenderTexturedPolygon | ( | vtkRenderer * | ren, |
vtkImageProperty * | property, | ||
vtkImageData * | image, | ||
int | extent[6], | ||
bool | recursive | ||
) | [protected] |
Recursive internal method, will call the non-recursive method as many times as necessary if the texture must be broken up into pieces that are small enough for the GPU to render
void vtkMesaImageSliceMapper::RenderTexturedPolygon | ( | vtkRenderer * | ren, |
vtkImageProperty * | property, | ||
vtkImageData * | image, | ||
int | extent[6], | ||
bool | recursive | ||
) | [protected] |
Non-recursive internal method, generate a single texture and its corresponding geometry.
vtkStdString vtkMesaImageSliceMapper::BuildFragmentProgram | ( | vtkImageProperty * | property | ) | [protected] |
Build the fragment program to use with the texture.
void vtkMesaImageSliceMapper::ComputeTextureSize | ( | const int | extent[6], |
int & | xdim, | ||
int & | ydim, | ||
int | imageSize[2], | ||
int | textureSize[2] | ||
) | [protected, virtual] |
Given an extent that describes a slice (it must have unit thickness in one of the three directions), return the dimension indices that correspond to the texture "x" and "y", provide the x, y image size, and provide the texture size (padded to a power of two if the hardware requires).
Reimplemented from vtkImageMapper3D.
bool vtkMesaImageSliceMapper::TextureSizeOK | ( | const int | size[2] | ) | [protected] |
Test whether a given texture size is supported. This includes a check of whether the texture will fit into texture memory.
void vtkMesaImageSliceMapper::CheckOpenGLCapabilities | ( | vtkMesaRenderWindow * | renWin | ) | [protected] |
Check various OpenGL capabilities
long vtkMesaImageSliceMapper::Index [protected] |
Definition at line 107 of file vtkMesaImageSliceMapper.h.
long vtkMesaImageSliceMapper::FragmentShaderIndex [protected] |
Definition at line 108 of file vtkMesaImageSliceMapper.h.
vtkRenderWindow* vtkMesaImageSliceMapper::RenderWindow [protected] |
Definition at line 109 of file vtkMesaImageSliceMapper.h.
int vtkMesaImageSliceMapper::TextureSize[2] [protected] |
Definition at line 110 of file vtkMesaImageSliceMapper.h.
int vtkMesaImageSliceMapper::TextureBytesPerPixel [protected] |
Definition at line 111 of file vtkMesaImageSliceMapper.h.
int vtkMesaImageSliceMapper::LastOrientation [protected] |
Definition at line 112 of file vtkMesaImageSliceMapper.h.
int vtkMesaImageSliceMapper::LastSliceNumber [protected] |
Definition at line 113 of file vtkMesaImageSliceMapper.h.
vtkTimeStamp vtkMesaImageSliceMapper::LoadTime [protected] |
Definition at line 115 of file vtkMesaImageSliceMapper.h.
int vtkMesaImageSliceMapper::LoadCount [protected] |
Definition at line 116 of file vtkMesaImageSliceMapper.h.
bool vtkMesaImageSliceMapper::UsePowerOfTwoTextures [protected] |
Definition at line 118 of file vtkMesaImageSliceMapper.h.
bool vtkMesaImageSliceMapper::UseClampToEdge [protected] |
Definition at line 119 of file vtkMesaImageSliceMapper.h.
bool vtkMesaImageSliceMapper::UseFragmentProgram [protected] |
Definition at line 120 of file vtkMesaImageSliceMapper.h.