VTK  9.3.1
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 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkAbstractArray;
23 
24 class VTKINFOVISCORE_EXPORT vtkAddMembershipArray : public vtkPassInputTypeAlgorithm
25 {
26 public:
27  static vtkAddMembershipArray* New();
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 
61  void SetInputValues(vtkAbstractArray*);
62  vtkGetObjectMacro(InputValues, vtkAbstractArray);
63 
64 protected:
66  ~vtkAddMembershipArray() override;
67 
69 
71 
72  int FieldType;
75 
77 
78 private:
80  void operator=(const vtkAddMembershipArray&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
vtkAbstractArray * InputValues
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
Add an array to the output indicating membership within an input selection.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()