VTK
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=========================================================================*/
36#ifndef vtkIdFilter_h
37#define vtkIdFilter_h
38
39#include "vtkFiltersCoreModule.h" // For export macro
40#include "vtkDataSetAlgorithm.h"
41
42class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47
52 static vtkIdFilter *New();
53
55
58 vtkSetMacro(PointIds,int);
59 vtkGetMacro(PointIds,int);
60 vtkBooleanMacro(PointIds,int);
62
64
67 vtkSetMacro(CellIds,int);
68 vtkGetMacro(CellIds,int);
69 vtkBooleanMacro(CellIds,int);
71
73
78 vtkSetMacro(FieldData,int);
79 vtkGetMacro(FieldData,int);
80 vtkBooleanMacro(FieldData,int);
82
84
88 vtkSetStringMacro(IdsArrayName);
89 vtkGetStringMacro(IdsArrayName);
91
92protected:
94 ~vtkIdFilter() VTK_OVERRIDE;
95
96 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
97
98 int PointIds;
99 int CellIds;
100 int FieldData;
101 char *IdsArrayName;
102
103private:
104 vtkIdFilter(const vtkIdFilter&) VTK_DELETE_FUNCTION;
105 void operator=(const vtkIdFilter&) VTK_DELETE_FUNCTION;
106};
107
108#endif
109
110
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:43
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.
~vtkIdFilter() override
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.