VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Imaging/Color/vtkImageMapToWindowLevelColors.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageMapToWindowLevelColors.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 =========================================================================*/
00033 #ifndef vtkImageMapToWindowLevelColors_h
00034 #define vtkImageMapToWindowLevelColors_h
00035 
00036 
00037 #include "vtkImagingColorModule.h" // For export macro
00038 #include "vtkImageMapToColors.h"
00039 
00040 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
00041 {
00042 public:
00043   static vtkImageMapToWindowLevelColors *New();
00044   vtkTypeMacro(vtkImageMapToWindowLevelColors,vtkImageMapToColors);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00051   vtkSetMacro( Window, double );
00052   vtkGetMacro( Window, double );
00054 
00056 
00059   vtkSetMacro( Level, double );
00060   vtkGetMacro( Level, double );
00062 
00063 protected:
00064   vtkImageMapToWindowLevelColors();
00065   ~vtkImageMapToWindowLevelColors();
00066 
00067   virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00068   void ThreadedRequestData(vtkInformation *request,
00069                            vtkInformationVector **inputVector,
00070                            vtkInformationVector *outputVector,
00071                            vtkImageData ***inData, vtkImageData **outData,
00072                            int extent[6], int id);
00073   virtual int RequestData(vtkInformation *request,
00074                           vtkInformationVector **inputVector,
00075                           vtkInformationVector *outputVector);
00076 
00077   double Window;
00078   double Level;
00079 
00080 private:
00081   vtkImageMapToWindowLevelColors(const vtkImageMapToWindowLevelColors&);  // Not implemented.
00082   void operator=(const vtkImageMapToWindowLevelColors&);  // Not implemented.
00083 };
00084 
00085 #endif
00086 
00087 
00088 
00089 
00090 
00091 
00092