ug4
file_io.cpp File Reference
#include <string>
#include "file_io.h"
#include "lib_grid/algorithms/attachment_util.h"
#include "common/util/path_provider.h"
#include "common/util/file_util.h"
#include "common/util/string_util.h"
#include "lib_grid/parallelization/distributed_grid.h"
#include "lib_grid/algorithms/subset_util.h"
#include "lib_grid/tools/surface_view.h"
#include "file_io_2df.h"
#include "file_io_art.h"
#include "file_io_asc.h"
#include "file_io_txt.h"
#include "file_io_tetgen.h"
#include "file_io_obj.h"
#include "file_io_lgm.h"
#include "file_io_lgb.h"
#include "file_io_ng.h"
#include "file_io_ug.h"
#include "file_io_dump.h"
#include "file_io_ncdf.h"
#include "file_io_ugx.h"
#include "file_io_msh.h"
#include "file_io_stl.h"
#include "file_io_tikz.h"
#include "file_io_vtu.h"
#include "file_io_swc.h"
#include "file_io_grdecl.h"
#include "pcl/pcl_process_communicator.h"
#include "pcl/pcl_util.h"

Namespaces

 ug
 the ug namespace
 

Functions

template<class TElem >
static void ug::AssignSubsetsByInterfaceType (SubsetHandler &sh, MultiGrid &mg)
 
template<class TElem >
static void ug::AssignSubsetsBySurfaceViewState (SubsetHandler &sh, const SurfaceView &sv, MultiGrid &mg)
 
template void ug::CopyGrid (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition1)
 
template void ug::CopyGrid (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition2)
 
template void ug::CopyGrid (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition3)
 
template<class TAPos >
void ug::CopyGrid (Grid &srcGrid, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, TAPos aPos)
 Copies a grid to a separate grid. More...
 
template<class TAPos >
void ug::CopyGridLevel (MultiGrid &srcMG, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, int lvl, TAPos aPos)
 Copies a grid level to a separate grid. More...
 
template<class TElem >
void ug::CopyGridLevelElements (MultiGrid &srcMG, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, int lvl, AVertex &aNewVrt)
 
template<class TAPos >
static bool ug::LoadGrid (Grid &grid, ISubsetHandler *psh, const char *filename, TAPos &aPos, int procId)
 This method calls specific load routines or delegates loading to LoadGrid3d. More...
 
template<class TAPos >
static bool ug::LoadGrid (Grid &grid, SPProjectionHandler *ph, size_t &num_ph, ISubsetHandler *psh, std::vector< std::string > additionalSHNames, std::vector< SmartPtr< ISubsetHandler >> ash, const char *filename, TAPos &aPos, int procId)
 
static bool ug::LoadGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition1 &aPos)
 
static bool ug::LoadGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition2 &aPos)
 
static bool ug::LoadGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition3 &aPos)
 
static bool ug::LoadGrid3d_IMPL (Grid &grid, ISubsetHandler *pSH, const char *filename, AVector3 &aPos)
 
template bool ug::LoadGridFromFile (Grid &, const char *, AVector1 &, int)
 
template bool ug::LoadGridFromFile (Grid &, const char *, AVector2 &, int)
 
template bool ug::LoadGridFromFile (Grid &, const char *, AVector3 &, int)
 
template bool ug::LoadGridFromFile (Grid &, ISubsetHandler &, const char *, AVector1 &, int)
 
template bool ug::LoadGridFromFile (Grid &, ISubsetHandler &, const char *, AVector2 &, int)
 
template bool ug::LoadGridFromFile (Grid &, ISubsetHandler &, const char *, AVector3 &, int)
 
template bool ug::LoadGridFromFile (Grid &, SPProjectionHandler &, size_t &, ISubsetHandler &, std::vector< std::string >, std::vector< SmartPtr< ISubsetHandler >>, const char *, AVector1 &, int)
 
template bool ug::LoadGridFromFile (Grid &, SPProjectionHandler &, size_t &, ISubsetHandler &, std::vector< std::string >, std::vector< SmartPtr< ISubsetHandler >>, const char *, AVector2 &, int)
 
