VTK  9.3.1
vtkExtractVectorComponents.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
30 #ifndef vtkExtractVectorComponents_h
31 #define vtkExtractVectorComponents_h
32 
33 #include "vtkDataSetAlgorithm.h"
34 #include "vtkFiltersExtractionModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkDataSet;
38 
39 class VTKFILTERSEXTRACTION_EXPORT vtkExtractVectorComponents : public vtkDataSetAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
49  virtual void SetInputData(vtkDataSet* input);
50 
57  vtkDataSet* GetVxComponent();
58 
66  vtkDataSet* GetVyComponent();
67 
75  vtkDataSet* GetVzComponent();
76 
78 
82  vtkSetMacro(ExtractToFieldData, vtkTypeBool);
83  vtkGetMacro(ExtractToFieldData, vtkTypeBool);
84  vtkBooleanMacro(ExtractToFieldData, vtkTypeBool);
86 
87 protected:
89  ~vtkExtractVectorComponents() override;
90 
94 
95 private:
97  void operator=(const vtkExtractVectorComponents&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void SetInputData(vtkDataObject *)
Assign a data object as input.
int vtkTypeBool
Definition: vtkABI.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
extract components of vector as separate scalars
static vtkDataSetAlgorithm * New()