VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGenerateIndexArray.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00044 #ifndef vtkGenerateIndexArray_h 00045 #define vtkGenerateIndexArray_h 00046 00047 #include "vtkInfovisCoreModule.h" // For export macro 00048 #include "vtkDataObjectAlgorithm.h" 00049 00050 class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm 00051 { 00052 public: 00053 static vtkGenerateIndexArray *New(); 00054 00055 vtkTypeMacro(vtkGenerateIndexArray, vtkDataObjectAlgorithm); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00059 00060 vtkSetStringMacro(ArrayName); 00061 vtkGetStringMacro(ArrayName); 00063 00065 00066 vtkSetMacro(FieldType, int); 00067 vtkGetMacro(FieldType, int); 00069 00071 00072 vtkSetStringMacro(ReferenceArrayName); 00073 vtkGetStringMacro(ReferenceArrayName); 00075 00077 00079 vtkSetMacro(PedigreeID, int); 00080 vtkGetMacro(PedigreeID, int); 00082 00083 //BTX 00084 enum 00085 { 00086 ROW_DATA = 0, 00087 POINT_DATA = 1, 00088 CELL_DATA = 2, 00089 VERTEX_DATA = 3, 00090 EDGE_DATA = 4 00091 }; 00092 //ETX 00093 00094 protected: 00095 vtkGenerateIndexArray(); 00096 ~vtkGenerateIndexArray(); 00097 00098 virtual int ProcessRequest( 00099 vtkInformation* request, 00100 vtkInformationVector** inputVector, 00101 vtkInformationVector* outputVector); 00102 00103 virtual int RequestDataObject( 00104 vtkInformation* request, 00105 vtkInformationVector** inputVector, 00106 vtkInformationVector* outputVector); 00107 00108 int RequestData( 00109 vtkInformation*, 00110 vtkInformationVector**, 00111 vtkInformationVector*); 00112 00113 char* ArrayName; 00114 int FieldType; 00115 char* ReferenceArrayName; 00116 int PedigreeID; 00117 00118 private: 00119 vtkGenerateIndexArray(const vtkGenerateIndexArray&); // Not implemented. 00120 void operator=(const vtkGenerateIndexArray&); // Not implemented. 00121 }; 00122 00123 #endif 00124