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 =========================================================================*/
46 #ifndef __vtkBooleanTexture_h
47 #define __vtkBooleanTexture_h
48 
49 #include "vtkImageAlgorithm.h"
50 
52 {
53 public:
54  static vtkBooleanTexture *New();
55 
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkSetMacro(XSize,int);
62  vtkGetMacro(XSize,int);
64 
66 
67  vtkSetMacro(YSize,int);
68  vtkGetMacro(YSize,int);
70 
72 
73  vtkSetMacro(Thickness,int);
74  vtkGetMacro(Thickness,int);
76 
78 
79  vtkSetVector2Macro(InIn,unsigned char);
80  vtkGetVectorMacro(InIn,unsigned char,2);
82 
84 
85  vtkSetVector2Macro(InOut,unsigned char);
86  vtkGetVectorMacro(InOut,unsigned char,2);
88 
90 
91  vtkSetVector2Macro(OutIn,unsigned char);
92  vtkGetVectorMacro(OutIn,unsigned char,2);
94 
96 
97  vtkSetVector2Macro(OutOut,unsigned char);
98  vtkGetVectorMacro(OutOut,unsigned char,2);
100 
102 
103  vtkSetVector2Macro(OnOn,unsigned char);
104  vtkGetVectorMacro(OnOn,unsigned char,2);
106 
108 
109  vtkSetVector2Macro(OnIn,unsigned char);
110  vtkGetVectorMacro(OnIn,unsigned char,2);
112 
114 
115  vtkSetVector2Macro(OnOut,unsigned char);
116  vtkGetVectorMacro(OnOut,unsigned char,2);
118 
120 
121  vtkSetVector2Macro(InOn,unsigned char);
122  vtkGetVectorMacro(InOn,unsigned char,2);
124 
126 
127  vtkSetVector2Macro(OutOn,unsigned char);
128  vtkGetVectorMacro(OutOn,unsigned char,2);
130 
131 protected:
134 
136  virtual void ExecuteData(vtkDataObject *data);
137 
138  int XSize;
139  int YSize;
140 
142  unsigned char InIn[2];
143  unsigned char InOut[2];
144  unsigned char OutIn[2];
145  unsigned char OutOut[2];
146  unsigned char OnOn[2];
147  unsigned char OnIn[2];
148  unsigned char OnOut[2];
149  unsigned char InOn[2];
150  unsigned char OutOn[2];
151 
152 private:
153  vtkBooleanTexture(const vtkBooleanTexture&); // Not implemented.
154  void operator=(const vtkBooleanTexture&); // Not implemented.
155 };
156 
157 #endif
158 
159