Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

graphics/vtkExtractTensorComponents.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractTensorComponents.h,v $
00005   Language:  C++
00006 
00007 
00008 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00009 All rights reserved.
00010 
00011 Redistribution and use in source and binary forms, with or without
00012 modification, are permitted provided that the following conditions are met:
00013 
00014  * Redistributions of source code must retain the above copyright notice,
00015    this list of conditions and the following disclaimer.
00016 
00017  * Redistributions in binary form must reproduce the above copyright notice,
00018    this list of conditions and the following disclaimer in the documentation
00019    and/or other materials provided with the distribution.
00020 
00021  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00022    of any contributors may be used to endorse or promote products derived
00023    from this software without specific prior written permission.
00024 
00025  * Modified source versions must be plainly marked as such, and must not be
00026    misrepresented as being the original software.
00027 
00028 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00029 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00030 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00031 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00032 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00033 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00034 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00035 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00036 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00037 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 

Generated on Wed Nov 21 12:26:58 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001