VTK  9.0.20210422
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 
48 #include "vtkDataObjectAlgorithm.h"
49 #include "vtkInfovisCoreModule.h" // For export macro
50 
51 class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
52 {
53 public:
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 
101 protected:
104 
106  vtkInformationVector* outputVector) override;
107 
109  vtkInformationVector* outputVector) override;
110 
112 
113  char* ArrayName;
117 
118 private:
120  void operator=(const vtkGenerateIndexArray&) = delete;
121 };
122 
123 #endif
vtkGenerateIndexArray::FieldType
int FieldType
Definition: vtkGenerateIndexArray.h:114
vtkGenerateIndexArray::vtkGenerateIndexArray
vtkGenerateIndexArray()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkGenerateIndexArray::New
static vtkGenerateIndexArray * New()
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:44
vtkGenerateIndexArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenerateIndexArray
Generates a new vtkIdTypeArray containing zero-base indices.
Definition: vtkGenerateIndexArray.h:52
vtkGenerateIndexArray::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkGenerateIndexArray::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkGenerateIndexArray::~vtkGenerateIndexArray
~vtkGenerateIndexArray() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkGenerateIndexArray::ArrayName
char * ArrayName
Definition: vtkGenerateIndexArray.h:113
vtkGenerateIndexArray::PedigreeID
int PedigreeID
Definition: vtkGenerateIndexArray.h:116
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkDataObjectAlgorithm.h
vtkGenerateIndexArray::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkGenerateIndexArray::ReferenceArrayName
char * ReferenceArrayName
Definition: vtkGenerateIndexArray.h:115