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 =========================================================================*/
56 #ifndef vtkBooleanTexture_h
57 #define vtkBooleanTexture_h
58 
59 #include "vtkImageAlgorithm.h"
60 #include "vtkImagingHybridModule.h" // For export macro
61 
62 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
63 {
64 public:
66 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
74  vtkSetMacro(XSize, int);
75  vtkGetMacro(XSize, int);
77 
79 
82  vtkSetMacro(YSize, int);
83  vtkGetMacro(YSize, int);
85 
87 
90  vtkSetMacro(Thickness, int);
91  vtkGetMacro(Thickness, int);
93 
95 
98  vtkSetVector2Macro(InIn, unsigned char);
99  vtkGetVectorMacro(InIn, unsigned char, 2);
101 
103 
106  vtkSetVector2Macro(InOut, unsigned char);
107  vtkGetVectorMacro(InOut, unsigned char, 2);
109 
111 
114  vtkSetVector2Macro(OutIn, unsigned char);
115  vtkGetVectorMacro(OutIn, unsigned char, 2);
117 
119 
122  vtkSetVector2Macro(OutOut, unsigned char);
123  vtkGetVectorMacro(OutOut, unsigned char, 2);
125 
127 
130  vtkSetVector2Macro(OnOn, unsigned char);
131  vtkGetVectorMacro(OnOn, unsigned char, 2);
133 
135 
138  vtkSetVector2Macro(OnIn, unsigned char);
139  vtkGetVectorMacro(OnIn, unsigned char, 2);
141 
143 
146  vtkSetVector2Macro(OnOut, unsigned char);
147  vtkGetVectorMacro(OnOut, unsigned char, 2);
149 
151 
154  vtkSetVector2Macro(InOn, unsigned char);
155  vtkGetVectorMacro(InOn, unsigned char, 2);
157 
159 
162  vtkSetVector2Macro(OutOn, unsigned char);
163  vtkGetVectorMacro(OutOn, unsigned char, 2);
165 
166 protected:
168  ~vtkBooleanTexture() override = default;
169 
172 
173  int XSize;
174  int YSize;
175 
177  unsigned char InIn[2];
178  unsigned char InOut[2];
179  unsigned char OutIn[2];
180  unsigned char OutOut[2];
181  unsigned char OnOn[2];
182  unsigned char OnIn[2];
183  unsigned char OnOut[2];
184  unsigned char InOn[2];
185  unsigned char OutOn[2];
186 
187 private:
188  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
189  void operator=(const vtkBooleanTexture&) = delete;
190 };
191 
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
Definition: vtkDataObject.h:75
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321