VTK: Filters/Extraction/vtkExtractVectorComponents.h Source File

| 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:
42 static vtkExtractVectorComponents* New();
43 vtkTypeMacro(vtkExtractVectorComponents, vtkDataSetAlgorithm);
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:
88 vtkExtractVectorComponents();
89 ~vtkExtractVectorComponents() override;
90
91 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
92 vtkTypeBool ExtractToFieldData;
93 int OutputsInitialized;
94
95 private:
96 vtkExtractVectorComponents(const vtkExtractVectorComponents&) = delete;
97 void operator=(const vtkExtractVectorComponents&) = delete;
98 };
99
100 VTK_ABI_NAMESPACE_END
101 #endif
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:38
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkExtractVectorComponents
extract components of vector as separate scalars
Definition: vtkExtractVectorComponents.h:40
vtkExtractVectorComponents::SetInputData
virtual void SetInputData(vtkDataSet *input)
Specify the input data or filter.
vtkExtractVectorComponents::GetVzComponent
vtkDataSet * GetVzComponent()
Get the output dataset representing velocity z-component.
vtkExtractVectorComponents::OutputsInitialized
int OutputsInitialized
Definition: vtkExtractVectorComponents.h:93
vtkExtractVectorComponents::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractVectorComponents::GetVxComponent
vtkDataSet * GetVxComponent()
Get the output dataset representing velocity x-component.
vtkExtractVectorComponents::ExtractToFieldData
vtkTypeBool ExtractToFieldData
Definition: vtkExtractVectorComponents.h:92
vtkExtractVectorComponents::New
static vtkExtractVectorComponents * New()
vtkExtractVectorComponents::GetVyComponent
vtkDataSet * GetVyComponent()
Get the output dataset representing velocity y-component.
vtkExtractVectorComponents::vtkExtractVectorComponents
vtkExtractVectorComponents()
vtkExtractVectorComponents::~vtkExtractVectorComponents
~vtkExtractVectorComponents() override
vtkExtractVectorComponents::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkDataSetAlgorithm.h