VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkCPExodusIIElementBlockCellIterator.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 =========================================================================*/ 00020 #ifndef vtkCPExodusIIElementBlockCellIterator_h 00021 #define vtkCPExodusIIElementBlockCellIterator_h 00022 00023 #include "vtkCellIterator.h" 00024 #include "vtkIOExodusModule.h" // For export macro 00025 00026 #include "vtkSmartPointer.h" // For smart pointer 00027 00028 class vtkCPExodusIIElementBlock; 00029 class vtkCPExodusIIElementBlockPrivate; 00030 00031 class VTKIOEXODUS_EXPORT vtkCPExodusIIElementBlockCellIterator 00032 : public vtkCellIterator 00033 { 00034 public: 00035 typedef vtkCPExodusIIElementBlockPrivate StorageType; 00036 00037 static vtkCPExodusIIElementBlockCellIterator *New(); 00038 vtkTypeMacro(vtkCPExodusIIElementBlockCellIterator, vtkCellIterator) 00039 void PrintSelf(ostream &os, vtkIndent indent); 00040 00041 bool IsValid(); 00042 vtkIdType GetCellId(); 00043 00044 protected: 00045 vtkCPExodusIIElementBlockCellIterator(); 00046 ~vtkCPExodusIIElementBlockCellIterator(); 00047 00048 void ResetToFirstCell(); 00049 void IncrementToNextCell(); 00050 void FetchCellType(); 00051 void FetchPointIds(); 00052 void FetchPoints(); 00053 00054 friend class ::vtkCPExodusIIElementBlock; 00055 void SetStorage(vtkCPExodusIIElementBlock *eb); 00056 00057 private: 00058 vtkCPExodusIIElementBlockCellIterator(const vtkCPExodusIIElementBlockCellIterator &); // Not implemented. 00059 void operator=(const vtkCPExodusIIElementBlockCellIterator &); // Not implemented. 00060 00061 vtkSmartPointer<StorageType> Storage; 00062 vtkSmartPointer<vtkPoints> DataSetPoints; 00063 vtkIdType CellId; 00064 }; 00065 00066 #endif //vtkCPExodusIIElementBlockCellIterator_h