VTK
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 =========================================================================*/
29 #ifndef vtkImageCheckerboard_h
30 #define vtkImageCheckerboard_h
31 
32 #include "vtkImagingGeneralModule.h" // For export macro
34 
35 
36 class VTKIMAGINGGENERAL_EXPORT vtkImageCheckerboard : public vtkThreadedImageAlgorithm
37 {
38 public:
39  static vtkImageCheckerboard *New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetVector3Macro(NumberOfDivisions,int);
48  vtkGetVectorMacro(NumberOfDivisions,int,3);
50 
54  virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
55  virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
56 
57 protected:
59  ~vtkImageCheckerboard() override {}
60 
61  void ThreadedRequestData(vtkInformation *request,
62  vtkInformationVector **inputVector,
63  vtkInformationVector *outputVector,
64  vtkImageData ***inData,
65  vtkImageData **outData,
66  int extent[6], int threadId) override;
67  int NumberOfDivisions[3];
68 private:
70  void operator=(const vtkImageCheckerboard&) = delete;
71 };
72 
73 #endif
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
Store vtkAlgorithm input/output information.
void SetInputData(vtkDataObject *)
Assign a data object as input.
Generic filter that has one input.
virtual void SetInput1Data(vtkDataObject *in)
Set the two inputs to this filter.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
show two images at once using a checkboard pattern
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetInput2Data(vtkDataObject *in)
general representation of visualization data
Definition: vtkDataObject.h:64