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=========================================================================*/
145#ifndef vtkIdFilter_h
146#define vtkIdFilter_h
147
148#include "vtkDataSetAlgorithm.h"
149#include "vtkFiltersCoreModule.h" // For export macro
150
151class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
152{
153public:
155 void PrintSelf(ostream& os, vtkIndent indent) override;
156
161 static vtkIdFilter* New();
162
164
167 vtkSetMacro(PointIds, vtkTypeBool);
168 vtkGetMacro(PointIds, vtkTypeBool);
169 vtkBooleanMacro(PointIds, vtkTypeBool);
171
173
176 vtkSetMacro(CellIds, vtkTypeBool);
177 vtkGetMacro(CellIds, vtkTypeBool);
178 vtkBooleanMacro(CellIds, vtkTypeBool);
180
182
187 vtkSetMacro(FieldData, vtkTypeBool);
188 vtkGetMacro(FieldData, vtkTypeBool);
189 vtkBooleanMacro(FieldData, vtkTypeBool);
191
193
197 vtkSetStringMacro(PointIdsArrayName);
198 vtkGetStringMacro(PointIdsArrayName);
200
202
206 vtkSetStringMacro(CellIdsArrayName);
207 vtkGetStringMacro(CellIdsArrayName);
209protected:
211 ~vtkIdFilter() override;
212
214
220
221private:
222 vtkIdFilter(const vtkIdFilter&) = delete;
223 void operator=(const vtkIdFilter&) = delete;
224};
225
226#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:152
vtkTypeBool PointIds
Definition: vtkIdFilter.h:215
static vtkIdFilter * New()
Construct object with PointIds and CellIds on; and ids being generated as scalars.
char * CellIdsArrayName
Definition: vtkIdFilter.h:219
char * PointIdsArrayName
Definition: vtkIdFilter.h:218
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:217
~vtkIdFilter() override
vtkTypeBool CellIds
Definition: vtkIdFilter.h:216
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69