00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLImageMapper.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00025 #ifndef __vtkOpenGLImageMapper_h 00026 #define __vtkOpenGLImageMapper_h 00027 00028 00029 #include "vtkImageMapper.h" 00030 class vtkActor2D; 00031 00032 00033 class VTK_RENDERING_EXPORT vtkOpenGLImageMapper : public vtkImageMapper 00034 { 00035 public: 00036 static vtkOpenGLImageMapper *New(); 00037 vtkTypeRevisionMacro(vtkOpenGLImageMapper,vtkImageMapper); 00038 virtual void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00042 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) { 00043 this->RenderStart(viewport,actor);} 00045 00047 00049 void RenderData(vtkViewport* viewport, vtkImageData* data, 00050 vtkActor2D* actor); 00052 00053 protected: 00054 // 00055 // 00056 vtkOpenGLImageMapper(); 00057 ~vtkOpenGLImageMapper(); 00058 00059 private: 00060 vtkOpenGLImageMapper(const vtkOpenGLImageMapper&); // Not implemented. 00061 void operator=(const vtkOpenGLImageMapper&); // Not implemented. 00062 }; 00063 00064 00065 #endif 00066 00067 00068 00069 00070 00071 00072 00073 00074