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 =========================================================================*/ 00029 #ifndef __vtkOpenGLImageMapper_h 00030 #define __vtkOpenGLImageMapper_h 00031 00032 00033 #include "vtkImageMapper.h" 00034 class vtkActor2D; 00035 00036 00037 class VTK_RENDERING_EXPORT vtkOpenGLImageMapper : public vtkImageMapper 00038 { 00039 public: 00040 static vtkOpenGLImageMapper *New(); 00041 vtkTypeRevisionMacro(vtkOpenGLImageMapper,vtkImageMapper); 00042 virtual void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) { 00047 this->RenderStart(viewport,actor);} 00049 00051 00053 void RenderData(vtkViewport* viewport, vtkImageData* data, 00054 vtkActor2D* actor); 00056 00057 protected: 00058 // 00059 // 00060 vtkOpenGLImageMapper(); 00061 ~vtkOpenGLImageMapper(); 00062 00063 private: 00064 vtkOpenGLImageMapper(const vtkOpenGLImageMapper&); // Not implemented. 00065 void operator=(const vtkOpenGLImageMapper&); // Not implemented. 00066 }; 00067 00068 00069 #endif 00070 00071 00072 00073 00074 00075 00076 00077 00078