1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkOpenGLImageMapper.h,v $
6 Date: $Date: 2002/08/22 18:39:31 $
7 Version: $Revision: 1.19 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkOpenGLImageMapper - 2D image display support for OpenGL
19 // .SECTION Description
20 // vtkOpenGLImageMapper is a concrete subclass of vtkImageMapper that
21 // renders images under OpenGL
26 #ifndef __vtkOpenGLImageMapper_h
27 #define __vtkOpenGLImageMapper_h
30 #include "vtkImageMapper.h"
34 class VTK_RENDERING_EXPORT vtkOpenGLImageMapper : public vtkImageMapper
37 static vtkOpenGLImageMapper *New();
38 vtkTypeRevisionMacro(vtkOpenGLImageMapper,vtkImageMapper);
39 virtual void PrintSelf(ostream& os, vtkIndent indent);
42 // Handle the render method.
43 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) {
44 this->RenderStart(viewport,actor);}
47 // Called by the Render function in vtkImageMapper. Actually draws
48 // the image to the screen.
49 void RenderData(vtkViewport* viewport, vtkImageData* data,
55 vtkOpenGLImageMapper();
56 ~vtkOpenGLImageMapper();
59 vtkOpenGLImageMapper(const vtkOpenGLImageMapper&); // Not implemented.
60 void operator=(const vtkOpenGLImageMapper&); // Not implemented.