VTK  9.4.20250421
vtkAddMembershipArray.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
15#ifndef vtkAddMembershipArray_h
16#define vtkAddMembershipArray_h
17
18#include "vtkInfovisCoreModule.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
23
24class VTKINFOVISCORE_EXPORT vtkAddMembershipArray : public vtkPassInputTypeAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
31 enum
32 {
33 FIELD_DATA = 0,
34 POINT_DATA = 1,
35 CELL_DATA = 2,
36 VERTEX_DATA = 3,
37 EDGE_DATA = 4,
38 ROW_DATA = 5
39 };
40
42
45 vtkGetMacro(FieldType, int);
46 vtkSetClampMacro(FieldType, int, 0, 5);
48
50
54 vtkSetStringMacro(OutputArrayName);
55 vtkGetStringMacro(OutputArrayName);
57
58 vtkSetStringMacro(InputArrayName);
59 vtkGetStringMacro(InputArrayName);
60
62 vtkGetObjectMacro(InputValues, vtkAbstractArray);
63
64protected:
67
68 int FillInputPortInformation(int port, vtkInformation* info) override;
69
71
75
77
78private:
80 void operator=(const vtkAddMembershipArray&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#endif
Abstract superclass for all arrays.
Add an array to the output indicating membership within an input selection.
~vtkAddMembershipArray() override
static vtkAddMembershipArray * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractArray * InputValues
void SetInputValues(vtkAbstractArray *)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.