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

vtkExtractVectorComponents.h

Go to the documentation of this file.
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 =========================================================================*/
00049 #ifndef __vtkExtractVectorComponents_h
00050 #define __vtkExtractVectorComponents_h
00051 
00052 #include "vtkSource.h"
00053 
00054 class vtkDataSet;
00055 
00056 class VTK_GRAPHICS_EXPORT vtkExtractVectorComponents : public vtkSource
00057 {
00058 public:
00059   static vtkExtractVectorComponents *New();
00060   vtkTypeRevisionMacro(vtkExtractVectorComponents,vtkSource);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064   virtual void SetInput(vtkDataSet *input);
00065 
00067   vtkDataSet *GetInput();
00068 
00073   vtkDataSet *GetVxComponent();
00074 
00080   vtkDataSet *GetVyComponent();
00081   
00087   vtkDataSet *GetVzComponent();
00088 
00093   vtkDataSet *GetOutput(int i=0); //default extracts vector component.
00094 
00096 
00098   vtkSetMacro(ExtractToFieldData, int);
00099   vtkGetMacro(ExtractToFieldData, int);
00100   vtkBooleanMacro(ExtractToFieldData, int);
00102 
00103 protected:
00104   vtkExtractVectorComponents();
00105   ~vtkExtractVectorComponents();
00106 
00107   void Execute();
00108   int ExtractToFieldData;
00109 private:
00110   vtkExtractVectorComponents(const vtkExtractVectorComponents&);  // Not implemented.
00111   void operator=(const vtkExtractVectorComponents&);  // Not implemented.
00112 };
00113 
00114 #endif
00115 
00116