OGS
|
Functions | |
std::string | readPoints (std::istream &in, std::vector< GeoLib::Point * > *pnt_vec, bool &zero_based_indexing, std::map< std::string, std::size_t > *pnt_id_name_map) |
void | readPolylinePointVector (const std::string &fname, std::vector< GeoLib::Point * > &pnt_vec, GeoLib::Polyline *ply, const std::string &path, std::vector< std::string > &errors) |
std::string | readPolyline (std::istream &in, std::vector< GeoLib::Polyline * > &ply_vec, GeoLib::PolylineVec::NameIdMap &ply_vec_names, std::vector< GeoLib::Point * > &pnt_vec, bool zero_based_indexing, const std::vector< std::size_t > &pnt_id_map, const std::string &path, std::vector< std::string > &errors) |
std::string | readPolylines (std::istream &in, std::vector< GeoLib::Polyline * > &ply_vec, std::map< std::string, std::size_t > &ply_vec_names, std::vector< GeoLib::Point * > &pnt_vec, bool zero_based_indexing, const std::vector< std::size_t > &pnt_id_map, const std::string &path, std::vector< std::string > &errors) |
std::string | readSurface (std::istream &in, std::vector< GeoLib::Polygon * > &polygon_vec, std::vector< GeoLib::Surface * > &sfc_vec, std::map< std::string, std::size_t > &sfc_names, const std::vector< GeoLib::Polyline * > *const ply_vec, const std::map< std::string, std::size_t > &ply_vec_names, GeoLib::PointVec &pnt_vec, std::string const &path, std::vector< std::string > &errors) |
std::string | readSurfaces (std::istream &in, std::vector< GeoLib::Surface * > &sfc_vec, std::map< std::string, std::size_t > &sfc_names, const std::vector< GeoLib::Polyline * > *const ply_vec, const std::map< std::string, std::size_t > &ply_vec_names, GeoLib::PointVec &pnt_vec, const std::string &path, std::vector< std::string > &errors, GeoLib::GEOObjects &geo, std::string const &unique_name, std::string const &gmsh_path) |
bool | readGLIFileV4 (const std::string &fname, GeoLib::GEOObjects &geo, std::string &unique_name, std::vector< std::string > &errors, std::string const &gmsh_path) |
std::size_t | writeTINSurfaces (std::ofstream &os, GeoLib::SurfaceVec const *sfcs_vec, std::size_t sfc_count, std::string const &path) |
void | writeGLIFileV4 (const std::string &fname, const std::string &geo_name, const GeoLib::GEOObjects &geo) |
void | writeAllDataToGLIFileV4 (const std::string &fname, const GeoLib::GEOObjects &geo) |
bool FileIO::Legacy::readGLIFileV4 | ( | const std::string & | fname, |
GeoLib::GEOObjects & | geo, | ||
std::string & | unique_name, | ||
std::vector< std::string > & | errors, | ||
std::string const & | gmsh_path ) |
Interface for handling geometry from OGS-5 and below (*.gli files) Reads geometric objects from file in gli format
Definition at line 519 of file OGSIOVer4.cpp.
References GeoLib::GEOObjects::addPointVec(), GeoLib::GEOObjects::addPolylineVec(), GeoLib::GEOObjects::addSurfaceVec(), BaseLib::extractBaseName(), BaseLib::extractPath(), GeoLib::PointVec::getIDMap(), GeoLib::TemplateVec< T >::getNameIDMapBegin(), GeoLib::TemplateVec< T >::getNameIDMapEnd(), GeoLib::GEOObjects::getPointVecObj(), GeoLib::GEOObjects::getPolylineVec(), GeoLib::GEOObjects::getPolylineVecObj(), GeoLib::TemplateVec< T >::getVector(), INFO(), readPoints(), readPolylines(), readSurfaces(), and WARN().
Referenced by OGSFileConverter::convertGLI2GML(), MainWindow::loadFile(), and FileIO::readGeometryFromFile().
std::string FileIO::Legacy::readPoints | ( | std::istream & | in, |
std::vector< GeoLib::Point * > * | pnt_vec, | ||
bool & | zero_based_indexing, | ||
std::map< std::string, std::size_t > * | pnt_id_name_map ) |
reads the points inclusive their names from input stream in using the OGS-4 file format
Definition at line 49 of file OGSIOVer4.cpp.
References WARN().
Referenced by readGLIFileV4().
std::string FileIO::Legacy::readPolyline | ( | std::istream & | in, |
std::vector< GeoLib::Polyline * > & | ply_vec, | ||
GeoLib::PolylineVec::NameIdMap & | ply_vec_names, | ||
std::vector< GeoLib::Point * > & | pnt_vec, | ||
bool | zero_based_indexing, | ||
const std::vector< std::size_t > & | pnt_id_map, | ||
const std::string & | path, | ||
std::vector< std::string > & | errors ) |
read a single Polyline from stream in into the ply_vec-vector
Definition at line 158 of file OGSIOVer4.cpp.
References BaseLib::joinPaths(), readPolylinePointVector(), BaseLib::str2number(), and WARN().
Referenced by readPolylines().
void FileIO::Legacy::readPolylinePointVector | ( | const std::string & | fname, |
std::vector< GeoLib::Point * > & | pnt_vec, | ||
GeoLib::Polyline * | ply, | ||
const std::string & | path, | ||
std::vector< std::string > & | errors ) |
reads points from a vector
Definition at line 117 of file OGSIOVer4.cpp.
References GeoLib::Polyline::addPoint(), BaseLib::joinPaths(), and WARN().
Referenced by readPolyline().
std::string FileIO::Legacy::readPolylines | ( | std::istream & | in, |
std::vector< GeoLib::Polyline * > & | ply_vec, | ||
std::map< std::string, std::size_t > & | ply_vec_names, | ||
std::vector< GeoLib::Point * > & | pnt_vec, | ||
bool | zero_based_indexing, | ||
const std::vector< std::size_t > & | pnt_id_map, | ||
const std::string & | path, | ||
std::vector< std::string > & | errors ) |
reads polylines
Definition at line 274 of file OGSIOVer4.cpp.
References readPolyline(), and WARN().
Referenced by readGLIFileV4().
std::string FileIO::Legacy::readSurface | ( | std::istream & | in, |
std::vector< GeoLib::Polygon * > & | polygon_vec, | ||
std::vector< GeoLib::Surface * > & | sfc_vec, | ||
std::map< std::string, std::size_t > & | sfc_names, | ||
const std::vector< GeoLib::Polyline * > *const | ply_vec, | ||
const std::map< std::string, std::size_t > & | ply_vec_names, | ||
GeoLib::PointVec & | pnt_vec, | ||
std::string const & | path, | ||
std::vector< std::string > & | errors ) |
read a single Surface
Definition at line 310 of file OGSIOVer4.cpp.
References BaseLib::joinPaths(), OGS_FATAL, GeoLib::IO::TINInterface::readTIN(), and WARN().
Referenced by readSurfaces().
std::string FileIO::Legacy::readSurfaces | ( | std::istream & | in, |
std::vector< GeoLib::Surface * > & | sfc_vec, | ||
std::map< std::string, std::size_t > & | sfc_names, | ||
const std::vector< GeoLib::Polyline * > *const | ply_vec, | ||
const std::map< std::string, std::size_t > & | ply_vec_names, | ||
GeoLib::PointVec & | pnt_vec, | ||
const std::string & | path, | ||
std::vector< std::string > & | errors, | ||
GeoLib::GEOObjects & | geo, | ||
std::string const & | unique_name, | ||
std::string const & | gmsh_path ) |
Definition at line 471 of file OGSIOVer4.cpp.
References FileIO::createSurface(), INFO(), readSurface(), and WARN().
Referenced by readGLIFileV4().
void FileIO::Legacy::writeAllDataToGLIFileV4 | ( | const std::string & | fname, |
const GeoLib::GEOObjects & | geo ) |
Writes all geometric information to a gli-file
Definition at line 722 of file OGSIOVer4.cpp.
References BaseLib::extractPath(), GeoLib::GEOObjects::getGeometryNames(), GeoLib::PointVec::getItemNameByID(), getName(), GeoLib::TemplateVec< T >::getNameOfElementByID(), GeoLib::GEOObjects::getPointVecObj(), GeoLib::GEOObjects::getPolylineVecObj(), GeoLib::GEOObjects::getStationVec(), GeoLib::GEOObjects::getStationVectorNames(), GeoLib::GEOObjects::getSurfaceVecObj(), GeoLib::TemplateVec< T >::getVector(), INFO(), and writeTINSurfaces().
Referenced by MainWindow::writeGeometryToFile().
void FileIO::Legacy::writeGLIFileV4 | ( | const std::string & | fname, |
const std::string & | geo_name, | ||
const GeoLib::GEOObjects & | geo ) |
Writes geometric objects from a specific geometry to a gli-file
Definition at line 659 of file OGSIOVer4.cpp.
References BaseLib::extractPath(), GeoLib::GEOObjects::getPointVecObj(), GeoLib::GEOObjects::getPolylineVecObj(), GeoLib::GEOObjects::getSurfaceVecObj(), INFO(), and writeTINSurfaces().
Referenced by OGSFileConverter::convertGML2GLI(), and FileIO::writeGeometryToFile().
std::size_t FileIO::Legacy::writeTINSurfaces | ( | std::ofstream & | os, |
GeoLib::SurfaceVec const * | sfcs_vec, | ||
std::size_t | sfc_count, | ||
std::string const & | path ) |
Definition at line 624 of file OGSIOVer4.cpp.
References GeoLib::TemplateVec< T >::getNameOfElementByID(), GeoLib::TemplateVec< T >::getVector(), BaseLib::joinPaths(), and GeoLib::IO::TINInterface::writeSurfaceAsTIN().
Referenced by writeAllDataToGLIFileV4(), and writeGLIFileV4().