VTK  9.0.1
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 =========================================================================*/
44 #ifndef vtkBooleanTexture_h
45 #define vtkBooleanTexture_h
46 
47 #include "vtkImageAlgorithm.h"
48 #include "vtkImagingHybridModule.h" // For export macro
49 
50 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
51 {
52 public:
54 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkSetMacro(XSize, int);
63  vtkGetMacro(XSize, int);
65 
67 
70  vtkSetMacro(YSize, int);
71  vtkGetMacro(YSize, int);
73 
75 
78  vtkSetMacro(Thickness, int);
79  vtkGetMacro(Thickness, int);
81 
83 
86  vtkSetVector2Macro(InIn, unsigned char);
87  vtkGetVectorMacro(InIn, unsigned char, 2);
89 
91 
94  vtkSetVector2Macro(InOut, unsigned char);
95  vtkGetVectorMacro(InOut, unsigned char, 2);
97 
99 
102  vtkSetVector2Macro(OutIn, unsigned char);
103  vtkGetVectorMacro(OutIn, unsigned char, 2);
105 
107 
110  vtkSetVector2Macro(OutOut, unsigned char);
111  vtkGetVectorMacro(OutOut, unsigned char, 2);
113 
115 
118  vtkSetVector2Macro(OnOn, unsigned char);
119  vtkGetVectorMacro(OnOn, unsigned char, 2);
121 
123 
126  vtkSetVector2Macro(OnIn, unsigned char);
127  vtkGetVectorMacro(OnIn, unsigned char, 2);
129 
131 
134  vtkSetVector2Macro(OnOut, unsigned char);
135  vtkGetVectorMacro(OnOut, unsigned char, 2);
137 
139 
142  vtkSetVector2Macro(InOn, unsigned char);
143  vtkGetVectorMacro(InOn, unsigned char, 2);
145 
147 
150  vtkSetVector2Macro(OutOn, unsigned char);
151  vtkGetVectorMacro(OutOn, unsigned char, 2);
153 
154 protected:
156  ~vtkBooleanTexture() override {}
157 
160 
161  int XSize;
162  int YSize;
163 
165  unsigned char InIn[2];
166  unsigned char InOut[2];
167  unsigned char OutIn[2];
168  unsigned char OutOut[2];
169  unsigned char OnOn[2];
170  unsigned char OnIn[2];
171  unsigned char OnOut[2];
172  unsigned char InOn[2];
173  unsigned char OutOn[2];
174 
175 private:
176  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
177  void operator=(const vtkBooleanTexture&) = delete;
178 };
179 
180 #endif
generate 2D texture map based on combinations of inside, outside, and on region boundary
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkBooleanTexture * New()
~vtkBooleanTexture() override
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:60
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321