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
50
51class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
52{
53public:
55
57 void PrintSelf(ostream& os, vtkIndent indent);
58
60
63 vtkSetStringMacro(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
105 virtual int ProcessRequest(
106 vtkInformation* request,
107 vtkInformationVector** inputVector,
108 vtkInformationVector* outputVector);
109
110 virtual int RequestDataObject(
111 vtkInformation* request,
112 vtkInformationVector** inputVector,
113 vtkInformationVector* outputVector);
114
119
124
125private:
126 vtkGenerateIndexArray(const vtkGenerateIndexArray&) VTK_DELETE_FUNCTION;
127 void operator=(const vtkGenerateIndexArray&) VTK_DELETE_FUNCTION;
128};
129
130#endif
131
Superclass for algorithms that produce only data object as output.
Generates a new vtkIdTypeArray containing zero-base indices.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
see vtkAlgorithm for details
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkGenerateIndexArray * New()
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.