00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExtractVectorComponents.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 =========================================================================*/ 00036 #ifndef __vtkExtractVectorComponents_h 00037 #define __vtkExtractVectorComponents_h 00038 00039 #include "vtkDataSetAlgorithm.h" 00040 00041 class vtkDataSet; 00042 00043 class VTK_GRAPHICS_EXPORT vtkExtractVectorComponents : public vtkDataSetAlgorithm 00044 { 00045 public: 00046 static vtkExtractVectorComponents *New(); 00047 vtkTypeRevisionMacro(vtkExtractVectorComponents,vtkDataSetAlgorithm); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 virtual void SetInput(vtkDataSet *input); 00052 00057 vtkDataSet *GetVxComponent(); 00058 00064 vtkDataSet *GetVyComponent(); 00065 00071 vtkDataSet *GetVzComponent(); 00072 00074 00076 vtkSetMacro(ExtractToFieldData, int); 00077 vtkGetMacro(ExtractToFieldData, int); 00078 vtkBooleanMacro(ExtractToFieldData, int); 00080 00081 protected: 00082 vtkExtractVectorComponents(); 00083 ~vtkExtractVectorComponents(); 00084 00085 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00086 int ExtractToFieldData; 00087 int OutputsInitialized; 00088 private: 00089 vtkExtractVectorComponents(const vtkExtractVectorComponents&); // Not implemented. 00090 void operator=(const vtkExtractVectorComponents&); // Not implemented. 00091 }; 00092 00093 #endif 00094 00095