VTK  9.1.0
vtkGenerateIndexArray.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGenerateIndexArray.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=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
45#ifndef vtkGenerateIndexArray_h
46#define vtkGenerateIndexArray_h
47
49#include "vtkInfovisCoreModule.h" // For export macro
50
51class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
52{
53public:
55
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
63 vtkSetStringMacro(ArrayName);
64 vtkGetStringMacro(ArrayName);
66
68
71 vtkSetMacro(FieldType, int);
72 vtkGetMacro(FieldType, int);
74
76
79 vtkSetStringMacro(ReferenceArrayName);
80 vtkGetStringMacro(ReferenceArrayName);
82
84
88 vtkSetMacro(PedigreeID, int);
89 vtkGetMacro(PedigreeID, int);
91
92 enum
93 {
94 ROW_DATA = 0,
95 POINT_DATA = 1,
96 CELL_DATA = 2,
97 VERTEX_DATA = 3,
98 EDGE_DATA = 4
99 };
100
101protected:
104
106 vtkInformationVector* outputVector) override;
107
109 vtkInformationVector* outputVector) override;
110
112
117
118private:
120 void operator=(const vtkGenerateIndexArray&) = delete;
121};
122
123#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69