VTK
vtkOpenGLImageMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLImageMapper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkOpenGLImageMapper_h
31 #define vtkOpenGLImageMapper_h
32 
33 #include "vtkRenderingOpenGLModule.h" // For export macro
34 #include "vtkImageMapper.h"
35 
36 class vtkActor2D;
37 
38 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLImageMapper : public vtkImageMapper
39 {
40 public:
41  static vtkOpenGLImageMapper *New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
48  void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor)
49  { this->RenderStart(viewport, actor); }
50 
55  void RenderData(vtkViewport* viewport, vtkImageData* data,
56  vtkActor2D* actor);
57 
58 protected:
61 
62 private:
63  vtkOpenGLImageMapper(const vtkOpenGLImageMapper&) VTK_DELETE_FUNCTION;
64  void operator=(const vtkOpenGLImageMapper&) VTK_DELETE_FUNCTION;
65 };
66 
67 #endif
virtual void RenderData(vtkViewport *, vtkImageData *, vtkActor2D *)=0
Function called by Render to actually draw the image to to the screen.
abstract specification for Viewports
Definition: vtkViewport.h:47
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
Handle the render method.
a actor that draws 2D data
Definition: vtkActor2D.h:45
2D image display support for OpenGL
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkImageMapper * New()
2D image display
void RenderStart(vtkViewport *viewport, vtkActor2D *actor)
Draw the image to the screen.