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

dox/Imaging/vtkImageMapToWindowLevelColors.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMapToWindowLevelColors.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 =========================================================================*/
00037 #ifndef __vtkImageMapToWindowLevelColors_h
00038 #define __vtkImageMapToWindowLevelColors_h
00039 
00040 
00041 #include "vtkImageMapToColors.h"
00042 
00043 class VTK_IMAGING_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
00044 {
00045 public:
00046   static vtkImageMapToWindowLevelColors *New();
00047   vtkTypeRevisionMacro(vtkImageMapToWindowLevelColors,vtkImageMapToColors);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00054   vtkSetMacro( Window, float );
00055   vtkGetMacro( Window, float );
00057   
00059 
00062   vtkSetMacro( Level, float );
00063   vtkGetMacro( Level, float );
00065   
00066 protected:
00067   vtkImageMapToWindowLevelColors();
00068   ~vtkImageMapToWindowLevelColors();
00069 
00070   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00071   void ExecuteInformation(){this->vtkImageMapToColors::ExecuteInformation();};
00072   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00073                        int extent[6], int id);
00074   void ExecuteData(vtkDataObject *output);
00075   
00076   float Window;
00077   float Level;
00078   
00079 private:
00080   vtkImageMapToWindowLevelColors(const vtkImageMapToWindowLevelColors&);  // Not implemented.
00081   void operator=(const vtkImageMapToWindowLevelColors&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086 
00087 
00088 
00089 
00090 
00091