VTK
vtkExtractTensorComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractTensorComponents.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 vtkExtractTensorComponents_h
47 #define vtkExtractTensorComponents_h
48 
49 #include "vtkFiltersExtractionModule.h" // For export macro
50 #include "vtkDataSetAlgorithm.h"
51 
52 #define VTK_EXTRACT_COMPONENT 0
53 #define VTK_EXTRACT_EFFECTIVE_STRESS 1
54 #define VTK_EXTRACT_DETERMINANT 2
55 
56 class VTKFILTERSEXTRACTION_EXPORT vtkExtractTensorComponents : public vtkDataSetAlgorithm
57 {
58 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
67 
69 
72  vtkSetMacro(PassTensorsToOutput,int);
73  vtkGetMacro(PassTensorsToOutput,int);
74  vtkBooleanMacro(PassTensorsToOutput,int);
76 
78 
81  vtkSetMacro(ExtractScalars,int);
82  vtkGetMacro(ExtractScalars,int);
83  vtkBooleanMacro(ExtractScalars,int);
85 
87 
90  vtkSetVector2Macro(ScalarComponents,int);
91  vtkGetVectorMacro(ScalarComponents,int,2);
93 
95 
101  vtkSetMacro(ScalarMode,int);
102  vtkGetMacro(ScalarMode,int);
104  {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
106  {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
108  {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
110  {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
112  {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
114  {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
116 
118 
121  vtkSetMacro(ExtractVectors,int);
122  vtkGetMacro(ExtractVectors,int);
123  vtkBooleanMacro(ExtractVectors,int);
125 
127 
131  vtkSetVector6Macro(VectorComponents,int);
132  vtkGetVectorMacro(VectorComponents,int,6);
134 
135 
137 
140  vtkSetMacro(ExtractNormals,int);
141  vtkGetMacro(ExtractNormals,int);
142  vtkBooleanMacro(ExtractNormals,int);
144 
146 
150  vtkSetMacro(NormalizeNormals,int);
151  vtkGetMacro(NormalizeNormals,int);
152  vtkBooleanMacro(NormalizeNormals,int);
154 
156 
160  vtkSetVector6Macro(NormalComponents,int);
161  vtkGetVectorMacro(NormalComponents,int,6);
163 
165 
168  vtkSetMacro(ExtractTCoords,int);
169  vtkGetMacro(ExtractTCoords,int);
170  vtkBooleanMacro(ExtractTCoords,int);
172 
174 
177  vtkSetClampMacro(NumberOfTCoords,int,1,3);
178  vtkGetMacro(NumberOfTCoords,int);
180 
182 
187  vtkSetVector6Macro(TCoordComponents,int);
188  vtkGetVectorMacro(TCoordComponents,int,6);
190 
191 protected:
194 
196 
198 
203 
205  int ScalarComponents[2];
206 
207  int VectorComponents[6];
208 
210  int NormalComponents[6];
211 
213  int TCoordComponents[6];
214 
215 private:
216  vtkExtractTensorComponents(const vtkExtractTensorComponents&) VTK_DELETE_FUNCTION;
217  void operator=(const vtkExtractTensorComponents&) VTK_DELETE_FUNCTION;
218 };
219 
220 #endif
221 
Superclass for algorithms that produce output of the same type as input.
extract parts of tensor and create a scalar, vector, normal, or texture coordinates.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkExtractTensorComponents * New()
Construct object to extract nothing and to not pass tensor data through the pipeline.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_EXTRACT_EFFECTIVE_STRESS
#define VTK_EXTRACT_DETERMINANT
#define VTK_EXTRACT_COMPONENT
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.