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 "vtkDataObjectAlgorithm.h"
48 
50 {
51 public:
52  static vtkGenerateIndexArray *New();
53 
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  vtkSetStringMacro(ArrayName);
60  vtkGetStringMacro(ArrayName);
62 
64 
65  vtkSetMacro(FieldType, int);
66  vtkGetMacro(FieldType, int);
68 
70 
71  vtkSetStringMacro(ReferenceArrayName);
72  vtkGetStringMacro(ReferenceArrayName);
74 
76 
78  vtkSetMacro(PedigreeID, int);
79  vtkGetMacro(PedigreeID, int);
81 
82 //BTX
83  enum
84  {
85  ROW_DATA = 0,
86  POINT_DATA = 1,
87  CELL_DATA = 2,
88  VERTEX_DATA = 3,
89  EDGE_DATA = 4
90  };
91 //ETX
92 
93 protected:
96 
97  virtual int ProcessRequest(
98  vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector);
101 
102  virtual int RequestDataObject(
103  vtkInformation* request,
104  vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector);
106 
107  int RequestData(
111 
112  char* ArrayName;
116 
117 private:
118  vtkGenerateIndexArray(const vtkGenerateIndexArray&); // Not implemented.
119  void operator=(const vtkGenerateIndexArray&); // Not implemented.
120 };
121 
122 #endif
123 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
Superclass for algorithms that produce only data object as output.
#define VTK_INFOVIS_EXPORT
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.