|
HighMap library (C++)
|
#include <virtual_array.hpp>

Public Member Functions | |
| VirtualArray ()=default | |
| VirtualArray (glm::ivec2 shape, glm::vec4 bbox, glm::ivec2 tile_shape, int halo, std::unique_ptr< TileStorage > storage) | |
| VirtualArray (glm::ivec2 shape, glm::vec4 bbox, glm::ivec2 tile_shape, int halo, StorageMode storage_mode=StorageMode::VA_RAM) | |
| VirtualArray (glm::ivec2 shape, glm::ivec2 tile_shape, int halo, StorageMode storage_mode=StorageMode::VA_RAM) | |
| std::unique_ptr< VirtualArray > | clone (const ComputeMode &cm, bool deep_copy=false) |
| void | copy_from (VirtualArray &src, const ComputeMode &cm, bool copy_src_data=true) |
| float | get (int global_i, int global_j) const |
| float | get_bilinear (float x, float y) const |
| float | get_nearest (float x, float y) const |
| void | set (int global_i, int global_j, float v) |
| glm::ivec2 | get_max_tiles () const |
| int | get_ntiles () const |
| std::string | info_string (const ComputeMode &cm, int indent=0) const |
| void | fill (float value, const ComputeMode &cm) |
| void | from_array (const Array &array, const ComputeMode &cm) |
| Array | to_array (const glm::ivec2 array_shape, const ComputeMode &cm) const |
| Array | to_array (const ComputeMode &cm) const |
| Array | to_array_dbg () const |
| float | max (const ComputeMode &cm) const |
| float | mean (const ComputeMode &cm) const |
| float | min (const ComputeMode &cm) const |
| float | sum (const ComputeMode &cm) const |
| void | inverse (const ComputeMode &cm) |
| void | remap (float vmin, float vmax, const ComputeMode &cm) |
| void | remap (float vmin, float vmax, float from_min, float from_max, const ComputeMode &cm) |
| std::vector< float > | unique_values (const ComputeMode &cm) const |
| void | smooth_overlap_buffers () |
| glm::vec2 | tile_region_global_position (const TileRegion ®ion) const |
| glm::ivec2 | tile_region_global_indices (const TileRegion ®ion) const |
| TileRegion | tile_region_from_global_index (int global_i, int global_j) const |
| TileRegion | tile_region_from_tile_coords (int tile_x, int tile_y) const |
| glm::ivec2 | local_indices (const TileRegion ®ion, int global_i, int global_j) const |
| void | trim_storage () |
Public Attributes | |
| glm::ivec2 | shape |
| glm::vec4 | bbox |
| glm::ivec2 | tile_shape |
| int | halo |
| std::unique_ptr< TileStorage > | storage |
|
default |
| hmap::VirtualArray::VirtualArray | ( | glm::ivec2 | shape, |
| glm::vec4 | bbox, | ||
| glm::ivec2 | tile_shape, | ||
| int | halo, | ||
| std::unique_ptr< TileStorage > | storage | ||
| ) |
| hmap::VirtualArray::VirtualArray | ( | glm::ivec2 | shape, |
| glm::vec4 | bbox, | ||
| glm::ivec2 | tile_shape, | ||
| int | halo, | ||
| StorageMode | storage_mode = StorageMode::VA_RAM |
||
| ) |
| hmap::VirtualArray::VirtualArray | ( | glm::ivec2 | shape, |
| glm::ivec2 | tile_shape, | ||
| int | halo, | ||
| StorageMode | storage_mode = StorageMode::VA_RAM |
||
| ) |
| std::unique_ptr< VirtualArray > hmap::VirtualArray::clone | ( | const ComputeMode & | cm, |
| bool | deep_copy = false |
||
| ) |
| void hmap::VirtualArray::copy_from | ( | VirtualArray & | src, |
| const ComputeMode & | cm, | ||
| bool | copy_src_data = true |
||
| ) |
| float hmap::VirtualArray::get | ( | int | global_i, |
| int | global_j | ||
| ) | const |
| float hmap::VirtualArray::get_bilinear | ( | float | x, |
| float | y | ||
| ) | const |
| float hmap::VirtualArray::get_nearest | ( | float | x, |
| float | y | ||
| ) | const |
| void hmap::VirtualArray::set | ( | int | global_i, |
| int | global_j, | ||
| float | v | ||
| ) |
| glm::ivec2 hmap::VirtualArray::get_max_tiles | ( | ) | const |
| int hmap::VirtualArray::get_ntiles | ( | ) | const |
| std::string hmap::VirtualArray::info_string | ( | const ComputeMode & | cm, |
| int | indent = 0 |
||
| ) | const |
| void hmap::VirtualArray::fill | ( | float | value, |
| const ComputeMode & | cm | ||
| ) |
| void hmap::VirtualArray::from_array | ( | const Array & | array, |
| const ComputeMode & | cm | ||
| ) |
| Array hmap::VirtualArray::to_array | ( | const glm::ivec2 | array_shape, |
| const ComputeMode & | cm | ||
| ) | const |
| Array hmap::VirtualArray::to_array | ( | const ComputeMode & | cm | ) | const |
| Array hmap::VirtualArray::to_array_dbg | ( | ) | const |
| float hmap::VirtualArray::max | ( | const ComputeMode & | cm | ) | const |
| float hmap::VirtualArray::mean | ( | const ComputeMode & | cm | ) | const |
| float hmap::VirtualArray::min | ( | const ComputeMode & | cm | ) | const |
| float hmap::VirtualArray::sum | ( | const ComputeMode & | cm | ) | const |
| void hmap::VirtualArray::inverse | ( | const ComputeMode & | cm | ) |
| void hmap::VirtualArray::remap | ( | float | vmin, |
| float | vmax, | ||
| const ComputeMode & | cm | ||
| ) |
| void hmap::VirtualArray::remap | ( | float | vmin, |
| float | vmax, | ||
| float | from_min, | ||
| float | from_max, | ||
| const ComputeMode & | cm | ||
| ) |
| std::vector< float > hmap::VirtualArray::unique_values | ( | const ComputeMode & | cm | ) | const |
| void hmap::VirtualArray::smooth_overlap_buffers | ( | ) |
| glm::vec2 hmap::VirtualArray::tile_region_global_position | ( | const TileRegion & | region | ) | const |
| glm::ivec2 hmap::VirtualArray::tile_region_global_indices | ( | const TileRegion & | region | ) | const |
| TileRegion hmap::VirtualArray::tile_region_from_global_index | ( | int | global_i, |
| int | global_j | ||
| ) | const |
| TileRegion hmap::VirtualArray::tile_region_from_tile_coords | ( | int | tile_x, |
| int | tile_y | ||
| ) | const |
| glm::ivec2 hmap::VirtualArray::local_indices | ( | const TileRegion & | region, |
| int | global_i, | ||
| int | global_j | ||
| ) | const |
| void hmap::VirtualArray::trim_storage | ( | ) |
| glm::ivec2 hmap::VirtualArray::shape |
| glm::vec4 hmap::VirtualArray::bbox |
| glm::ivec2 hmap::VirtualArray::tile_shape |
| int hmap::VirtualArray::halo |
| std::unique_ptr<TileStorage> hmap::VirtualArray::storage |