00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLImageMapper.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00041 #ifndef __vtkOpenGLImageMapper_h 00042 #define __vtkOpenGLImageMapper_h 00043 00044 00045 #include "vtkImageMapper.h" 00046 class vtkActor2D; 00047 00048 00049 class VTK_RENDERING_EXPORT vtkOpenGLImageMapper : public vtkImageMapper 00050 { 00051 public: 00052 static vtkOpenGLImageMapper *New(); 00053 vtkTypeRevisionMacro(vtkOpenGLImageMapper,vtkImageMapper); 00054 virtual void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 00058 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) { 00059 this->RenderStart(viewport,actor);} 00061 00063 00065 void RenderData(vtkViewport* viewport, vtkImageData* data, 00066 vtkActor2D* actor); 00068 00069 protected: 00070 // 00071 // 00072 vtkOpenGLImageMapper(); 00073 ~vtkOpenGLImageMapper(); 00074 00075 private: 00076 vtkOpenGLImageMapper(const vtkOpenGLImageMapper&); // Not implemented. 00077 void operator=(const vtkOpenGLImageMapper&); // Not implemented. 00078 }; 00079 00080 00081 #endif 00082 00083 00084 00085 00086 00087 00088 00089 00090