VTK
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 =========================================================================*/
47 #ifndef vtkBooleanTexture_h
48 #define vtkBooleanTexture_h
49 
50 #include "vtkImagingHybridModule.h" // For export macro
51 #include "vtkImageAlgorithm.h"
52 
53 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
54 {
55 public:
56  static vtkBooleanTexture *New();
57 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkSetMacro(XSize,int);
66  vtkGetMacro(XSize,int);
68 
70 
73  vtkSetMacro(YSize,int);
74  vtkGetMacro(YSize,int);
76 
78 
81  vtkSetMacro(Thickness,int);
82  vtkGetMacro(Thickness,int);
84 
86 
89  vtkSetVector2Macro(InIn,unsigned char);
90  vtkGetVectorMacro(InIn,unsigned char,2);
92 
94 
97  vtkSetVector2Macro(InOut,unsigned char);
98  vtkGetVectorMacro(InOut,unsigned char,2);
100 
102 
105  vtkSetVector2Macro(OutIn,unsigned char);
106  vtkGetVectorMacro(OutIn,unsigned char,2);
108 
110 
113  vtkSetVector2Macro(OutOut,unsigned char);
114  vtkGetVectorMacro(OutOut,unsigned char,2);
116 
118 
121  vtkSetVector2Macro(OnOn,unsigned char);
122  vtkGetVectorMacro(OnOn,unsigned char,2);
124 
126 
129  vtkSetVector2Macro(OnIn,unsigned char);
130  vtkGetVectorMacro(OnIn,unsigned char,2);
132 
134 
137  vtkSetVector2Macro(OnOut,unsigned char);
138  vtkGetVectorMacro(OnOut,unsigned char,2);
140 
142 
145  vtkSetVector2Macro(InOn,unsigned char);
146  vtkGetVectorMacro(InOn,unsigned char,2);
148 
150 
153  vtkSetVector2Macro(OutOn,unsigned char);
154  vtkGetVectorMacro(OutOn,unsigned char,2);
156 
157 protected:
159  ~vtkBooleanTexture() override {}
160 
163 
164  int XSize;
165  int YSize;
166 
168  unsigned char InIn[2];
169  unsigned char InOut[2];
170  unsigned char OutIn[2];
171  unsigned char OutOut[2];
172  unsigned char OnOn[2];
173  unsigned char OnIn[2];
174  unsigned char OnOut[2];
175  unsigned char InOn[2];
176  unsigned char OutOn[2];
177 
178 private:
179  vtkBooleanTexture(const vtkBooleanTexture&) = delete;
180  void operator=(const vtkBooleanTexture&) = delete;
181 };
182 
183 #endif
184 
185 
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
generate 2D texture map based on combinations of inside, outside, and on region boundary ...
~vtkBooleanTexture() override
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
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:64