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 -------------------------------------------------------------------------*/
44 #ifndef vtkGenerateIndexArray_h
45 #define vtkGenerateIndexArray_h
46 
47 #include "vtkInfovisCoreModule.h" // For export macro
48 #include "vtkDataObjectAlgorithm.h"
49 
51 {
52 public:
53  static vtkGenerateIndexArray *New();
54 
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkSetStringMacro(ArrayName);
61  vtkGetStringMacro(ArrayName);
63 
65 
66  vtkSetMacro(FieldType, int);
67  vtkGetMacro(FieldType, int);
69 
71 
72  vtkSetStringMacro(ReferenceArrayName);
73  vtkGetStringMacro(ReferenceArrayName);
75 
77 
79  vtkSetMacro(PedigreeID, int);
80  vtkGetMacro(PedigreeID, int);
82 
83 //BTX
84  enum
85  {
86  ROW_DATA = 0,
87  POINT_DATA = 1,
88  CELL_DATA = 2,
89  VERTEX_DATA = 3,
90  EDGE_DATA = 4
91  };
92 //ETX
93 
94 protected:
97 
98  virtual int ProcessRequest(
99  vtkInformation* request,
100  vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector);
102 
103  virtual int RequestDataObject(
104  vtkInformation* request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector);
107 
108  int RequestData(
112 
113  char* ArrayName;
117 
118 private:
119  vtkGenerateIndexArray(const vtkGenerateIndexArray&); // Not implemented.
120  void operator=(const vtkGenerateIndexArray&); // Not implemented.
121 };
122 
123 #endif
124 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKINFOVISCORE_EXPORT
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.