Go to the documentation of this file.
26 #ifndef vtkOpenGLImageSliceMapper_h
27 #define vtkOpenGLImageSliceMapper_h
29 #include "vtkRenderingOpenGLModule.h"
68 double red,
double green,
double blue,
69 double alpha,
double ambient,
double diffuse);
119 const int extent[6],
int &xdim,
int &ydim,
120 int imageSize[2],
int textureSize[2]);
represent and manipulate 3D points
vtkOpenGLImageSliceMapper()
void RenderPolygon(vtkPoints *points, const int extent[6], bool textured)
Basic polygon rendering, if the textured parameter is set the tcoords are included,...
bool UsePowerOfTwoTextures
vtkStdString BuildFragmentProgram(vtkImageProperty *property)
Build the fragment program to use with the texture.
void RecursiveRenderTexturedPolygon(vtkRenderer *ren, vtkImageProperty *property, vtkImageData *image, int extent[6], bool recursive)
Recursive internal method, will call the non-recursive method as many times as necessary if the textu...
void RenderColorAndLighting(double red, double green, double blue, double alpha, double ambient, double diffuse)
Call the OpenGL code that does color and lighting.
void RenderBackground(vtkPoints *points, const int extent[6], bool textured)
Render the background, which means rendering everything within the plane of the image except for the ...
record modification and/or execution time
void Render(vtkRenderer *ren, vtkImageSlice *prop)
Implement base class method.
~vtkOpenGLImageSliceMapper()
map a slice of a vtkImageData to the screen
static vtkOpenGLImageSliceMapper * New()
window superclass for vtkRenderWindow
vtkRenderWindow * RenderWindow
void RenderTexturedPolygon(vtkRenderer *ren, vtkImageProperty *property, vtkImageData *image, int extent[6], bool recursive)
Non-recursive internal method, generate a single texture and its corresponding geometry.
void BindFragmentProgram(vtkRenderer *ren, vtkImageProperty *property)
Bind the fragment program, and generate it first if necessary.
represents an image in a 3D scene
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
topologically and geometrically regular array of data
a simple class to control print indentation
bool TextureSizeOK(const int size[2])
Test whether a given texture size is supported.
OpenGL mapper for image slice display.
void CheckOpenGLCapabilities(vtkOpenGLRenderWindow *renWin)
Check various OpenGL capabilities.
abstract specification for renderers
void ComputeTextureSize(const int extent[6], int &xdim, int &ydim, int imageSize[2], int textureSize[2])
Given an extent that describes a slice (it must have unit thickness in one of the three directions),...
long BackgroundTextureIndex
create a window for renderers to draw into
Wrapper around std::string to keep symbols short.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper, the image texture in particula...