VTK  9.3.0
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
44 #ifndef vtkBooleanTexture_h
45 #define vtkBooleanTexture_h
46 
47 #include "vtkImageAlgorithm.h"
48 #include "vtkImagingHybridModule.h" // For export macro
49 
50 VTK_ABI_NAMESPACE_BEGIN
51 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
52 {
53 public:
55 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkSetMacro(XSize, int);
64  vtkGetMacro(XSize, int);
66 
68 
71  vtkSetMacro(YSize, int);
72  vtkGetMacro(YSize, int);
74 
76 
79  vtkSetMacro(Thickness, int);
80  vtkGetMacro(Thickness, int);
82 
84 
87  vtkSetVector2Macro(InIn, unsigned char);
88  vtkGetVectorMacro(InIn, unsigned char, 2);
90 
92 
95  vtkSetVector2Macro(InOut, unsigned char);
96  vtkGetVectorMacro(InOut, unsigned char, 2);
98 
100 
103  vtkSetVector2Macro(OutIn, unsigned char);
104  vtkGetVectorMacro(OutIn, unsigned char, 2);
106 
108 
111  vtkSetVector2Macro(OutOut, unsigned char);
112  vtkGetVectorMacro(OutOut, unsigned char, 2);
114 
116 
119  vtkSetVector2Macro(OnOn, unsigned char);
120  vtkGetVectorMacro(OnOn, unsigned char, 2);
122 
124 
127  vtkSetVector2Macro(OnIn, unsigned char);
128  vtkGetVectorMacro(OnIn, unsigned char, 2);
130 
132 
135  vtkSetVector2Macro(OnOut, unsigned char);
136  vtkGetVectorMacro(OnOut, unsigned char, 2);
138 
140 
143  vtkSetVector2Macro(InOn, unsigned char);
144  vtkGetVectorMacro(InOn, unsigned char, 2);
146 
148 
151  vtkSetVector2Macro(OutOn, unsigned char);
152  vtkGetVectorMacro(OutOn, unsigned char, 2);
154 
155 protected:
157  ~vtkBooleanTexture() override = default;
158 
161 
162  int XSize;
163  int YSize;
164 
166  unsigned char InIn[2];
167  unsigned char InOut[2];
168  unsigned char OutIn[2];
169  unsigned char OutOut[2];
170  unsigned char OnOn[2];
171  unsigned char OnIn[2];
172  unsigned char OnOut[2];
173  unsigned char InOn[2];
174  unsigned char OutOn[2];
175 
176 private:
177  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
178  void operator=(const vtkBooleanTexture&) = delete;
179 };
180 
181 VTK_ABI_NAMESPACE_END
182 #endif
generate 2D texture map based on combinations of inside, outside, and on region boundary
~vtkBooleanTexture() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkBooleanTexture * New()
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
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:64
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:315