VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageCheckerboard.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageCheckerboard.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkImageCheckerboard_h
29 #define __vtkImageCheckerboard_h
30 
31 #include "vtkImagingGeneralModule.h" // For export macro
32 #include "vtkThreadedImageAlgorithm.h"
33 
34 
35 class VTKIMAGINGGENERAL_EXPORT vtkImageCheckerboard : public vtkThreadedImageAlgorithm
36 {
37 public:
38  static vtkImageCheckerboard *New();
39  vtkTypeMacro(vtkImageCheckerboard,vtkThreadedImageAlgorithm);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetVector3Macro(NumberOfDivisions,int);
45  vtkGetVectorMacro(NumberOfDivisions,int,3);
47 
49 
50  virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
51  virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
53 
54 protected:
57 
58  virtual void ThreadedRequestData(vtkInformation *request,
59  vtkInformationVector **inputVector,
60  vtkInformationVector *outputVector,
61  vtkImageData ***inData,
62  vtkImageData **outData,
63  int extent[6], int threadId);
64  int NumberOfDivisions[3];
65 private:
66  vtkImageCheckerboard(const vtkImageCheckerboard&); // Not implemented.
67  void operator=(const vtkImageCheckerboard&); // Not implemented.
68 };
69 
70 #endif
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
virtual void SetInput1Data(vtkDataObject *in)
show two images at once using a checkboard pattern
virtual void SetInput2Data(vtkDataObject *in)