VTK  9.1.0
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=========================================================================*/
26#ifndef vtkMergeVectorComponents_h
27#define vtkMergeVectorComponents_h
28
29#include "vtkDataObject.h" // For attribute types
30#include "vtkFiltersGeneralModule.h" // For export macro
32
33class VTKFILTERSGENERAL_EXPORT vtkMergeVectorComponents : public vtkPassInputTypeAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetStringMacro(XArrayName);
45 vtkGetStringMacro(XArrayName);
47
49
52 vtkSetStringMacro(YArrayName);
53 vtkGetStringMacro(YArrayName);
55
57
60 vtkSetStringMacro(ZArrayName);
61 vtkGetStringMacro(ZArrayName);
63
65
69 vtkSetStringMacro(OutputVectorName);
70 vtkGetStringMacro(OutputVectorName);
72
74
79 vtkSetMacro(AttributeType, int);
80 vtkGetMacro(AttributeType, int);
81 void SetAttributeTypeToPointData() { this->SetAttributeType(vtkDataObject::POINT); }
82 void SetAttributeTypeToCellData() { this->SetAttributeType(vtkDataObject::CELL); }
84
85protected:
88
89 int FillInputPortInformation(int port, vtkInformation* info) override;
90
92
98
99private:
101 void operator=(const vtkMergeVectorComponents&) = delete;
102};
103
104#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.