VTK
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 "vtkInfovisCoreModule.h" // For export macro
49 #include "vtkDataObjectAlgorithm.h"
50 
51 class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
52 {
53 public:
54  static vtkGenerateIndexArray *New();
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:
103  ~vtkGenerateIndexArray() override;
104 
105  int ProcessRequest(
106  vtkInformation* request,
107  vtkInformationVector** inputVector,
108  vtkInformationVector* outputVector) override;
109 
110  int RequestDataObject(
111  vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector) override;
114 
115  int RequestData(
118  vtkInformationVector*) override;
119 
120  char* ArrayName;
124 
125 private:
127  void operator=(const vtkGenerateIndexArray&) = delete;
128 };
129 
130 #endif
131 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Generates a new vtkIdTypeArray containing zero-base indices.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.