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

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 =========================================================================*/
00041 #ifndef __vtkWin32ImageMapper_h
00042 #define __vtkWin32ImageMapper_h
00043 
00044 
00045 #include "vtkImageMapper.h"
00046 
00047 class vtkImageActor2D;
00048 class vtkLookupTable;
00049 
00050 #ifndef VTK_REMOVE_LEGACY_CODE
00051 class VTK_RENDERING_EXPORT vtkWin32ImageMapper : public vtkImageMapper
00052 {
00053 public:
00054   static vtkWin32ImageMapper *New();
00055   vtkTypeRevisionMacro(vtkWin32ImageMapper,vtkImageMapper);
00056 
00058 
00059   void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) {
00060     this->RenderStart(viewport,actor);}
00062 
00064 
00066   void RenderData(vtkViewport* viewport, vtkImageData* data,
00067                   vtkActor2D* actor);
00069 
00071   unsigned long int GetMTime();
00072 
00074   void PrintSelf(ostream& os, vtkIndent indent);
00075 
00077 
00084   virtual void SetLookupTable(vtkLookupTable*);
00085   vtkGetObjectMacro(LookupTable, vtkLookupTable);
00087 
00089 
00094   static HBITMAP CreateBitmapObject(
00095     HBITMAP oldBitmap, BITMAPINFO &dataHeader, HDC windowDC,
00096     unsigned char *&DataOut, vtkImageData *data, int width, int height);
00098 
00099   static void GenerateBitmapData(
00100     vtkImageData *data, void *inptr, unsigned char *DataOut, int dim,
00101     int DisplayExtent[6], float cwindow, float clevel, float cshift, float cscale,
00102     vtkLookupTable *lut);
00103 
00104   unsigned char *DataOut;       // the data in the DIBSection
00105   HBITMAP HBitmap;                      // our handle to the DIBSection
00106 
00107 protected:
00108   vtkLookupTable *LookupTable;
00109 
00110   vtkWin32ImageMapper();
00111   ~vtkWin32ImageMapper();
00112 
00113 private:
00114   vtkWin32ImageMapper(const vtkWin32ImageMapper&);  // Not implemented.
00115   void operator=(const vtkWin32ImageMapper&);  // Not implemented.
00116 };
00117 #endif
00118 
00119 #endif
00120 
00121 
00122 
00123 
00124 
00125 
00126 
00127 
00128