VTK  9.2.5
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:
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:
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
a simple class to control print indentation
Definition: vtkIndent.h:119
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.
static vtkMergeVectorComponents * New()
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).
~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.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453