VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkImagingHybridModule.h" // For export macro
50 #include "vtkImageAlgorithm.h"
51 
52 class VTKIMAGINGHYBRID_EXPORT vtkBooleanTexture : public vtkImageAlgorithm
53 {
54 public:
55  static vtkBooleanTexture *New();
56 
57  vtkTypeMacro(vtkBooleanTexture,vtkImageAlgorithm);
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  vtkSetMacro(XSize,int);
63  vtkGetMacro(XSize,int);
65 
67 
68  vtkSetMacro(YSize,int);
69  vtkGetMacro(YSize,int);
71 
73 
74  vtkSetMacro(Thickness,int);
75  vtkGetMacro(Thickness,int);
77 
79 
80  vtkSetVector2Macro(InIn,unsigned char);
81  vtkGetVectorMacro(InIn,unsigned char,2);
83 
85 
86  vtkSetVector2Macro(InOut,unsigned char);
87  vtkGetVectorMacro(InOut,unsigned char,2);
89 
91 
92  vtkSetVector2Macro(OutIn,unsigned char);
93  vtkGetVectorMacro(OutIn,unsigned char,2);
95 
97 
98  vtkSetVector2Macro(OutOut,unsigned char);
99  vtkGetVectorMacro(OutOut,unsigned char,2);
101 
103 
104  vtkSetVector2Macro(OnOn,unsigned char);
105  vtkGetVectorMacro(OnOn,unsigned char,2);
107 
109 
110  vtkSetVector2Macro(OnIn,unsigned char);
111  vtkGetVectorMacro(OnIn,unsigned char,2);
113 
115 
116  vtkSetVector2Macro(OnOut,unsigned char);
117  vtkGetVectorMacro(OnOut,unsigned char,2);
119 
121 
122  vtkSetVector2Macro(InOn,unsigned char);
123  vtkGetVectorMacro(InOn,unsigned char,2);
125 
127 
128  vtkSetVector2Macro(OutOn,unsigned char);
129  vtkGetVectorMacro(OutOn,unsigned char,2);
131 
132 protected:
135 
136  virtual int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *);
137  virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation* outInfo);
138 
139  int XSize;
140  int YSize;
141 
143  unsigned char InIn[2];
144  unsigned char InOut[2];
145  unsigned char OutIn[2];
146  unsigned char OutOut[2];
147  unsigned char OnOn[2];
148  unsigned char OnIn[2];
149  unsigned char OnOut[2];
150  unsigned char InOn[2];
151  unsigned char OutOn[2];
152 
153 private:
154  vtkBooleanTexture(const vtkBooleanTexture&); // Not implemented.
155  void operator=(const vtkBooleanTexture&); // Not implemented.
156 };
157 
158 #endif
159 
160 
generate 2D texture map based on combinations of inside, outside, and on region boundary ...