VTK  9.1.0
vtkBooleanTexture.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBooleanTexture.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=========================================================================*/
63#ifndef vtkBooleanTexture_h
64#define vtkBooleanTexture_h
65
66#include "vtkImageAlgorithm.h"
67#include "vtkImagingHybridModule.h" // For export macro
68
69class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
70{
71public:
73
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
81 vtkSetMacro(XSize, int);
82 vtkGetMacro(XSize, int);
84
86
89 vtkSetMacro(YSize, int);
90 vtkGetMacro(YSize, int);
92
94
97 vtkSetMacro(Thickness, int);
98 vtkGetMacro(Thickness, int);
100
102
105 vtkSetVector2Macro(InIn, unsigned char);
106 vtkGetVectorMacro(InIn, unsigned char, 2);
108
110
113 vtkSetVector2Macro(InOut, unsigned char);
114 vtkGetVectorMacro(InOut, unsigned char, 2);
116
118
121 vtkSetVector2Macro(OutIn, unsigned char);
122 vtkGetVectorMacro(OutIn, unsigned char, 2);
124
126
129 vtkSetVector2Macro(OutOut, unsigned char);
130 vtkGetVectorMacro(OutOut, unsigned char, 2);
132
134
137 vtkSetVector2Macro(OnOn, unsigned char);
138 vtkGetVectorMacro(OnOn, unsigned char, 2);
140
142
145 vtkSetVector2Macro(OnIn, unsigned char);
146 vtkGetVectorMacro(OnIn, unsigned char, 2);
148
150
153 vtkSetVector2Macro(OnOut, unsigned char);
154 vtkGetVectorMacro(OnOut, unsigned char, 2);
156
158
161 vtkSetVector2Macro(InOn, unsigned char);
162 vtkGetVectorMacro(InOn, unsigned char, 2);
164
166
169 vtkSetVector2Macro(OutOn, unsigned char);
170 vtkGetVectorMacro(OutOn, unsigned char, 2);
172
173protected:
175 ~vtkBooleanTexture() override = default;
176
179
180 int XSize;
181 int YSize;
182
184 unsigned char InIn[2];
185 unsigned char InOut[2];
186 unsigned char OutIn[2];
187 unsigned char OutOut[2];
188 unsigned char OnOn[2];
189 unsigned char OnIn[2];
190 unsigned char OnOut[2];
191 unsigned char InOn[2];
192 unsigned char OutOn[2];
193
194private:
195 vtkBooleanTexture(const vtkBooleanTexture&) = delete;
196 void operator=(const vtkBooleanTexture&) = delete;
197};
198
199#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321