moab
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile$ 00005 Language: C++ 00006 Date: $Date$ 00007 Version: $Revision$ 00008 00009 Copyright 2004 Sandia Corporation. 00010 Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00011 license for use of this work by or on behalf of the 00012 U.S. Government. Redistribution and use in source and binary forms, with 00013 or without modification, are permitted provided that this Notice and any 00014 statement of authorship are reproduced on all copies. 00015 00016 =========================================================================*/ 00017 /*========================================================================= 00018 00019 Program: Visualization Toolkit 00020 Module: $RCSfile$ 00021 00022 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00023 All rights reserved. 00024 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00025 00026 This software is distributed WITHOUT ANY WARRANTY; without even 00027 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00028 PURPOSE. See the above copyright notice for more information. 00029 00030 =========================================================================*/ 00031 // .NAME vtkMOABReader - read vtk unstructured grid data file 00032 // .SECTION Description 00033 // vtkMOABReader is a source object that reads ASCII or binary 00034 // unstructured grid data files in vtk format. (see text for format details). 00035 // The output of this reader is a single vtkUnstructuredGrid data object. 00036 // The superclass of this class, vtkDataReader, provides many methods for 00037 // controlling the reading of the data file, see vtkDataReader for more 00038 // information. 00039 // .SECTION Caveats 00040 // Binary files written on one system may not be readable on other systems. 00041 // .SECTION See Also 00042 // vtkUnstructuredGrid vtkDataReader 00043 00044 #ifndef __vtkMOABReader_h 00045 #define __vtkMOABReader_h 00046 00047 #include "vtkSetGet.h" 00048 #include "vtkPoints.h" 00049 #include "vtkUnstructuredGridSource.h" 00050 00051 #include "MBInterface.hpp" 00052 #include "MBWriteUtilIface.hpp" 00053 #include "MBRange.hpp" 00054 #include "DualTool.hpp" 00055 00056 class vtkIntArray; 00057 00058 #include <map> 00059 00060 class VTK_EXPORT vtkMOABReader : public vtkUnstructuredGridSource 00061 { 00062 public: 00063 static vtkMOABReader *New(); 00064 vtkTypeRevisionMacro(vtkMOABReader,vtkUnstructuredGridSource); 00065 00066 // Description: 00067 // Specify file name of the Exodus file. 00068 vtkSetStringMacro(FileName); 00069 vtkGetStringMacro(FileName); 00070 00071 protected: 00072 vtkMOABReader(); 00073 ~vtkMOABReader(); 00074 00075 void Execute(); 00076 00077 private: 00078 vtkMOABReader(const vtkMOABReader&); // Not implemented. 00079 void operator=(const vtkMOABReader&); // Not implemented. 00080 00081 char *FileName; 00082 }; 00083 00084 #endif 00085 00086