00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00073 #ifndef __vtkExtractTensorComponents_h
00074 #define __vtkExtractTensorComponents_h
00075
00076 #include "vtkDataSetToDataSetFilter.h"
00077
00078 #define VTK_EXTRACT_COMPONENT 0
00079 #define VTK_EXTRACT_EFFECTIVE_STRESS 1
00080 #define VTK_EXTRACT_DETERMINANT 2
00081
00082 class VTK_GRAPHICS_EXPORT vtkExtractTensorComponents : public vtkDataSetToDataSetFilter
00083 {
00084 public:
00085 vtkTypeMacro(vtkExtractTensorComponents,vtkDataSetToDataSetFilter);
00086 void PrintSelf(ostream& os, vtkIndent indent);
00087
00090 static vtkExtractTensorComponents *New();
00091
00093
00094 vtkSetMacro(PassTensorsToOutput,int);
00095 vtkGetMacro(PassTensorsToOutput,int);
00096 vtkBooleanMacro(PassTensorsToOutput,int);
00098
00100
00101 vtkSetMacro(ExtractScalars,int);
00102 vtkGetMacro(ExtractScalars,int);
00103 vtkBooleanMacro(ExtractScalars,int);
00105
00107
00108 vtkSetVector2Macro(ScalarComponents,int);
00109 vtkGetVectorMacro(ScalarComponents,int,2);
00111
00113
00117 vtkSetMacro(ScalarMode,int);
00118 vtkGetMacro(ScalarMode,int);
00119 void ScalarIsComponent() {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
00120 void ScalarIsEffectiveStress() {
00121 this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
00122 void ScalarIsDeterminant() {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
00124
00126
00127 vtkSetMacro(ExtractVectors,int);
00128 vtkGetMacro(ExtractVectors,int);
00129 vtkBooleanMacro(ExtractVectors,int);
00131
00133
00135 vtkSetVector6Macro(VectorComponents,int);
00136 vtkGetVectorMacro(VectorComponents,int,6);
00138
00139
00141
00142 vtkSetMacro(ExtractNormals,int);
00143 vtkGetMacro(ExtractNormals,int);
00144 vtkBooleanMacro(ExtractNormals,int);
00146
00148
00150 vtkSetMacro(NormalizeNormals,int);
00151 vtkGetMacro(NormalizeNormals,int);
00152 vtkBooleanMacro(NormalizeNormals,int);
00154
00156
00158 vtkSetVector6Macro(NormalComponents,int);
00159 vtkGetVectorMacro(NormalComponents,int,6);
00161
00163
00165 vtkSetMacro(ExtractTCoords,int);
00166 vtkGetMacro(ExtractTCoords,int);
00167 vtkBooleanMacro(ExtractTCoords,int);
00169
00171
00172 vtkSetClampMacro(NumberOfTCoords,int,1,3);
00173 vtkGetMacro(NumberOfTCoords,int);
00175
00177
00180 vtkSetVector6Macro(TCoordComponents,int);
00181 vtkGetVectorMacro(TCoordComponents,int,6);
00183
00184 protected:
00185 vtkExtractTensorComponents();
00186 ~vtkExtractTensorComponents() {};
00187
00188 void Execute();
00189
00190 int PassTensorsToOutput;
00191
00192 int ExtractScalars;
00193 int ExtractVectors;
00194 int ExtractNormals;
00195 int ExtractTCoords;
00196
00197 int ScalarMode;
00198 int ScalarComponents[2];
00199
00200 int VectorComponents[6];
00201
00202 int NormalizeNormals;
00203 int NormalComponents[6];
00204
00205 int NumberOfTCoords;
00206 int TCoordComponents[6];
00207
00208 private:
00209 vtkExtractTensorComponents(const vtkExtractTensorComponents&);
00210 void operator=(const vtkExtractTensorComponents&);
00211 };
00212
00213 #endif
00214