VTK  9.2.6
vtkMergeVectorComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergeVectorComponents.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkMergeVectorComponents_h
35 #define vtkMergeVectorComponents_h
36 
37 #include "vtkDataObject.h" // For attribute types
38 #include "vtkFiltersGeneralModule.h" // For export macro
40 
41 class VTKFILTERSGENERAL_EXPORT vtkMergeVectorComponents : public vtkPassInputTypeAlgorithm
42 {
43 public:
44  static vtkMergeVectorComponents* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetStringMacro(XArrayName);
53  vtkGetStringMacro(XArrayName);
55 
57 
60  vtkSetStringMacro(YArrayName);
61  vtkGetStringMacro(YArrayName);
63 
65 
68  vtkSetStringMacro(ZArrayName);
69  vtkGetStringMacro(ZArrayName);
71 
73 
77  vtkSetStringMacro(OutputVectorName);
78  vtkGetStringMacro(OutputVectorName);
80 
82 
87  vtkSetMacro(AttributeType, int);
88  vtkGetMacro(AttributeType, int);
89  void SetAttributeTypeToPointData() { this->SetAttributeType(vtkDataObject::POINT); }
90  void SetAttributeTypeToCellData() { this->SetAttributeType(vtkDataObject::CELL); }
92 
93 protected:
95  ~vtkMergeVectorComponents() override;
96 
98 
100 
101  char* XArrayName;
102  char* YArrayName;
103  char* ZArrayName;
106 
107 private:
109  void operator=(const vtkMergeVectorComponents&) = delete;
110 };
111 
112 #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:39
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()