VTK  9.3.1
vtkBooleanTexture.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
35 #ifndef vtkBooleanTexture_h
36 #define vtkBooleanTexture_h
37 
38 #include "vtkImageAlgorithm.h"
39 #include "vtkImagingHybridModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
43 {
44 public:
45  static vtkBooleanTexture* New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkSetMacro(XSize, int);
55  vtkGetMacro(XSize, int);
57 
59 
62  vtkSetMacro(YSize, int);
63  vtkGetMacro(YSize, int);
65 
67 
70  vtkSetMacro(Thickness, int);
71  vtkGetMacro(Thickness, int);
73 
75 
78  vtkSetVector2Macro(InIn, unsigned char);
79  vtkGetVectorMacro(InIn, unsigned char, 2);
81 
83 
86  vtkSetVector2Macro(InOut, unsigned char);
87  vtkGetVectorMacro(InOut, unsigned char, 2);
89 
91 
94  vtkSetVector2Macro(OutIn, unsigned char);
95  vtkGetVectorMacro(OutIn, unsigned char, 2);
97 
99 
102  vtkSetVector2Macro(OutOut, unsigned char);
103  vtkGetVectorMacro(OutOut, unsigned char, 2);
105 
107 
110  vtkSetVector2Macro(OnOn, unsigned char);
111  vtkGetVectorMacro(OnOn, unsigned char, 2);
113 
115 
118  vtkSetVector2Macro(OnIn, unsigned char);
119  vtkGetVectorMacro(OnIn, unsigned char, 2);
121 
123 
126  vtkSetVector2Macro(OnOut, unsigned char);
127  vtkGetVectorMacro(OnOut, unsigned char, 2);
129 
131 
134  vtkSetVector2Macro(InOn, unsigned char);
135  vtkGetVectorMacro(InOn, unsigned char, 2);
137 
139 
142  vtkSetVector2Macro(OutOn, unsigned char);
143  vtkGetVectorMacro(OutOn, unsigned char, 2);
145 
146 protected:
148  ~vtkBooleanTexture() override = default;
149 
152 
153  int XSize;
154  int YSize;
155 
157  unsigned char InIn[2];
158  unsigned char InOut[2];
159  unsigned char OutIn[2];
160  unsigned char OutOut[2];
161  unsigned char OnOn[2];
162  unsigned char OnIn[2];
163  unsigned char OnOut[2];
164  unsigned char InOn[2];
165  unsigned char OutOn[2];
166 
167 private:
168  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
169  void operator=(const vtkBooleanTexture&) = delete;
170 };
171 
172 VTK_ABI_NAMESPACE_END
173 #endif
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
generate 2D texture map based on combinations of inside, outside, and on region boundary ...
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Generic algorithm superclass for image algs.
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.
general representation of visualization data
Definition: vtkDataObject.h:54