VTK  9.3.20240425
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
36VTK_ABI_NAMESPACE_BEGIN
37class vtkDataSet;
38
39class VTKFILTERSEXTRACTION_EXPORT vtkExtractVectorComponents : public vtkDataSetAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
49 virtual void SetInputData(vtkDataSet* input);
50
58
67
76
78
82 vtkSetMacro(ExtractToFieldData, vtkTypeBool);
83 vtkGetMacro(ExtractToFieldData, vtkTypeBool);
84 vtkBooleanMacro(ExtractToFieldData, vtkTypeBool);
86
87protected:
90
94
95private:
97 void operator=(const vtkExtractVectorComponents&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
extract components of vector as separate scalars
virtual void SetInputData(vtkDataSet *input)
Specify the input data or filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet * GetVyComponent()
Get the output dataset representing velocity y-component.
vtkDataSet * GetVzComponent()
Get the output dataset representing velocity z-component.
vtkDataSet * GetVxComponent()
Get the output dataset representing velocity x-component.
~vtkExtractVectorComponents() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkExtractVectorComponents * New()
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64