VTK  9.2.6
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=========================================================================*/
45#ifndef vtkIdFilter_h
46#define vtkIdFilter_h
47
48#include "vtkDataSetAlgorithm.h"
49#include "vtkFiltersCoreModule.h" // For export macro
50
51class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
61 static vtkIdFilter* New();
62
64
67 vtkSetMacro(PointIds, vtkTypeBool);
68 vtkGetMacro(PointIds, vtkTypeBool);
69 vtkBooleanMacro(PointIds, vtkTypeBool);
71
73
76 vtkSetMacro(CellIds, vtkTypeBool);
77 vtkGetMacro(CellIds, vtkTypeBool);
78 vtkBooleanMacro(CellIds, vtkTypeBool);
80
82
87 vtkSetMacro(FieldData, vtkTypeBool);
88 vtkGetMacro(FieldData, vtkTypeBool);
89 vtkBooleanMacro(FieldData, vtkTypeBool);
91
93
97 vtkSetStringMacro(PointIdsArrayName);
98 vtkGetStringMacro(PointIdsArrayName);
100
102
106 vtkSetStringMacro(CellIdsArrayName);
107 vtkGetStringMacro(CellIdsArrayName);
109protected:
111 ~vtkIdFilter() override;
112
114
120
121private:
122 vtkIdFilter(const vtkIdFilter&) = delete;
123 void operator=(const vtkIdFilter&) = delete;
124};
125
126#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:52
vtkTypeBool PointIds
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
char * CellIdsArrayName
char * PointIdsArrayName
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
~vtkIdFilter() override
vtkTypeBool CellIds
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69