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) override;
61 
67 
69 
72  vtkSetMacro(PassTensorsToOutput,vtkTypeBool);
73  vtkGetMacro(PassTensorsToOutput,vtkTypeBool);
74  vtkBooleanMacro(PassTensorsToOutput,vtkTypeBool);
76 
78 
81  vtkSetMacro(ExtractScalars,vtkTypeBool);
82  vtkGetMacro(ExtractScalars,vtkTypeBool);
83  vtkBooleanMacro(ExtractScalars,vtkTypeBool);
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,vtkTypeBool);
122  vtkGetMacro(ExtractVectors,vtkTypeBool);
123  vtkBooleanMacro(ExtractVectors,vtkTypeBool);
125 
127 
131  vtkSetVector6Macro(VectorComponents,int);
132  vtkGetVectorMacro(VectorComponents,int,6);
134 
135 
137 
140  vtkSetMacro(ExtractNormals,vtkTypeBool);
141  vtkGetMacro(ExtractNormals,vtkTypeBool);
142  vtkBooleanMacro(ExtractNormals,vtkTypeBool);
144 
146 
150  vtkSetMacro(NormalizeNormals,vtkTypeBool);
151  vtkGetMacro(NormalizeNormals,vtkTypeBool);
152  vtkBooleanMacro(NormalizeNormals,vtkTypeBool);
154 
156 
160  vtkSetVector6Macro(NormalComponents,int);
161  vtkGetVectorMacro(NormalComponents,int,6);
163 
165 
168  vtkSetMacro(ExtractTCoords,vtkTypeBool);
169  vtkGetMacro(ExtractTCoords,vtkTypeBool);
170  vtkBooleanMacro(ExtractTCoords,vtkTypeBool);
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:
217  void operator=(const vtkExtractTensorComponents&) = delete;
218 };
219 
220 #endif
221 
void SetScalarModeToDeterminant()
Specify how to extract the scalar.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ScalarIsEffectiveStress()
Specify how to extract the scalar.
void SetScalarModeToComponent()
Specify how to extract the scalar.
#define VTK_EXTRACT_DETERMINANT
a simple class to control print indentation
Definition: vtkIndent.h:39
extract parts of tensor and create a scalar, vector, normal, or texture coordinates.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetScalarModeToEffectiveStress()
Specify how to extract the scalar.
#define VTK_EXTRACT_COMPONENT
void ScalarIsComponent()
Specify how to extract the scalar.
void ScalarIsDeterminant()
Specify how to extract the scalar.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
#define VTK_EXTRACT_EFFECTIVE_STRESS