载入中...
搜索中...
未找到
eve::procgen::TerrainLayers类 参考

Script-friendly ownership wrapper for baked hydrology and climate layers. 更多...

#include <TerrainPipeline.h>

Public 成员函数

 TerrainLayers ()=default
 Terrain layers.
 
 TerrainLayers (HydrologyMap hydrology, ClimateMap climate)
 Terrain layers.
 
int getWidth () const
 Returns the width.
 
int getHeight () const
 Returns the height.
 
float getFlowAccumulation (int x, int y) const
 Returns the flow accumulation.
 
int getFlowDirection (int x, int y) const
 Return the D8 receiver direction for one cell, or -1 at an outlet/out of bounds.
 
float getFlowVectorX (int x, int y) const
 Return the continuous normalized downslope X component.
 
float getFlowVectorY (int x, int y) const
 Return the continuous normalized downslope Y component.
 
bool isRiver (int x, int y) const
 True when river.
 
int getStreamOrder (int x, int y) const
 Return Strahler river order, or zero outside the river network.
 
float getLakeDepth (int x, int y) const
 Return filled-depression water depth, or zero outside a lake.
 
bool isLake (int x, int y, float minimumDepth=0.001f) const
 Return whether the cell belongs to a resolved closed-basin lake.
 
float getTemperature (int x, int y) const
 Returns the temperature.
 
float getMoisture (int x, int y) const
 Returns the moisture.
 
int getBiome (int x, int y) const
 Returns the biome.
 
std::string getBiomeName (int x, int y) const
 Returns the biome name.
 
const HydrologyMap & hydrology () const
 Hydrology.
 
const ClimateMap & climate () const
 Climate.
 

详细描述

Script-friendly ownership wrapper for baked hydrology and climate layers.

在文件 TerrainPipeline.h 第 77 行定义.

构造及析构函数说明

◆ TerrainLayers() [1/2]

eve::procgen::TerrainLayers::TerrainLayers ( )
default

Terrain layers.

◆ TerrainLayers() [2/2]

eve::procgen::TerrainLayers::TerrainLayers ( HydrologyMap  hydrology,
ClimateMap  climate 
)

Terrain layers.

在文件 TerrainPipeline.cpp 第 67 行定义.

成员函数说明

◆ climate()

const ClimateMap & eve::procgen::TerrainLayers::climate ( ) const
inline

Climate.

在文件 TerrainPipeline.h 第 116 行定义.

被这些函数引用 eve::procgen::Procgen::bakeTerrainAsset().

◆ getBiome()

int eve::procgen::TerrainLayers::getBiome ( int  x,
int  y 
) const

Returns the biome.

在文件 TerrainPipeline.cpp 第 135 行定义.

引用了 eve::procgen::ClimateMap::biomes, index, x , 以及 y.

被这些函数引用 eve::procgen::TerrainMeshBuilder::build() , 以及 getBiomeName().

◆ getBiomeName()

std::string eve::procgen::TerrainLayers::getBiomeName ( int  x,
int  y 
) const

Returns the biome name.

在文件 TerrainPipeline.cpp 第 138 行定义.

引用了 biome, getBiome(), x , 以及 y.

◆ getFlowAccumulation()

float eve::procgen::TerrainLayers::getFlowAccumulation ( int  x,
int  y 
) const

Returns the flow accumulation.

在文件 TerrainPipeline.cpp 第 96 行定义.

引用了 eve::procgen::HydrologyMap::flowAccumulation, index, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build().

◆ getFlowDirection()

int eve::procgen::TerrainLayers::getFlowDirection ( int  x,
int  y 
) const

Return the D8 receiver direction for one cell, or -1 at an outlet/out of bounds.

在文件 TerrainPipeline.cpp 第 99 行定义.

引用了 eve::procgen::HydrologyMap::flowDirection, index, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build(), getFlowVectorX() , 以及 getFlowVectorY().

◆ getFlowVectorX()

float eve::procgen::TerrainLayers::getFlowVectorX ( int  x,
int  y 
) const

Return the continuous normalized downslope X component.

在文件 TerrainPipeline.cpp 第 103 行定义.

引用了 d, distance, dx, eve::procgen::HydrologyMap::flowVectorX, getFlowDirection(), index, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build().

◆ getFlowVectorY()

float eve::procgen::TerrainLayers::getFlowVectorY ( int  x,
int  y 
) const

Return the continuous normalized downslope Y component.

在文件 TerrainPipeline.cpp 第 109 行定义.

引用了 d, distance, dy, eve::procgen::HydrologyMap::flowVectorY, getFlowDirection(), index, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build().

◆ getHeight()

int eve::procgen::TerrainLayers::getHeight ( ) const

◆ getLakeDepth()

float eve::procgen::TerrainLayers::getLakeDepth ( int  x,
int  y 
) const

Return filled-depression water depth, or zero outside a lake.

在文件 TerrainPipeline.cpp 第 122 行定义.

引用了 index, eve::procgen::HydrologyMap::lakeDepth, x , 以及 y.

被这些函数引用 eve::procgen::TerrainLakeMeshBuilder::build() , 以及 isLake().

◆ getMoisture()

float eve::procgen::TerrainLayers::getMoisture ( int  x,
int  y 
) const

Returns the moisture.

在文件 TerrainPipeline.cpp 第 132 行定义.

引用了 index, eve::procgen::ClimateMap::moisture, x , 以及 y.

◆ getStreamOrder()

int eve::procgen::TerrainLayers::getStreamOrder ( int  x,
int  y 
) const

Return Strahler river order, or zero outside the river network.

在文件 TerrainPipeline.cpp 第 118 行定义.

引用了 index, eve::procgen::HydrologyMap::streamOrder, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build().

◆ getTemperature()

float eve::procgen::TerrainLayers::getTemperature ( int  x,
int  y 
) const

Returns the temperature.

在文件 TerrainPipeline.cpp 第 129 行定义.

引用了 index, eve::procgen::ClimateMap::temperature, x , 以及 y.

◆ getWidth()

int eve::procgen::TerrainLayers::getWidth ( ) const

◆ hydrology()

const HydrologyMap & eve::procgen::TerrainLayers::hydrology ( ) const
inline

Hydrology.

在文件 TerrainPipeline.h 第 114 行定义.

被这些函数引用 eve::procgen::Procgen::bakeTerrainAsset().

◆ isLake()

bool eve::procgen::TerrainLayers::isLake ( int  x,
int  y,
float  minimumDepth = 0.001f 
) const

Return whether the cell belongs to a resolved closed-basin lake.

在文件 TerrainPipeline.cpp 第 126 行定义.

引用了 getLakeDepth(), x , 以及 y.

◆ isRiver()

bool eve::procgen::TerrainLayers::isRiver ( int  x,
int  y 
) const

True when river.

在文件 TerrainPipeline.cpp 第 115 行定义.

引用了 index, eve::procgen::HydrologyMap::rivers, x , 以及 y.

被这些函数引用 eve::procgen::TerrainRiverMeshBuilder::build().


该类的文档由以下文件生成: