VTK  9.1.0
vtkAddMembershipArray.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAddMembershipArray.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=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
31#ifndef vtkAddMembershipArray_h
32#define vtkAddMembershipArray_h
33
34#include "vtkInfovisCoreModule.h" // For export macro
36
38
39class VTKINFOVISCORE_EXPORT vtkAddMembershipArray : public vtkPassInputTypeAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
46 enum
47 {
48 FIELD_DATA = 0,
49 POINT_DATA = 1,
50 CELL_DATA = 2,
51 VERTEX_DATA = 3,
52 EDGE_DATA = 4,
53 ROW_DATA = 5
54 };
55
57
60 vtkGetMacro(FieldType, int);
61 vtkSetClampMacro(FieldType, int, 0, 5);
63
65
69 vtkSetStringMacro(OutputArrayName);
70 vtkGetStringMacro(OutputArrayName);
72
73 vtkSetStringMacro(InputArrayName);
74 vtkGetStringMacro(InputArrayName);
75
77 vtkGetObjectMacro(InputValues, vtkAbstractArray);
78
79protected:
82
83 int FillInputPortInformation(int port, vtkInformation* info) override;
84
86
90
92
93private:
95 void operator=(const vtkAddMembershipArray&) = delete;
96};
97
98#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.