VTK  9.0.1
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 
86 
87  int FieldType;
90 
92 
93 private:
95  void operator=(const vtkAddMembershipArray&) = delete;
96 };
97 
98 #endif
vtkAddMembershipArray
Add an array to the output indicating membership within an input selection.
Definition: vtkAddMembershipArray.h:39
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:171
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAddMembershipArray::InputArrayName
char * InputArrayName
Definition: vtkAddMembershipArray.h:89
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:75
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAddMembershipArray::OutputArrayName
char * OutputArrayName
Definition: vtkAddMembershipArray.h:88
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkAddMembershipArray::InputValues
vtkAbstractArray * InputValues
Definition: vtkAddMembershipArray.h:91
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51
vtkAddMembershipArray::FieldType
int FieldType
Definition: vtkAddMembershipArray.h:87