Skip to content

File raster_data.hpp

FileList > gui > raster_data.hpp

Go to the source code of this file

  • #include <gdal.h>
  • #include <algorithm>
  • #include <atomic>
  • #include <cmath>
  • #include <future>
  • #include <mutex>
  • #include <optional>
  • #include <vector>
  • #include "grid/grid.hpp"
  • #include "io/crs.hpp"
  • #include "io/gdal_init.hpp"
  • #include "tif/tif.hpp"
  • #include "utilities/progress_tracker.hpp"

Classes

Type Name
class AsyncRasterData
struct DemMeshData
struct TifMetadata

Public Functions

Type Name
DemMeshData build_dem_mesh (const Geo< MultiBand< FlexGrid > > & grid, int stride=1, const Geo< MultiBand< FlexGrid > > * texture=nullptr)
DemMeshData build_flat_cell_dem_mesh (const Geo< MultiBand< FlexGrid > > & grid, int stride=1)
DemMeshData build_slope_colored_mesh (const Geo< MultiBand< FlexGrid > > & slope_grid, const Geo< MultiBand< FlexGrid > > & dem_grid, int stride=1)
DemMeshData build_textured_dem_mesh (const Geo< MultiBand< FlexGrid > > & dem_grid, const Geo< MultiBand< FlexGrid > > & texture_grid, int stride=1, OGRCoordinateTransformation * coord_transform=nullptr)
void compute_mesh_normals (DemMeshData & mesh)
void compute_terrain_normals_from_dem (DemMeshData & mesh, const Geo< MultiBand< FlexGrid > > & dem_grid, int stride, size_t cols, size_t rows)
double flex_grid_value (const FlexGrid & band, size_t x, size_t y)
bool is_valid_elevation (double value)
std::array< size_t, 2 > read_tif_dimensions (const fs::path & path)
TifMetadata read_tif_metadata (const fs::path & path)
void reproject_dem_mesh_horizontal (DemMeshData & mesh, OGRCoordinateTransformation * ct)
double sample_grid_bilinear (const FlexGrid & band, double px, double py)
std::pair< float, float > texture_uv_from_projection (const GeoTransform & texture_transform, size_t texture_width, size_t texture_height, const Coordinate2D< double > & coord)

Public Functions Documentation

function build_dem_mesh

inline DemMeshData build_dem_mesh (
    const Geo < MultiBand < FlexGrid > > & grid,
    int stride=1,
    const Geo < MultiBand < FlexGrid > > * texture=nullptr
) 

function build_flat_cell_dem_mesh

inline DemMeshData build_flat_cell_dem_mesh (
    const Geo < MultiBand < FlexGrid > > & grid,
    int stride=1
) 

function build_slope_colored_mesh

inline DemMeshData build_slope_colored_mesh (
    const Geo < MultiBand < FlexGrid > > & slope_grid,
    const Geo < MultiBand < FlexGrid > > & dem_grid,
    int stride=1
) 

function build_textured_dem_mesh

inline DemMeshData build_textured_dem_mesh (
    const Geo < MultiBand < FlexGrid > > & dem_grid,
    const Geo < MultiBand < FlexGrid > > & texture_grid,
    int stride=1,
    OGRCoordinateTransformation * coord_transform=nullptr
) 

function compute_mesh_normals

inline void compute_mesh_normals (
    DemMeshData & mesh
) 

function compute_terrain_normals_from_dem

inline void compute_terrain_normals_from_dem (
    DemMeshData & mesh,
    const Geo < MultiBand < FlexGrid > > & dem_grid,
    int stride,
    size_t cols,
    size_t rows
) 

function flex_grid_value

inline double flex_grid_value (
    const FlexGrid & band,
    size_t x,
    size_t y
) 

function is_valid_elevation

inline bool is_valid_elevation (
    double value
) 

function read_tif_dimensions

inline std::array< size_t, 2 > read_tif_dimensions (
    const fs::path & path
) 

function read_tif_metadata

inline TifMetadata read_tif_metadata (
    const fs::path & path
) 

function reproject_dem_mesh_horizontal

inline void reproject_dem_mesh_horizontal (
    DemMeshData & mesh,
    OGRCoordinateTransformation * ct
) 

function sample_grid_bilinear

inline double sample_grid_bilinear (
    const FlexGrid & band,
    double px,
    double py
) 

function texture_uv_from_projection

inline std::pair< float, float > texture_uv_from_projection (
    const GeoTransform & texture_transform,
    size_t texture_width,
    size_t texture_height,
    const Coordinate2D < double > & coord
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/gui/raster_data.hpp