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

Graphics/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 =========================================================================*/
00036 #ifndef __vtkExtractVectorComponents_h
00037 #define __vtkExtractVectorComponents_h
00038 
00039 #include "vtkSource.h"
00040 
00041 class vtkDataSet;
00042 
00043 class VTK_GRAPHICS_EXPORT vtkExtractVectorComponents : public vtkSource
00044 {
00045 public:
00046   static vtkExtractVectorComponents *New();
00047   vtkTypeRevisionMacro(vtkExtractVectorComponents,vtkSource);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051   virtual void SetInput(vtkDataSet *input);
00052 
00054   vtkDataSet *GetInput();
00055 
00060   vtkDataSet *GetVxComponent();
00061 
00067   vtkDataSet *GetVyComponent();
00068   
00074   vtkDataSet *GetVzComponent();
00075 
00080   vtkDataSet *GetOutput(int i=0); //default extracts vector component.
00081 
00083 
00085   vtkSetMacro(ExtractToFieldData, int);
00086   vtkGetMacro(ExtractToFieldData, int);
00087   vtkBooleanMacro(ExtractToFieldData, int);
00089 
00090 protected:
00091   vtkExtractVectorComponents();
00092   ~vtkExtractVectorComponents();
00093 
00094   void Execute();
00095   int ExtractToFieldData;
00096 private:
00097   vtkExtractVectorComponents(const vtkExtractVectorComponents&);  // Not implemented.
00098   void operator=(const vtkExtractVectorComponents&);  // Not implemented.
00099 };
00100 
00101 #endif
00102 
00103