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 =========================================================================*/
28 #ifndef vtkImageCheckerboard_h
29 #define vtkImageCheckerboard_h
30 
31 #include "vtkImagingGeneralModule.h" // For export macro
33 
34 
36 {
37 public:
38  static vtkImageCheckerboard *New();
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 
Store vtkAlgorithm input/output information.
void SetInputData(vtkDataObject *)
void PrintSelf(ostream &os, vtkIndent indent)
Generic filter that has one input..
virtual void SetInput1Data(vtkDataObject *in)
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
#define VTKIMAGINGGENERAL_EXPORT
show two images at once using a checkboard pattern
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
virtual void SetInput2Data(vtkDataObject *in)
general representation of visualization data
Definition: vtkDataObject.h:64