VTK  9.5.20250807
vtkMergeVectorComponents.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
22#ifndef vtkMergeVectorComponents_h
23#define vtkMergeVectorComponents_h
24
25#include "vtkDataObject.h" // For attribute types
26#include "vtkFiltersGeneralModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKFILTERSGENERAL_EXPORT vtkMergeVectorComponents : public vtkPassInputTypeAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 vtkSetStringMacro(XArrayName);
42 vtkGetStringMacro(XArrayName);
44
46
49 vtkSetStringMacro(YArrayName);
50 vtkGetStringMacro(YArrayName);
52
54
57 vtkSetStringMacro(ZArrayName);
58 vtkGetStringMacro(ZArrayName);
60
62
66 vtkSetStringMacro(OutputVectorName);
67 vtkGetStringMacro(OutputVectorName);
69
71
76 vtkSetMacro(AttributeType, int);
77 vtkGetMacro(AttributeType, int);
78 void SetAttributeTypeToPointData() { this->SetAttributeType(vtkDataObject::POINT); }
79 void SetAttributeTypeToCellData() { this->SetAttributeType(vtkDataObject::CELL); }
81
82protected:
85
86 int FillInputPortInformation(int port, vtkInformation* info) override;
87
89
95
96private:
98 void operator=(const vtkMergeVectorComponents&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge components of many single-component arrays into one vector
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetAttributeTypeToPointData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetAttributeTypeToCellData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
static vtkMergeVectorComponents * New()
~vtkMergeVectorComponents() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Superclass for algorithms that produce output of the same type as input.