VTK  9.2.6
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 =========================================================================*/
66 #ifndef vtkBooleanTexture_h
67 #define vtkBooleanTexture_h
68 
69 #include "vtkImageAlgorithm.h"
70 #include "vtkImagingHybridModule.h" // For export macro
71 
72 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
73 {
74 public:
76 
78  void PrintSelf(ostream& os, vtkIndent indent) override;
79 
81 
84  vtkSetMacro(XSize, int);
85  vtkGetMacro(XSize, int);
87 
89 
92  vtkSetMacro(YSize, int);
93  vtkGetMacro(YSize, int);
95 
97 
100  vtkSetMacro(Thickness, int);
101  vtkGetMacro(Thickness, int);
103 
105 
108  vtkSetVector2Macro(InIn, unsigned char);
109  vtkGetVectorMacro(InIn, unsigned char, 2);
111 
113 
116  vtkSetVector2Macro(InOut, unsigned char);
117  vtkGetVectorMacro(InOut, unsigned char, 2);
119 
121 
124  vtkSetVector2Macro(OutIn, unsigned char);
125  vtkGetVectorMacro(OutIn, unsigned char, 2);
127 
129 
132  vtkSetVector2Macro(OutOut, unsigned char);
133  vtkGetVectorMacro(OutOut, unsigned char, 2);
135 
137 
140  vtkSetVector2Macro(OnOn, unsigned char);
141  vtkGetVectorMacro(OnOn, unsigned char, 2);
143 
145 
148  vtkSetVector2Macro(OnIn, unsigned char);
149  vtkGetVectorMacro(OnIn, unsigned char, 2);
151 
153 
156  vtkSetVector2Macro(OnOut, unsigned char);
157  vtkGetVectorMacro(OnOut, unsigned char, 2);
159 
161 
164  vtkSetVector2Macro(InOn, unsigned char);
165  vtkGetVectorMacro(InOn, unsigned char, 2);
167 
169 
172  vtkSetVector2Macro(OutOn, unsigned char);
173  vtkGetVectorMacro(OutOn, unsigned char, 2);
175 
176 protected:
178  ~vtkBooleanTexture() override = default;
179 
182 
183  int XSize;
184  int YSize;
185 
187  unsigned char InIn[2];
188  unsigned char InOut[2];
189  unsigned char OutIn[2];
190  unsigned char OutOut[2];
191  unsigned char OnOn[2];
192  unsigned char OnIn[2];
193  unsigned char OnOut[2];
194  unsigned char InOn[2];
195  unsigned char OutOn[2];
196 
197 private:
198  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
199  void operator=(const vtkBooleanTexture&) = delete;
200 };
201 
202 #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:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321