VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/OpenGL2/vtkOpenGLImageMapper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOpenGLImageMapper.h
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 #include "vtkRenderingOpenGL2Module.h" // For export macro
00033 #include "vtkImageMapper.h"
00034 
00035 class vtkActor2D;
00036 class vtkTexturedActor2D;
00037 
00038 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageMapper : public vtkImageMapper
00039 {
00040 public:
00041   static vtkOpenGLImageMapper *New();
00042   vtkTypeMacro(vtkOpenGLImageMapper, vtkImageMapper);
00043   virtual void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor)
00048     { this->RenderStart(viewport, actor); }
00050 
00052 
00054   void RenderData(vtkViewport* viewport, vtkImageData* data,
00055                   vtkActor2D* actor);
00057 
00060   void DrawPixels(vtkViewport *vp, int width, int height, int numComponents, void *data);
00061 
00062 protected:
00063   vtkOpenGLImageMapper();
00064   ~vtkOpenGLImageMapper();
00065 
00066   vtkTexturedActor2D *Actor;
00067 
00068 private:
00069   vtkOpenGLImageMapper(const vtkOpenGLImageMapper&);  // Not implemented.
00070   void operator=(const vtkOpenGLImageMapper&);  // Not implemented.
00071 };
00072 
00073 #endif