载入中...
搜索中...
未找到
TerrainDerivedMap.h 文件参考
#include "common/Result.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

枚举

enum class  eve::procgen::TerrainHeightmapCurvature { eve::procgen::Average = 0 , eve::procgen::Horizontal = 1 , eve::procgen::Vertical = 2 }
 Pcg HeightMap.CurvatureMap modes in source enum order. 更多...
 
enum class  eve::procgen::TerrainHeightmapAspect { eve::procgen::Aspect = 0 , eve::procgen::Northerness = 1 , eve::procgen::Easterness = 2 }
 Pcg HeightMap.Aspect modes in source enum order. 更多...
 
enum class  eve::procgen::TerrainHeightmapNeighborhood { eve::procgen::DeNoise = 0 , eve::procgen::GrowEdges = 1 , eve::procgen::ShrinkEdges = 2 }
 Pcg HeightMap neighborhood mutation modes. 更多...
 
enum class  eve::procgen::TerrainHeightmapArithmetic { eve::procgen::Add = 0 , eve::procgen::Subtract = 1 , eve::procgen::Multiply = 2 , eve::procgen::Divide = 3 }
 Pcg HeightMap pointwise arithmetic operations. 更多...
 
enum class  eve::procgen::TerrainHeightmapTransform { eve::procgen::Invert = 0 , eve::procgen::Normalise = 1 , eve::procgen::Power = 2 , eve::procgen::Contrast = 3 }
 Pcg HeightMap whole-raster value transforms. 更多...
 
enum class  eve::procgen::TerrainHeightmapCopy { eve::procgen::Always = 0 , eve::procgen::IfLess = 1 , eve::procgen::IfGreater = 2 }
 Pcg HeightMap.Copy conditional modes in source enum order. 更多...
 
enum class  eve::procgen::TerrainHeightmapMeasure {
  eve::procgen::Minimum = 0 , eve::procgen::Maximum = 1 , eve::procgen::Sum = 2 , eve::procgen::Average = 3 ,
  eve::procgen::BaseLevel = 4
}
 Pcg HeightMap read-only scalar measurements. 更多...
 
enum class  eve::procgen::TerrainHeightmapSlopeQuery { eve::procgen::GridForward = 0 , eve::procgen::NormalizedCentral = 1 , eve::procgen::NormalizedAverage = 2 }
 Pcg HeightMap point slope query variants. 更多...
 

函数

Result< float > eve::procgen::sampleTerrainHeightmapSafe (const Heightmap &source, int x, int z)
 Read a finite heightmap at an integer coordinate clamped to its nearest border.
 
Result< float > eve::procgen::sampleTerrainHeightmapNormalized (const Heightmap &source, float x, float z)
 Read Pcg HeightMap's normalized bilinear sample using x*width and z*depth coordinates.
 
Result< bool > eve::procgen::terrainHeightmapHasData (const Heightmap &source)
 Return whether a heightmap contains a valid positive-size sample array.
 
Result< bool > eve::procgen::terrainHeightmapIsPowerOfTwo (const Heightmap &source)
 Return whether both positive heightmap dimensions are powers of two; malformed storage fails.
 
Result< int > eve::procgen::generateTerrainHeightmapCurvature (Heightmap &target, const Heightmap &source, TerrainHeightmapCurvature mode)
 Derive Pcg HeightMap.CurvatureMap's normalized differential curvature.
 
Result< int > eve::procgen::generateTerrainHeightmapAspect (Heightmap &target, const Heightmap &source, TerrainHeightmapAspect mode)
 Derive Pcg HeightMap.Aspect's aspect, northerness, or easterness raster.
 
Result< int > eve::procgen::filterTerrainHeightmapNeighborhood (Heightmap &target, const Heightmap &source, int radius, TerrainHeightmapNeighborhood mode)
 Apply Pcg HeightMap.DeNoise, GrowEdges, or ShrinkEdges in source traversal order.
 
Result< int > eve::procgen::smoothTerrainHeightmap (Heightmap &target, const Heightmap &source, int iterations)
 Apply Pcg HeightMap.Smooth's in-place four-neighbor passes.
 
