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
35#ifndef vtkBooleanTexture_h
36#define vtkBooleanTexture_h
37
38#include "vtkImageAlgorithm.h"
39#include "vtkImagingHybridModule.h" // For export macro
40
41VTK_ABI_NAMESPACE_BEGIN
42class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
43{
44public:
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
146protected:
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
167private:
168 vtkBooleanTexture(const vtkBooleanTexture&) = delete;
169 void operator=(const vtkBooleanTexture&) = delete;
170};
171
172VTK_ABI_NAMESPACE_END
173#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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.