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_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&);  // Not implemented.
00210   void operator=(const vtkExtractTensorComponents&);  // Not implemented.
00211 };
00212 
00213 #endif
00214 

Generated on Thu Mar 28 14:19:20 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001