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 =========================================================================*/
45 #ifndef vtkExtractTensorComponents_h
46 #define vtkExtractTensorComponents_h
47 
48 #include "vtkFiltersExtractionModule.h" // For export macro
49 #include "vtkDataSetAlgorithm.h"
50 
51 #define VTK_EXTRACT_COMPONENT 0
52 #define VTK_EXTRACT_EFFECTIVE_STRESS 1
53 #define VTK_EXTRACT_DETERMINANT 2
54 
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
64 
66 
67  vtkSetMacro(PassTensorsToOutput,int);
68  vtkGetMacro(PassTensorsToOutput,int);
69  vtkBooleanMacro(PassTensorsToOutput,int);
71 
73 
74  vtkSetMacro(ExtractScalars,int);
75  vtkGetMacro(ExtractScalars,int);
76  vtkBooleanMacro(ExtractScalars,int);
78 
80 
81  vtkSetVector2Macro(ScalarComponents,int);
82  vtkGetVectorMacro(ScalarComponents,int,2);
84 
86 
90  vtkSetMacro(ScalarMode,int);
91  vtkGetMacro(ScalarMode,int);
93  {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
95  {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
97  {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
99  {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
101  {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
103  {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
105 
107 
108  vtkSetMacro(ExtractVectors,int);
109  vtkGetMacro(ExtractVectors,int);
110  vtkBooleanMacro(ExtractVectors,int);
112 
114 
116  vtkSetVector6Macro(VectorComponents,int);
117  vtkGetVectorMacro(VectorComponents,int,6);
119 
120 
122 
123  vtkSetMacro(ExtractNormals,int);
124  vtkGetMacro(ExtractNormals,int);
125  vtkBooleanMacro(ExtractNormals,int);
127 
129 
131  vtkSetMacro(NormalizeNormals,int);
132  vtkGetMacro(NormalizeNormals,int);
133  vtkBooleanMacro(NormalizeNormals,int);
135 
137 
139  vtkSetVector6Macro(NormalComponents,int);
140  vtkGetVectorMacro(NormalComponents,int,6);
142 
144 
146  vtkSetMacro(ExtractTCoords,int);
147  vtkGetMacro(ExtractTCoords,int);
148  vtkBooleanMacro(ExtractTCoords,int);
150 
152 
153  vtkSetClampMacro(NumberOfTCoords,int,1,3);
154  vtkGetMacro(NumberOfTCoords,int);
156 
158 
161  vtkSetVector6Macro(TCoordComponents,int);
162  vtkGetVectorMacro(TCoordComponents,int,6);
164 
165 protected:
168 
170 
172 
177 
179  int ScalarComponents[2];
180 
181  int VectorComponents[6];
182 
184  int NormalComponents[6];
185 
187  int TCoordComponents[6];
188 
189 private:
190  vtkExtractTensorComponents(const vtkExtractTensorComponents&); // Not implemented.
191  void operator=(const vtkExtractTensorComponents&); // Not implemented.
192 };
193 
194 #endif
195 
Store vtkAlgorithm input/output information.
#define VTK_EXTRACT_DETERMINANT
a simple class to control print indentation
Definition: vtkIndent.h:38
extract parts of tensor and create a scalar, vector, normal, or texture coordinates.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKFILTERSEXTRACTION_EXPORT
#define VTK_EXTRACT_COMPONENT
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
#define VTK_EXTRACT_EFFECTIVE_STRESS