template bool ug::LoadGridFromFile (Grid &, SPProjectionHandler &, size_t &, ISubsetHandler &, std::vector< std::string >, std::vector< SmartPtr< ISubsetHandler >>, const char *, AVector3 &, int)
 
template<class TAPos >
bool ug::LoadGridFromFile (Grid &grid, const char *filename, TAPos &aPos, int procId)
 
template<class TAPos >
bool ug::LoadGridFromFile (Grid &grid, ISubsetHandler &sh, const char *filename, TAPos &aPos, int procId)
 
template<class TAPos >
bool ug::LoadGridFromFile (Grid &grid, SPProjectionHandler &ph, size_t &num_ph, ISubsetHandler &sh, vector< string > additionalSHNames, vector< SmartPtr< ISubsetHandler >> ash, const char *filename, TAPos &aPos, int procId)
 
template void ug::MergeGrids (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition1, bool)
 
template void ug::MergeGrids (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition2, bool)
 
template void ug::MergeGrids (Grid &, Grid &, ISubsetHandler &, ISubsetHandler &, APosition3, bool)
 
template<typename TAPos >
void ug::MergeGrids (Grid &mrgGrid, Grid &grid, ISubsetHandler &mrgSh, ISubsetHandler &sh, TAPos aPos, bool joinSubsets)
 Merges to grids into one grid. More...
 
template<class TAPos >
static bool ug::SaveGrid (Grid &grid, ISubsetHandler *psh, const char *filename, TAPos &aPos)
 
static bool ug::SaveGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition1 &aPos)
 
static bool ug::SaveGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition2 &aPos)
 
static bool ug::SaveGrid3d (Grid &grid, ISubsetHandler *psh, const char *filename, APosition3 &aPos)
 
static bool ug::SaveGrid3d_IMPL (Grid &grid, ISubsetHandler *pSH, const char *filename, AVector3 &aPos)
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis. More...
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, ISubsetHandler &sh, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis. More...
 
template<class TAPos >
bool ug::SaveGridLevel (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename, TAPos aPos)
 Saves a grid level to a file. More...
 
bool ug::SaveGridLevelToFile (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename)
 Saves a grid level to a file. More...
 
template bool ug::SaveGridToFile (Grid &, const char *, AVector1 &)
 
template bool ug::SaveGridToFile (Grid &, const char *, AVector2 &)
 
template bool ug::SaveGridToFile (Grid &, const char *, AVector3 &)
 
template bool ug::SaveGridToFile (Grid &, ISubsetHandler &, const char *, AVector1 &)
 
template bool ug::SaveGridToFile (Grid &, ISubsetHandler &, const char *, AVector2 &)
 
template bool ug::SaveGridToFile (Grid &, ISubsetHandler &, const char *, AVector3 &)
 
template<class TAPos >
bool ug::SaveGridToFile (Grid &grid, const char *filename, TAPos &aPos)
 
template<class TAPos >
bool ug::SaveGridToFile (Grid &grid, ISubsetHandler &sh, const char *filename, TAPos &aPos)
 Saves a grid to a file. Position data is read from the specified attachment. More...
 
bool ug::SaveParallelGridLayout (MultiGrid &mg, const char *filename, number offset=0.1)
 Saves the grid-layout of parallel multi-grids. More...
 
bool ug::SaveSurfaceViewTransformed (MultiGrid &mg, const SurfaceView &sv, const char *filename, number offset=0.1)
 Saves a grid and assigns elements to subsets based on their surface-view-state. More...
 
bool ug::LoadGridFromFile (Grid &grid, const char *filename, int procId)
 Loads a grid from a file. Position data is written to aPosition. More...
 
bool ug::LoadGridFromFile (Grid &grid, ISubsetHandler &sh, const char *filename, int procId=-1)
 Loads a grid from a file. Position data is written to aPosition. More...
 
bool ug::SaveGridToFile (Grid &grid, const char *filename)
 Saves a grid to a file. Position data is read from aPosition. More...
 
bool ug::SaveGridToFile (Grid &grid, ISubsetHandler &sh, const char *filename)
 Saves a grid to a file. Position data is read from aPosition. More...