VTK: Infovis/Core/vtkGenerateIndexArray.h Source File

| VTK 9.3.1

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
32 #include "vtkDataObjectAlgorithm.h"
33 #include "vtkInfovisCoreModule.h" // For export macro
34
35 VTK_ABI_NAMESPACE_BEGIN
36 class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
37 {
38 public:
39 static vtkGenerateIndexArray* New();
40
41 vtkTypeMacro(vtkGenerateIndexArray, vtkDataObjectAlgorithm);
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
86 protected:
87 vtkGenerateIndexArray();
88 ~vtkGenerateIndexArray() override;
89
90 vtkTypeBool ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
91 vtkInformationVector* outputVector) override;
92
93 int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
94 vtkInformationVector* outputVector) override;
95
96 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
97
98 char* ArrayName;
99 int FieldType;
100 char* ReferenceArrayName;
101 int PedigreeID;
102
103 private:
104 vtkGenerateIndexArray(const vtkGenerateIndexArray&) = delete;
105 void operator=(const vtkGenerateIndexArray&) = delete;
106 };
107
108 VTK_ABI_NAMESPACE_END
109 #endif
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:33
vtkGenerateIndexArray
Generates a new vtkIdTypeArray containing zero-base indices.
Definition: vtkGenerateIndexArray.h:37
vtkGenerateIndexArray::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkGenerateIndexArray::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkGenerateIndexArray::New
static vtkGenerateIndexArray * New()
vtkGenerateIndexArray::ReferenceArrayName
char * ReferenceArrayName
Definition: vtkGenerateIndexArray.h:100
vtkGenerateIndexArray::FieldType
int FieldType
Definition: vtkGenerateIndexArray.h:99
vtkGenerateIndexArray::PedigreeID
int PedigreeID
Definition: vtkGenerateIndexArray.h:101
vtkGenerateIndexArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenerateIndexArray::vtkGenerateIndexArray
vtkGenerateIndexArray()
vtkGenerateIndexArray::~vtkGenerateIndexArray
~vtkGenerateIndexArray() override
vtkGenerateIndexArray::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkGenerateIndexArray::ArrayName
char * ArrayName
Definition: vtkGenerateIndexArray.h:98
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkDataObjectAlgorithm.h