Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

PATRANNeutralMeshReader.h

Go to the documentation of this file.
00001 #ifndef PATRANNEUTRALMESHREADER_H
00002 #define PATRANNEUTRALMESHREADER_H
00003 
00004 #include "SundanceDefs.h"
00005 
00006 #include "MeshReader.h"
00007 
00008 
00009 namespace Sundance
00010 {
00011 
00012   using namespace TSF;
00013   using std::string;
00014 
00015   using std::ostream;
00016 
00017   /** \ingroup UserLevelGeometry
00018    * Reads a 3D mesh that is stored in PATRAN Neutral format
00019    */
00020 
00021   class PATRANNeutralMeshReader : public MeshReaderBase
00022     {
00023     public:
00024       /** Construct a PATRANNeutralMeshReader for reading from a given file */
00025       PATRANNeutralMeshReader(const string& filename)
00026         : filename_(filename) {;}
00027 
00028       /** read a mesh from the reader's file */
00029       virtual Mesh getMesh() const ;
00030 
00031     private:
00032       /** read a packet header */
00033       void readPacketHeader(istream& is, int& packetType) const ;
00034 
00035       /** read header lines */
00036       void readHeader(istream& is) const ;
00037 
00038       /** read summary lines */
00039       void readSummary(istream& is, int& nPoints, int& nElements) const ;
00040 
00041       /** read points */
00042       void readPoints(istream& is, int nPoints) const ;
00043 
00044       /** read elements */
00045       void readElements(istream& is, int nElements) const ;
00046 
00047       string filename_;
00048     };
00049 
00050 
00051 }
00052 #endif

Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by