VTK  9.0.1
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 =========================================================================*/
30 #ifndef vtkIdFilter_h
31 #define vtkIdFilter_h
32 
33 #include "vtkDataSetAlgorithm.h"
34 #include "vtkFiltersCoreModule.h" // For export macro
35 
36 class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46  static vtkIdFilter* New();
47 
49 
52  vtkSetMacro(PointIds, vtkTypeBool);
53  vtkGetMacro(PointIds, vtkTypeBool);
54  vtkBooleanMacro(PointIds, vtkTypeBool);
56 
58 
61  vtkSetMacro(CellIds, vtkTypeBool);
62  vtkGetMacro(CellIds, vtkTypeBool);
63  vtkBooleanMacro(CellIds, vtkTypeBool);
65 
67 
72  vtkSetMacro(FieldData, vtkTypeBool);
73  vtkGetMacro(FieldData, vtkTypeBool);
74  vtkBooleanMacro(FieldData, vtkTypeBool);
76 
78 
82  VTK_LEGACY(void SetIdsArrayName(const char*));
83  VTK_LEGACY(const char* GetIdsArrayName());
85 
87 
91  vtkSetStringMacro(PointIdsArrayName);
92  vtkGetStringMacro(PointIdsArrayName);
94 
96 
100  vtkSetStringMacro(CellIdsArrayName);
101  vtkGetStringMacro(CellIdsArrayName);
103 protected:
105  ~vtkIdFilter() override;
106 
108 
114 
115 private:
116  vtkIdFilter(const vtkIdFilter&) = delete;
117  void operator=(const vtkIdFilter&) = delete;
118 };
119 
120 #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:37
vtkTypeBool PointIds
Definition: vtkIdFilter.h:109
char * CellIdsArrayName
Definition: vtkIdFilter.h:113
const char * GetIdsArrayName()
void SetIdsArrayName(const char *)
char * PointIdsArrayName
Definition: vtkIdFilter.h:112
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool FieldData
Definition: vtkIdFilter.h:111
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
~vtkIdFilter() override
vtkTypeBool CellIds
Definition: vtkIdFilter.h:110
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69