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 "vtkImagingHybridModule.h" // For export macro
50 #include "vtkImageAlgorithm.h"
51 
53 {
54 public:
55  static vtkBooleanTexture *New();
56 
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 
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 
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
generate 2D texture map based on combinations of inside, outside, and on region boundary ...
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTKIMAGINGHYBRID_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:64