VTK
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 
37 class vtkAbstractArray;
38 
39 class VTKINFOVISCORE_EXPORT vtkAddMembershipArray : public vtkPassInputTypeAlgorithm
40 {
41 public:
42  static vtkAddMembershipArray* New();
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 
76  void SetInputValues(vtkAbstractArray*);
77  vtkGetObjectMacro(InputValues,vtkAbstractArray);
78 
79 protected:
81  ~vtkAddMembershipArray() override;
82 
84 
85  int RequestData(
88  vtkInformationVector*) override;
89 
90  int FieldType;
93 
95 
96 private:
98  void operator=(const vtkAddMembershipArray&) = delete;
99 };
100 
101 #endif
102 
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:39
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()