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 =========================================================================*/
30 #ifndef vtkIdFilter_h
31 #define vtkIdFilter_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkDataSetAlgorithm.h"
35 
36 class VTKFILTERSCORE_EXPORT vtkIdFilter : public vtkDataSetAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
46  static vtkIdFilter *New();
47 
49 
52  vtkSetMacro(PointIds,int);
53  vtkGetMacro(PointIds,int);
54  vtkBooleanMacro(PointIds,int);
56 
58 
61  vtkSetMacro(CellIds,int);
62  vtkGetMacro(CellIds,int);
63  vtkBooleanMacro(CellIds,int);
65 
67 
72  vtkSetMacro(FieldData,int);
73  vtkGetMacro(FieldData,int);
74  vtkBooleanMacro(FieldData,int);
76 
78 
82  vtkSetStringMacro(IdsArrayName);
83  vtkGetStringMacro(IdsArrayName);
85 
86 protected:
87  vtkIdFilter();
88  ~vtkIdFilter() VTK_OVERRIDE;
89 
90  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
91 
92  int PointIds;
93  int CellIds;
94  int FieldData;
95  char *IdsArrayName;
96 
97 private:
98  vtkIdFilter(const vtkIdFilter&) VTK_DELETE_FUNCTION;
99  void operator=(const vtkIdFilter&) VTK_DELETE_FUNCTION;
100 };
101 
102 #endif
103 
104 
Store vtkAlgorithm input/output information.
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:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
generate scalars or field data from point and cell ids
Definition: vtkIdFilter.h:36
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkDataSetAlgorithm * New()