VTK  9.3.1
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 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKFILTERSGENERAL_EXPORT vtkMergeVectorComponents : public vtkPassInputTypeAlgorithm
31 {
32 public:
33  static vtkMergeVectorComponents* New();
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 
82 protected:
84  ~vtkMergeVectorComponents() override;
85 
87 
89 
90  char* XArrayName;
91  char* YArrayName;
92  char* ZArrayName;
95 
96 private:
98  void operator=(const vtkMergeVectorComponents&) = delete;
99 };
100 
101 VTK_ABI_NAMESPACE_END
102 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
void SetAttributeTypeToCellData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetAttributeTypeToPointData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
merge components of many single-component arrays into one vector
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()