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_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 vtkSetMacro(PassTensorsToOutput,int);
00094 vtkGetMacro(PassTensorsToOutput,int);
00095 vtkBooleanMacro(PassTensorsToOutput,int);
00096
00098 vtkSetMacro(ExtractScalars,int);
00099 vtkGetMacro(ExtractScalars,int);
00100 vtkBooleanMacro(ExtractScalars,int);
00101
00103 vtkSetVector2Macro(ScalarComponents,int);
00104 vtkGetVectorMacro(ScalarComponents,int,2);
00105
00110 vtkSetMacro(ScalarMode,int);
00111 vtkGetMacro(ScalarMode,int);
00112 void ScalarIsComponent() {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
00113 void ScalarIsEffectiveStress() {
00114 this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
00115 void ScalarIsDeterminant() {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
00116
00118 vtkSetMacro(ExtractVectors,int);
00119 vtkGetMacro(ExtractVectors,int);
00120 vtkBooleanMacro(ExtractVectors,int);
00121
00124 vtkSetVector6Macro(VectorComponents,int);
00125 vtkGetVectorMacro(VectorComponents,int,6);
00126
00127
00129 vtkSetMacro(ExtractNormals,int);
00130 vtkGetMacro(ExtractNormals,int);
00131 vtkBooleanMacro(ExtractNormals,int);
00132
00135 vtkSetMacro(NormalizeNormals,int);
00136 vtkGetMacro(NormalizeNormals,int);
00137 vtkBooleanMacro(NormalizeNormals,int);
00138
00141 vtkSetVector6Macro(NormalComponents,int);
00142 vtkGetVectorMacro(NormalComponents,int,6);
00143
00146 vtkSetMacro(ExtractTCoords,int);
00147 vtkGetMacro(ExtractTCoords,int);
00148 vtkBooleanMacro(ExtractTCoords,int);
00149
00151 vtkSetClampMacro(NumberOfTCoords,int,1,3);
00152 vtkGetMacro(NumberOfTCoords,int);
00153
00157 vtkSetVector6Macro(TCoordComponents,int);
00158 vtkGetVectorMacro(TCoordComponents,int,6);
00159
00160 protected:
00161 vtkExtractTensorComponents();
00162 ~vtkExtractTensorComponents() {};
00163 vtkExtractTensorComponents(const vtkExtractTensorComponents&) {};
00164 void operator=(const vtkExtractTensorComponents&) {};
00165
00166 void Execute();
00167
00168 int PassTensorsToOutput;
00169
00170 int ExtractScalars;
00171 int ExtractVectors;
00172 int ExtractNormals;
00173 int ExtractTCoords;
00174
00175 int ScalarMode;
00176 int ScalarComponents[2];
00177
00178 int VectorComponents[6];
00179
00180 int NormalizeNormals;
00181 int NormalComponents[6];
00182
00183 int NumberOfTCoords;
00184 int TCoordComponents[6];
00185
00186 };
00187
00188 #endif
00189