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=========================================================================*/
53#ifndef vtkBooleanTexture_h
54#define vtkBooleanTexture_h
55
56#include "vtkImageAlgorithm.h"
57#include "vtkImagingHybridModule.h" // For export macro
58
59class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
60{
61public:
63
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
71 vtkSetMacro(XSize, int);
72 vtkGetMacro(XSize, int);
74
76
79 vtkSetMacro(YSize, int);
80 vtkGetMacro(YSize, int);
82
84
87 vtkSetMacro(Thickness, int);
88 vtkGetMacro(Thickness, int);
90
92
95 vtkSetVector2Macro(InIn, unsigned char);
96 vtkGetVectorMacro(InIn, unsigned char, 2);
98
100
103 vtkSetVector2Macro(InOut, unsigned char);
104 vtkGetVectorMacro(InOut, unsigned char, 2);
106
108
111 vtkSetVector2Macro(OutIn, unsigned char);
112 vtkGetVectorMacro(OutIn, unsigned char, 2);
114
116
119 vtkSetVector2Macro(OutOut, unsigned char);
120 vtkGetVectorMacro(OutOut, unsigned char, 2);
122
124
127 vtkSetVector2Macro(OnOn, unsigned char);
128 vtkGetVectorMacro(OnOn, unsigned char, 2);
130
132
135 vtkSetVector2Macro(OnIn, unsigned char);
136 vtkGetVectorMacro(OnIn, unsigned char, 2);
138
140
143 vtkSetVector2Macro(OnOut, unsigned char);
144 vtkGetVectorMacro(OnOut, unsigned char, 2);
146
148
151 vtkSetVector2Macro(InOn, unsigned char);
152 vtkGetVectorMacro(InOn, unsigned char, 2);
154
156
159 vtkSetVector2Macro(OutOn, unsigned char);
160 vtkGetVectorMacro(OutOn, unsigned char, 2);
162
163protected:
165 ~vtkBooleanTexture() override = default;
166
169
170 int XSize;
171 int YSize;
172
174 unsigned char InIn[2];
175 unsigned char InOut[2];
176 unsigned char OutIn[2];
177 unsigned char OutOut[2];
178 unsigned char OnOn[2];
179 unsigned char OnIn[2];
180 unsigned char OnOut[2];
181 unsigned char InOn[2];
182 unsigned char OutOn[2];
183
184private:
185 vtkBooleanTexture(const vtkBooleanTexture&) = delete;
186 void operator=(const vtkBooleanTexture&) = delete;
187};
188
189#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:69
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321