VTK  9.4.20241227
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
54#ifndef vtkBooleanTexture_h
55#define vtkBooleanTexture_h
56
57#include "vtkImageAlgorithm.h"
58#include "vtkImagingHybridModule.h" // For export macro
59
60VTK_ABI_NAMESPACE_BEGIN
61class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
62{
63public:
65
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
73 vtkSetMacro(XSize, int);
74 vtkGetMacro(XSize, int);
76
78
81 vtkSetMacro(YSize, int);
82 vtkGetMacro(YSize, int);
84
86
89 vtkSetMacro(Thickness, int);
90 vtkGetMacro(Thickness, int);
92
94
97 vtkSetVector2Macro(InIn, unsigned char);
98 vtkGetVectorMacro(InIn, unsigned char, 2);
100
102
105 vtkSetVector2Macro(InOut, unsigned char);
106 vtkGetVectorMacro(InOut, unsigned char, 2);
108
110
113 vtkSetVector2Macro(OutIn, unsigned char);
114 vtkGetVectorMacro(OutIn, unsigned char, 2);
116
118
121 vtkSetVector2Macro(OutOut, unsigned char);
122 vtkGetVectorMacro(OutOut, unsigned char, 2);
124
126
129 vtkSetVector2Macro(OnOn, unsigned char);
130 vtkGetVectorMacro(OnOn, unsigned char, 2);
132
134
137 vtkSetVector2Macro(OnIn, unsigned char);
138 vtkGetVectorMacro(OnIn, unsigned char, 2);
140
142
145 vtkSetVector2Macro(OnOut, unsigned char);
146 vtkGetVectorMacro(OnOut, unsigned char, 2);
148
150
153 vtkSetVector2Macro(InOn, unsigned char);
154 vtkGetVectorMacro(InOn, unsigned char, 2);
156
158
161 vtkSetVector2Macro(OutOn, unsigned char);
162 vtkGetVectorMacro(OutOn, unsigned char, 2);
164
165protected:
167 ~vtkBooleanTexture() override = default;
168
171
172 int XSize;
173 int YSize;
174
176 unsigned char InIn[2];
177 unsigned char InOut[2];
178 unsigned char OutIn[2];
179 unsigned char OutOut[2];
180 unsigned char OnOn[2];
181 unsigned char OnIn[2];
182 unsigned char OnOut[2];
183 unsigned char InOn[2];
184 unsigned char OutOn[2];
185
186private:
187 vtkBooleanTexture(const vtkBooleanTexture&) = delete;
188 void operator=(const vtkBooleanTexture&) = delete;
189};
190
191VTK_ABI_NAMESPACE_END
192#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
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.