VTK  9.3.20240418
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:
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 
64 protected:
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
Abstract superclass for all arrays.
Add an array to the output indicating membership within an input selection.
~vtkAddMembershipArray() override
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.
static vtkAddMembershipArray * New()
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447