Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Rendering/vtkWin32ImageMapper.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWin32ImageMapper.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 =========================================================================*/ 00029 #ifndef __vtkWin32ImageMapper_h 00030 #define __vtkWin32ImageMapper_h 00031 00032 00033 #include "vtkImageMapper.h" 00034 00035 class vtkImageActor2D; 00036 class vtkLookupTable; 00037 00038 #ifndef VTK_REMOVE_LEGACY_CODE 00039 class VTK_RENDERING_EXPORT vtkWin32ImageMapper : public vtkImageMapper 00040 { 00041 public: 00042 static vtkWin32ImageMapper *New(); 00043 vtkTypeRevisionMacro(vtkWin32ImageMapper,vtkImageMapper); 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 00059 unsigned long int GetMTime(); 00060 00062 void PrintSelf(ostream& os, vtkIndent indent); 00063 00065 00072 virtual void SetLookupTable(vtkLookupTable*); 00073 vtkGetObjectMacro(LookupTable, vtkLookupTable); 00075 00077 00082 static HBITMAP CreateBitmapObject( 00083 HBITMAP oldBitmap, BITMAPINFO &dataHeader, HDC windowDC, 00084 unsigned char *&DataOut, vtkImageData *data, int width, int height); 00086 00087 static void GenerateBitmapData( 00088 vtkImageData *data, void *inptr, unsigned char *DataOut, int dim, 00089 int DisplayExtent[6], float cwindow, float clevel, float cshift, float cscale, 00090 vtkLookupTable *lut); 00091 00092 unsigned char *DataOut; // the data in the DIBSection 00093 HBITMAP HBitmap; // our handle to the DIBSection 00094 00095 protected: 00096 vtkLookupTable *LookupTable; 00097 00098 vtkWin32ImageMapper(); 00099 ~vtkWin32ImageMapper(); 00100 00101 private: 00102 vtkWin32ImageMapper(const vtkWin32ImageMapper&); // Not implemented. 00103 void operator=(const vtkWin32ImageMapper&); // Not implemented. 00104 }; 00105 #endif 00106 00107 #endif 00108 00109 00110 00111 00112 00113 00114 00115 00116