OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkOpenGLImageMapper.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkOpenGLImageMapper.h,v $
5   Language:  C++
6   Date:      $Date: 2002/08/22 18:39:31 $
7   Version:   $Revision: 1.19 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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
22
23 // .SECTION See Also
24 // vtkImageMapper
25
26 #ifndef __vtkOpenGLImageMapper_h
27 #define __vtkOpenGLImageMapper_h
28
29
30 #include "vtkImageMapper.h"
31 class vtkActor2D;
32
33
34 class VTK_RENDERING_EXPORT vtkOpenGLImageMapper : public vtkImageMapper
35 {
36 public:
37   static vtkOpenGLImageMapper *New();
38   vtkTypeRevisionMacro(vtkOpenGLImageMapper,vtkImageMapper);
39   virtual void PrintSelf(ostream& os, vtkIndent indent);
40   
41   // Description:
42   // Handle the render method.
43   void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) {
44     this->RenderStart(viewport,actor);}
45
46   // Description:
47   // Called by the Render function in vtkImageMapper.  Actually draws
48   // the image to the screen.
49   void RenderData(vtkViewport* viewport, vtkImageData* data, 
50                   vtkActor2D* actor);
51
52 protected:
53   //
54   //
55   vtkOpenGLImageMapper();
56   ~vtkOpenGLImageMapper();
57
58 private:
59   vtkOpenGLImageMapper(const vtkOpenGLImageMapper&);  // Not implemented.
60   void operator=(const vtkOpenGLImageMapper&);  // Not implemented.
61 };
62
63
64 #endif
65
66
67
68
69
70
71
72
73