Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkExtractTensorComponents.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractTensorComponents.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00057 #ifndef __vtkExtractTensorComponents_h
00058 #define __vtkExtractTensorComponents_h
00059 
00060 #include "vtkDataSetToDataSetFilter.h"
00061 
00062 #define VTK_EXTRACT_COMPONENT 0
00063 #define VTK_EXTRACT_EFFECTIVE_STRESS 1
00064 #define VTK_EXTRACT_DETERMINANT 2
00065 
00066 class VTK_GRAPHICS_EXPORT vtkExtractTensorComponents : public vtkDataSetToDataSetFilter 
00067 {
00068 public:
00069   vtkTypeRevisionMacro(vtkExtractTensorComponents,vtkDataSetToDataSetFilter);
00070   void PrintSelf(ostream& os, vtkIndent indent);
00071 
00074   static vtkExtractTensorComponents *New();
00075 
00077 
00078   vtkSetMacro(PassTensorsToOutput,int);
00079   vtkGetMacro(PassTensorsToOutput,int);
00080   vtkBooleanMacro(PassTensorsToOutput,int);
00082 
00084 
00085   vtkSetMacro(ExtractScalars,int);
00086   vtkGetMacro(ExtractScalars,int);
00087   vtkBooleanMacro(ExtractScalars,int);
00089 
00091 
00092   vtkSetVector2Macro(ScalarComponents,int);
00093   vtkGetVectorMacro(ScalarComponents,int,2);
00095 
00097 
00101   vtkSetMacro(ScalarMode,int);
00102   vtkGetMacro(ScalarMode,int);
00103   void SetScalarModeToComponent()
00104     {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
00105   void SetScalarModeToEffectiveStress()
00106     {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
00107   void SetScalarModeToDeterminant()
00108     {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
00109   void ScalarIsComponent()
00110     {this->SetScalarMode(VTK_EXTRACT_COMPONENT);};
00111   void ScalarIsEffectiveStress()
00112     {this->SetScalarMode(VTK_EXTRACT_EFFECTIVE_STRESS);};
00113   void ScalarIsDeterminant()
00114     {this->SetScalarMode(VTK_EXTRACT_DETERMINANT);};
00116 
00118 
00119   vtkSetMacro(ExtractVectors,int);
00120   vtkGetMacro(ExtractVectors,int);
00121   vtkBooleanMacro(ExtractVectors,int);
00123 
00125 
00127   vtkSetVector6Macro(VectorComponents,int);
00128   vtkGetVectorMacro(VectorComponents,int,6);
00130 
00131 
00133 
00134   vtkSetMacro(ExtractNormals,int);
00135   vtkGetMacro(ExtractNormals,int);
00136   vtkBooleanMacro(ExtractNormals,int);
00138 
00140 
00142   vtkSetMacro(NormalizeNormals,int);
00143   vtkGetMacro(NormalizeNormals,int);
00144   vtkBooleanMacro(NormalizeNormals,int);
00146 
00148 
00150   vtkSetVector6Macro(NormalComponents,int);
00151   vtkGetVectorMacro(NormalComponents,int,6);
00153 
00155 
00157   vtkSetMacro(ExtractTCoords,int);
00158   vtkGetMacro(ExtractTCoords,int);
00159   vtkBooleanMacro(ExtractTCoords,int);
00161 
00163 
00164   vtkSetClampMacro(NumberOfTCoords,int,1,3);
00165   vtkGetMacro(NumberOfTCoords,int);
00167 
00169 
00172   vtkSetVector6Macro(TCoordComponents,int);
00173   vtkGetVectorMacro(TCoordComponents,int,6);
00175 
00176 protected:
00177   vtkExtractTensorComponents();
00178   ~vtkExtractTensorComponents() {};
00179 
00180   void Execute();
00181 
00182   int PassTensorsToOutput;
00183 
00184   int ExtractScalars;
00185   int ExtractVectors;
00186   int ExtractNormals;
00187   int ExtractTCoords;
00188 
00189   int ScalarMode;
00190   int ScalarComponents[2];
00191 
00192   int VectorComponents[6];
00193 
00194   int NormalizeNormals;
00195   int NormalComponents[6];
00196 
00197   int NumberOfTCoords;
00198   int TCoordComponents[6];
00199 
00200 private:
00201   vtkExtractTensorComponents(const vtkExtractTensorComponents&);  // Not implemented.
00202   void operator=(const vtkExtractTensorComponents&);  // Not implemented.
00203 };
00204 
00205 #endif
00206