Result< int > eve::procgen::smoothTerrainHeightmapRadius (Heightmap &target, const Heightmap &source, int radius)
 Apply Pcg HeightMap.SmoothRadius's scaled sliding-window filter, including its first-row omission.
 
Result< int > eve::procgen::convolveTerrainHeightmap (Heightmap &target, const Heightmap &source, const Heightmap &kernel)
 Apply Pcg HeightMap.Convolve with an odd square kernel and source-order in-place feedback.
 
Result< int > eve::procgen::generateTerrainHeightmapSlope (Heightmap &target, const Heightmap &source)
 Generate Pcg HeightMap.SlopeMap's normalized gradient magnitude.
 
Result< int > eve::procgen::quantizeTerrainHeightmap (Heightmap &target, const Heightmap &source, float divisor)
 Quantize every sample using Pcg HeightMap.Quantize's Mathf.Round rule.
 
Result< int > eve::procgen::applyTerrainHeightmapScalarArithmetic (Heightmap &target, const Heightmap &source, float operand, TerrainHeightmapArithmetic operation, bool clampResult, float minValue, float maxValue)
 Apply a scalar Pcg HeightMap arithmetic operation with optional clamping.
 
Result< int > eve::procgen::applyTerrainHeightmapRasterArithmetic (Heightmap &target, const Heightmap &source, const Heightmap &operand, TerrainHeightmapArithmetic operation, bool clampResult, float minValue, float maxValue)
 Apply a raster Pcg HeightMap arithmetic operation, resampling a differently sized operand.
 
Result< int > eve::procgen::lerpTerrainHeightmap (Heightmap &target, const Heightmap &source, const Heightmap &values, const Heightmap &mask)
 Lerp source toward values under a mask using Pcg's clamped Mathf.Lerp semantics.
 
Result< int > eve::procgen::transformTerrainHeightmap (Heightmap &target, const Heightmap &source, TerrainHeightmapTransform transform, float parameter)
 Apply Pcg Invert, Normalise, Power, or Contrast to a finite heightmap.
 
Result< int > eve::procgen::copyTerrainHeightmap (Heightmap &target, const Heightmap &source, TerrainHeightmapCopy mode)
 Copy or conditionally merge a Pcg heightmap, resampling when dimensions differ.
 
Result< int > eve::procgen::copyTerrainHeightmapClamped (Heightmap &target, const Heightmap &source, float minValue, float maxValue)
 Copy a Pcg heightmap with inclusive output clamping and normalized resampling.
 
Result< int > eve::procgen::flipTerrainHeightmap (Heightmap &target, const Heightmap &source)
 Transpose a Pcg HeightMap exactly as HeightMap.Flip does.
 
Result< double > eve::procgen::measureTerrainHeightmap (const Heightmap &source, TerrainHeightmapMeasure measure)
 Measure Pcg height range, sum, average, or scanner base level from current samples.
 
Result< int > eve::procgen::quantizeTerrainHeightmapTerraces (Heightmap &target, const Heightmap &source, const Heightmap &startHeights, const Heightmap &curves)
 Apply Pcg's curve-driven Quantize overload using one sampled curve per raster row.
 
Result< double > eve::procgen::measureTerrainHeightmapSlope (const Heightmap &source, float x, float y, TerrainHeightmapSlopeQuery mode)
 Evaluate one of Pcg HeightMap's three point-slope formulas.
 
Result< int > eve::procgen::fillTerrainHeightmap (Heightmap &target, float value)
 Fill a finite Pcg heightmap with one value clamped to [0,1].
 
Result< int > eve::procgen::setTerrainHeightmapSafe (Heightmap &target, int x, int y, float value)
 Set one sample after clamping its coordinates to the nearest border.
 
Result< int > eve::procgen::setTerrainHeightmapRow (Heightmap &target, int rowX, const Heightmap &values)
 Set Pcg's fixed-X row from a one-dimensional strip.
 
Result< int > eve::procgen::setTerrainHeightmapColumn (Heightmap &target, int columnZ, const Heightmap &values)
 Set Pcg's fixed-Z column from a one-dimensional strip.
 
Result< int > eve::procgen::resetTerrainHeightmap (Heightmap &target)
 Reset a heightmap to Pcg's empty zero-by-zero state.