VTK  9.1.0
vtkIdFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkIdFilter.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=========================================================================*/
39#ifndef vtkIdFilter_h
40#define vtkIdFilter_h
41
42#include "vtkDataSetAlgorithm.h"
43#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_0_0
44#include "vtkFiltersCoreModule.h" // For export macro
45
46class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
47{
48public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
56 static vtkIdFilter* New();
57
59
62 vtkSetMacro(PointIds, vtkTypeBool);
63 vtkGetMacro(PointIds, vtkTypeBool);
64 vtkBooleanMacro(PointIds, vtkTypeBool);
66
68
71 vtkSetMacro(CellIds, vtkTypeBool);
72 vtkGetMacro(CellIds, vtkTypeBool);
73 vtkBooleanMacro(CellIds, vtkTypeBool);
75
77
82 vtkSetMacro(FieldData, vtkTypeBool);
83 vtkGetMacro(FieldData, vtkTypeBool);
84 vtkBooleanMacro(FieldData, vtkTypeBool);
86
88
92 VTK_DEPRECATED_IN_9_0_0("Use vtkIdFilter::SetCellIdsArrayName")
93 void SetIdsArrayName(const char*);
94 VTK_DEPRECATED_IN_9_0_0("Use vtkIdFilter::GetCellIdsArrayName")
95 const char* GetIdsArrayName();
97
99
103 vtkSetStringMacro(PointIdsArrayName);
104 vtkGetStringMacro(PointIdsArrayName);
106
108
112 vtkSetStringMacro(CellIdsArrayName);
113 vtkGetStringMacro(CellIdsArrayName);
115protected:
117 ~vtkIdFilter() override;
118
120
121 vtkTypeBool PointIds;
122 vtkTypeBool CellIds;
123 vtkTypeBool FieldData;
124 char* PointIdsArrayName;
125 char* CellIdsArrayName;
126
127private:
128 vtkIdFilter(const vtkIdFilter&) = delete;
129 void operator=(const vtkIdFilter&) = delete;
130};
131
132#endif
Superclass for algorithms that produce output of the same type as input.
generate scalars or field data from point and cell ids
Definition vtkIdFilter.h:47
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_DEPRECATED_IN_9_0_0(reason)