![]() |
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) |
| static MathLib::Point3d const & | evaluationPoint (MeshLib::Node const &node) |
| The point at which the raster is sampled for a mesh item. | |
| static MathLib::Point3d | evaluationPoint (MeshLib::Element const &element) |
| template<typename MeshItems> | |
| static bool | projectToMeshItems (MeshLib::Mesh &mesh, GeoLib::Raster const &raster, double const default_replacement, std::string const &array_name, MeshLib::MeshItemType const item_type, MeshItems const &mesh_items) |
| 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 17 of file RasterDataToMesh.cpp.
References ERR(), and MeshLib::Mesh::getDimension().
Referenced by projectToMeshItems().
|
static |
Definition at line 27 of file RasterDataToMesh.cpp.
|
static |
Definition at line 43 of file RasterDataToMesh.cpp.
|
static |
The point at which the raster is sampled for a mesh item.
Definition at line 38 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 96 of file RasterDataToMesh.cpp.
References MeshLib::Cell, MeshLib::Mesh::getElements(), and projectToMeshItems().
Referenced by main(), and MeshView::openRasterDataToMeshDialog().
|
static |
Creates a new property vector of the given item_type on mesh and fills it with the raster values sampled at the evaluation point of each of the mesh_items.
Definition at line 52 of file RasterDataToMesh.cpp.
References checkMesh(), GeoLib::Raster::getHeader(), MeshLib::Mesh::getProperties(), BaseLib::getUniqueName(), GeoLib::RasterHeader::no_data, and OGS_FATAL.
Referenced by projectToElements(), and projectToNodes().
| bool MeshToolsLib::RasterDataToMesh::projectToNodes | ( | MeshLib::Mesh & | mesh, |
| GeoLib::Raster const & | raster, | ||
| double const | default_replacement, | ||
| std::string const & | array_name ) |
Definition at line 88 of file RasterDataToMesh.cpp.
References MeshLib::Mesh::getNodes(), MeshLib::Node, and projectToMeshItems().
Referenced by main(), and MeshView::openRasterDataToMeshDialog().