VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkExtractVectorComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractVectorComponents.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef __vtkExtractVectorComponents_h
37 #define __vtkExtractVectorComponents_h
38 
39 #include "vtkFiltersExtractionModule.h" // For export macro
40 #include "vtkDataSetAlgorithm.h"
41 
42 class vtkDataSet;
43 
44 class VTKFILTERSEXTRACTION_EXPORT vtkExtractVectorComponents : public vtkDataSetAlgorithm
45 {
46 public:
47  static vtkExtractVectorComponents *New();
48  vtkTypeMacro(vtkExtractVectorComponents,vtkDataSetAlgorithm);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52  virtual void SetInputData(vtkDataSet *input);
53 
58  vtkDataSet *GetVxComponent();
59 
65  vtkDataSet *GetVyComponent();
66 
72  vtkDataSet *GetVzComponent();
73 
75 
77  vtkSetMacro(ExtractToFieldData, int);
78  vtkGetMacro(ExtractToFieldData, int);
79  vtkBooleanMacro(ExtractToFieldData, int);
81 
82 protected:
85 
86  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
89 private:
90  vtkExtractVectorComponents(const vtkExtractVectorComponents&); // Not implemented.
91  void operator=(const vtkExtractVectorComponents&); // Not implemented.
92 };
93 
94 #endif
95 
96 
extract components of vector as separate scalars