VTK  9.5.2
vtkAssignAttribute.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
60
61#ifndef vtkAssignAttribute_h
62#define vtkAssignAttribute_h
63
64#include "vtkFiltersCoreModule.h" // For export macro
66
67#include "vtkDataSetAttributes.h" // Needed for NUM_ATTRIBUTES
68
69VTK_ABI_NAMESPACE_BEGIN
70class vtkFieldData;
71
72class VTKFILTERSCORE_EXPORT vtkAssignAttribute : public vtkPassInputTypeAlgorithm
73{
74public:
76 void PrintSelf(ostream& os, vtkIndent indent) override;
77
82
86 void Assign(int inputAttributeType, int attributeType, int attributeLoc);
87
91 void Assign(const char* fieldName, int attributeType, int attributeLoc);
92
97 void Assign(const char* name, const char* attributeType, const char* attributeLoc);
98
99 // Always keep NUM_ATTRIBUTE_LOCS as the last entry
108
109protected:
111 {
114 };
115
118
122
128
131
132private:
133 vtkAssignAttribute(const vtkAssignAttribute&) = delete;
134 void operator=(const vtkAssignAttribute&) = delete;
135};
136
137VTK_ABI_NAMESPACE_END
138#endif
static char AttributeNames[vtkDataSetAttributes::NUM_ATTRIBUTES][20]
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Assign(const char *name, const char *attributeType, const char *attributeLoc)
Helper method used by other language bindings.
~vtkAssignAttribute() override
void Assign(const char *fieldName, int attributeType, int attributeLoc)
Label an array as an attribute.
int FillInputPortInformation(int, vtkInformation *) override
void Assign(int inputAttributeType, int attributeType, int attributeLoc)
Label an attribute as another attribute.
static vtkAssignAttribute * New()
Create a new vtkAssignAttribute.
static char AttributeLocationNames[vtkAssignAttribute::NUM_ATTRIBUTE_LOCS][12]
represent and manipulate fields of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.