VTK  9.3.20241008
vtkGenerateIndexArray.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
29#ifndef vtkGenerateIndexArray_h
30#define vtkGenerateIndexArray_h
31
33#include "vtkInfovisCoreModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
37{
38public:
40
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 vtkSetStringMacro(ArrayName);
49 vtkGetStringMacro(ArrayName);
51
53
56 vtkSetMacro(FieldType, int);
57 vtkGetMacro(FieldType, int);
59
61
64 vtkSetStringMacro(ReferenceArrayName);
65 vtkGetStringMacro(ReferenceArrayName);
67
69
73 vtkSetMacro(PedigreeID, int);
74 vtkGetMacro(PedigreeID, int);
76
77 enum
78 {
79 ROW_DATA = 0,
80 POINT_DATA = 1,
81 CELL_DATA = 2,
82 VERTEX_DATA = 3,
83 EDGE_DATA = 4
84 };
85
86protected:
89
91 vtkInformationVector* outputVector) override;
92
94 vtkInformationVector* outputVector) override;
95
97
98 char* ArrayName;
102
103private:
105 void operator=(const vtkGenerateIndexArray&) = delete;
106};
107
108VTK_ABI_NAMESPACE_END
109#endif
Superclass for algorithms that produce only data object as output.
Generates a new vtkIdTypeArray containing zero-base indices.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGenerateIndexArray() override
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
static vtkGenerateIndexArray * New()
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64