OGS
|
Adding pixel values from a raster onto nodes or cells of a mesh.
Functions | |
static bool | checkMesh (MeshLib::Mesh const &mesh) |
static double | evaluatePixel (double const value, double const no_data, double const replacement) |
bool | projectToNodes (MeshLib::Mesh &mesh, GeoLib::Raster const &raster, double const default_replacement, std::string const &array_name) |
bool | projectToElements (MeshLib::Mesh &mesh, GeoLib::Raster const &raster, double const default_replacement, std::string const &array_name) |
|
static |
Definition at line 21 of file RasterDataToMesh.cpp.
References ERR(), and MeshLib::Mesh::getDimension().
Referenced by projectToElements(), and projectToNodes().
|
static |
Definition at line 31 of file RasterDataToMesh.cpp.
bool MeshToolsLib::RasterDataToMesh::projectToElements | ( | MeshLib::Mesh & | mesh, |
GeoLib::Raster const & | raster, | ||
double const | default_replacement, | ||
std::string const & | array_name ) |
Definition at line 66 of file RasterDataToMesh.cpp.
References MeshLib::Cell, checkMesh(), MeshLib::Mesh::getElements(), GeoLib::Raster::getHeader(), MeshLib::Mesh::getProperties(), BaseLib::getUniqueName(), and GeoLib::RasterHeader::no_data.
Referenced by main(), and MeshView::openRasterDataToMeshDialog().
bool MeshToolsLib::RasterDataToMesh::projectToNodes | ( | MeshLib::Mesh & | mesh, |
GeoLib::Raster const & | raster, | ||
double const | default_replacement, | ||
std::string const & | array_name ) |
Definition at line 41 of file RasterDataToMesh.cpp.
References checkMesh(), GeoLib::Raster::getHeader(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getProperties(), BaseLib::getUniqueName(), GeoLib::RasterHeader::no_data, and MeshLib::Node.
Referenced by main(), and MeshView::openRasterDataToMeshDialog().