00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExtractVectorComponents.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00053 #ifndef __vtkExtractVectorComponents_h 00054 #define __vtkExtractVectorComponents_h 00055 00056 #include "vtkSource.h" 00057 00058 class vtkDataSet; 00059 00060 class VTK_GRAPHICS_EXPORT vtkExtractVectorComponents : public vtkSource 00061 { 00062 public: 00063 static vtkExtractVectorComponents *New(); 00064 vtkTypeRevisionMacro(vtkExtractVectorComponents,vtkSource); 00065 void PrintSelf(ostream& os, vtkIndent indent); 00066 00068 virtual void SetInput(vtkDataSet *input); 00069 00071 vtkDataSet *GetInput(); 00072 00077 vtkDataSet *GetVxComponent(); 00078 00084 vtkDataSet *GetVyComponent(); 00085 00091 vtkDataSet *GetVzComponent(); 00092 00097 vtkDataSet *GetOutput(int i=0); //default extracts vector component. 00098 00100 00102 vtkSetMacro(ExtractToFieldData, int); 00103 vtkGetMacro(ExtractToFieldData, int); 00104 vtkBooleanMacro(ExtractToFieldData, int); 00106 00107 protected: 00108 vtkExtractVectorComponents(); 00109 ~vtkExtractVectorComponents(); 00110 00111 void Execute(); 00112 int ExtractToFieldData; 00113 private: 00114 vtkExtractVectorComponents(const vtkExtractVectorComponents&); // Not implemented. 00115 void operator=(const vtkExtractVectorComponents&); // Not implemented. 00116 }; 00117 00118 #endif 00119 00120