00001 #ifndef SIMPLEPOINTREADER_H 00002 #define SIMPLEPOINTREADER_H 00003 00004 #include "MeshFileImporter.h" 00005 00006 namespace MeshRead 00007 { 00008 00009 class SimplePointReader 00010 : public MeshFileImporter 00011 { 00012 public: 00013 SimplePointReader(); 00014 SimplePointReader(const std::string & file_name); 00015 00018 bool Init(const std::string & file_name); 00021 bool Init(); 00022 00023 bool doRead(hHybridMesh * mesh); 00024 00027 int GetCoordinatesDimension() const ; 00028 00031 int GetVerticesCount() ; 00032 00036 bool GetNextVertex(double coords[]) ; 00037 00040 void GetElementCount(int element_type[]) ; 00041 00047 bool GetNextElement(Tind vertices[], Tind neighbours[], Tind faces[], Tind & element_type , Tind & father, int8_t & material, int8_t & ref) ; 00048 00055 bool GetBoundaryConditions(double ** bc, int & bcCount) ; 00056 00057 // bool LineParse(char const* str, std::vector<double>& v); 00058 // bool VertexLineParse(char const* str, std::vector<double>& v); 00059 00060 //int GetEdgesCount(); 00061 // void GetFacesCount(int type_count[]); 00062 //bool GetNextFace(Tind edges[],Tind & face_type, int8_t & bc, Tind neigh[]); 00063 //bool GetNextEdge(Tind vertices[],Tind & edge_type); 00064 00065 }; 00066 00067 } 00068 00069 #endif // SIMPLEPOINTREADER_H