VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Imaging/General/vtkImageCheckerboard.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageCheckerboard.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 =========================================================================*/
00028 #ifndef vtkImageCheckerboard_h
00029 #define vtkImageCheckerboard_h
00030 
00031 #include "vtkImagingGeneralModule.h" // For export macro
00032 #include "vtkThreadedImageAlgorithm.h"
00033 
00034 
00035 class VTKIMAGINGGENERAL_EXPORT vtkImageCheckerboard : public vtkThreadedImageAlgorithm
00036 {
00037 public:
00038   static vtkImageCheckerboard *New();
00039   vtkTypeMacro(vtkImageCheckerboard,vtkThreadedImageAlgorithm);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetVector3Macro(NumberOfDivisions,int);
00045   vtkGetVectorMacro(NumberOfDivisions,int,3);
00047 
00049 
00050   virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
00051   virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
00053 
00054 protected:
00055   vtkImageCheckerboard();
00056   ~vtkImageCheckerboard() {}
00057 
00058   virtual void ThreadedRequestData(vtkInformation *request,
00059                                    vtkInformationVector **inputVector,
00060                                    vtkInformationVector *outputVector,
00061                                    vtkImageData ***inData,
00062                                    vtkImageData **outData,
00063                                    int extent[6], int threadId);
00064   int NumberOfDivisions[3];
00065 private:
00066   vtkImageCheckerboard(const vtkImageCheckerboard&);  // Not implemented.
00067   void operator=(const vtkImageCheckerboard&);  // Not implemented.
00068 };
00069 
00070 #endif
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 
00083