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 
33 class VTKFILTERSGENERAL_EXPORT vtkMergeVectorComponents : public vtkPassInputTypeAlgorithm
34 {
35 public:
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 
85 protected:
88 
90 
92 
93  char* XArrayName;
94  char* YArrayName;
95  char* ZArrayName;
98 
99 private:
101  void operator=(const vtkMergeVectorComponents&) = delete;
102 };
103 
104 #endif
vtkMergeVectorComponents::SetAttributeTypeToCellData
void SetAttributeTypeToCellData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
Definition: vtkMergeVectorComponents.h:82
vtkDataObject::POINT
@ POINT
Definition: vtkDataObject.h:374
vtkDataObject::CELL
@ CELL
Definition: vtkDataObject.h:375
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkMergeVectorComponents::SetAttributeTypeToPointData
void SetAttributeTypeToPointData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
Definition: vtkMergeVectorComponents.h:81
vtkMergeVectorComponents::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkMergeVectorComponents::~vtkMergeVectorComponents
~vtkMergeVectorComponents() override
vtkMergeVectorComponents::XArrayName
char * XArrayName
Definition: vtkMergeVectorComponents.h:93
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkMergeVectorComponents::AttributeType
int AttributeType
Definition: vtkMergeVectorComponents.h:97
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkMergeVectorComponents::OutputVectorName
char * OutputVectorName
Definition: vtkMergeVectorComponents.h:96
vtkDataObject.h
vtkMergeVectorComponents::New
static vtkMergeVectorComponents * New()
vtkMergeVectorComponents::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMergeVectorComponents::ZArrayName
char * ZArrayName
Definition: vtkMergeVectorComponents.h:95
vtkMergeVectorComponents::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkMergeVectorComponents
merge components of many single-component arrays into one vector
Definition: vtkMergeVectorComponents.h:34
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:52
vtkMergeVectorComponents::YArrayName
char * YArrayName
Definition: vtkMergeVectorComponents.h:94
vtkMergeVectorComponents::vtkMergeVectorComponents
vtkMergeVectorComponents()