Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkEdgeTable.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkEdgeTable.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00028 #ifndef __vtkEdgeTable_h 00029 #define __vtkEdgeTable_h 00030 00031 #include "vtkObject.h" 00032 00033 class vtkIdList; 00034 class vtkPoints; 00035 00036 class VTK_COMMON_EXPORT vtkEdgeTable : public vtkObject 00037 { 00038 public: 00040 static vtkEdgeTable *New(); 00041 00042 vtkTypeRevisionMacro(vtkEdgeTable,vtkObject); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 void Initialize(); 00047 00055 int InitEdgeInsertion(vtkIdType numPoints, int storeAttributes=0); 00056 00064 vtkIdType InsertEdge(vtkIdType p1, vtkIdType p2); 00065 00072 void InsertEdge(vtkIdType p1, vtkIdType p2, int attributeId); 00073 00079 int IsEdge(vtkIdType p1, vtkIdType p2); 00080 00084 int InitPointInsertion(vtkPoints *newPts, vtkIdType estSize); 00085 00087 00090 int InsertUniquePoint(vtkIdType p1, vtkIdType p2, float x[3], 00091 vtkIdType &ptId); 00093 00095 00096 vtkGetMacro(NumberOfEdges, vtkIdType); 00098 00100 void InitTraversal(); 00101 00106 int GetNextEdge(vtkIdType &p1, vtkIdType &p2); 00107 00110 void Reset(); 00111 00112 protected: 00113 vtkEdgeTable(); 00114 ~vtkEdgeTable(); 00115 00116 vtkIdList **Table; 00117 vtkIdList **Attributes; 00118 int StoreAttributes; 00119 vtkIdType TableMaxId; //maximum point id inserted 00120 vtkIdType TableSize; //allocated size of table 00121 int Position[2]; 00122 int Extend; 00123 vtkIdType NumberOfEdges; 00124 vtkPoints *Points; //support point insertion 00125 00126 vtkIdList **Resize(vtkIdType size); 00127 private: 00128 vtkEdgeTable(const vtkEdgeTable&); // Not implemented. 00129 void operator=(const vtkEdgeTable&); // Not implemented. 00130 }; 00131 00132 #endif 00133