Skip to content

Struct SimOne_Data_Environment

ClassList > SimOne_Data_Environment

  • #include <SimOneIOStruct.h>

Public Attributes

Type Name
float cloudDensity = 3
float cloudHeight = 1
float cloudThickness = 1
int date = 20230921
float dustCoverage = 0
float dustDensity = 0
float dustDensityCoefficient = 300
float dustParticle = 0
float fogDensity = 3
float latitude = 31.2304
float lineDamageLevel = 0
float longitude = 121.4737
float moonAzimuth = 15
float moonColorA = 0.87
int moonColorB = 239
int moonColorG = 197
int moonColorR = 178
float moonInclination = 35
float moonIntensity = 0.12
float moonPhase = 0
float moonSize = 0.7
float rainDensity = 3
float raindropDensity = 2000
float raindropParticle = 1
float roadDirtyLevel = 0
float signDamageLevel = 0
float signDirtyLevel = 0
bool simulateReality = true
float snowCoverage = 0
float snowDensity = 3
float snowflakeDensity = 2000
float snowflakeParticle = 1
float sunAzimuth = 0
float sunInclination = 30
float sunIntensity = 5
float sunSize = 1
float thunderBrightness = 14
float thunderInterval = 7
float thunderLightning = 0
float timeOfDay = 1200
int timeZone = 8
float wetness = 0
float windDensity = 3
float windDirection = 180

Public Attributes Documentation

variable cloudDensity

float SimOne_Data_Environment::cloudDensity;

场景中云层覆盖的密度。取值范围为 [0, 10]。 * Cloud coverage density in the scene. Range: [0, 10].


variable cloudHeight

float SimOne_Data_Environment::cloudHeight;

场景中云层的高度系数。取值范围为 [0, 2]。 * Cloud height coefficient in the scene. Range: [0, 2].


variable cloudThickness

float SimOne_Data_Environment::cloudThickness;

场景中云层的厚度系数。取值范围为 [0.1, 2]。 * Cloud thickness coefficient in the scene. Range: [0.1, 2].


variable date

int SimOne_Data_Environment::date;

场景中的日期。格式为yyyyMMdd。取值范围为 [18000101, 21001231]。当 simulateReality 为 true 时,用于确定天气模拟的日期。 * Date in the scene, formatted as yyyyMMdd. Range: [18000101, 21001231]. Used when simulateReality is true.


variable dustCoverage

float SimOne_Data_Environment::dustCoverage;

场景中尘埃覆盖的程度。取值范围为 [0, 1]。 * Degree of dust coverage in the scene. Range: [0, 1].


variable dustDensity

float SimOne_Data_Environment::dustDensity;

场景中尘埃的密度。取值范围为 [0, 10]。 * Density of dust in the scene. Range: [0, 10].


variable dustDensityCoefficient

float SimOne_Data_Environment::dustDensityCoefficient;

尘埃密度系数。取值范围为 [0, 3000]。 * Dust density coefficient. Range: [0, 3000].


variable dustParticle

float SimOne_Data_Environment::dustParticle;

尘埃粒子的大小系数。取值范围为 [0, 3]。 * Dust particle size coefficient. Range: [0, 3].


variable fogDensity

float SimOne_Data_Environment::fogDensity;

场景中的雾密度。取值范围为 [0, 10]。 * Density of the fog in the scene. Range: [0, 10].


variable latitude

float SimOne_Data_Environment::latitude;

地理位置的纬度。取值范围为 [-90, 90]。当 simulateReality 为 true 时,用于确定天气模拟的位置。 * Latitude of the weather simulation location. Range: [-90, 90]. Used when simulateReality is true.


variable lineDamageLevel

float SimOne_Data_Environment::lineDamageLevel;

场景中道路标线的损坏程度。取值范围为 [0, 1]。 * Degree of road line damage in the scene. Range: [0, 1].


variable longitude

float SimOne_Data_Environment::longitude;

地理位置的经度。取值范围为 [-180, 180]。当 simulateReality 为 true 时,用于确定天气模拟的位置。 * Longitude of the weather simulation location. Range: [-180, 180]. Used when simulateReality is true.


variable moonAzimuth

float SimOne_Data_Environment::moonAzimuth;

月亮方位角。取值范围为 [0, 360]。同 sunAzimuth 的属性描述相同。 * Azimuth angle of the moon. Range: [0, 360]. Same as sunAzimuth.


variable moonColorA

float SimOne_Data_Environment::moonColorA;

场景中月亮颜色的 Alpha 通道。取值范围为 [0, 1]。 * Alpha channel of the moon's color in the scene. Range: [0, 1].


variable moonColorB

int SimOne_Data_Environment::moonColorB;

场景中月亮颜色的蓝色通道。取值范围为 [0, 255]。 * Blue channel of the moon's color in the scene. Range: [0, 255].


variable moonColorG

int SimOne_Data_Environment::moonColorG;

场景中月亮颜色的绿色通道。取值范围为 [0, 255]。 * Green channel of the moon's color in the scene. Range: [0, 255].


variable moonColorR

int SimOne_Data_Environment::moonColorR;

场景中月亮颜色的红色通道。取值范围为 [0, 255]。 * Red channel of the moon's color in the scene. Range: [0, 255].


variable moonInclination

float SimOne_Data_Environment::moonInclination;

月亮的倾斜角度。取值范围为 [-90, 90]。同 sunInclination 的属性描述相同。 * Inclination angle of the moon. Range: [-90, 90]. Same as sunInclination.


variable moonIntensity

float SimOne_Data_Environment::moonIntensity;

月光的强度。取值范围为 [0, 10]。 * Intensity of the moonlight. Range: [0, 10].


variable moonPhase

float SimOne_Data_Environment::moonPhase;

场景中月相的阶段。取值范围为 [0, 30]。 * Phase of the moon in the scene. Range: [0, 30].


variable moonSize

float SimOne_Data_Environment::moonSize;

场景中月亮的大小。取值范围为 [0, 12]。 * Size of the moon in the scene. Range: [0, 12].


variable rainDensity

float SimOne_Data_Environment::rainDensity;

场景中的雨密度。取值范围为 [0, 10]。 * Density of rain in the scene. Range: [0, 10].


variable raindropDensity

float SimOne_Data_Environment::raindropDensity;

场景中雨滴的密度系数。取值范围为 [0, 20000]。 * Raindrop density coefficient in the scene. Range: [0, 20000].


variable raindropParticle

float SimOne_Data_Environment::raindropParticle;

场景中雨滴粒子的大小系数。取值范围为 [0, 3]。 * Raindrop particle size coefficient in the scene. Range: [0, 3].


variable roadDirtyLevel

float SimOne_Data_Environment::roadDirtyLevel;

场景中道路的脏污程度。取值范围为 [0, 1]。 * Degree of road dirtiness in the scene. Range: [0, 1].


variable signDamageLevel

float SimOne_Data_Environment::signDamageLevel;

场景中标志的损坏程度。取值范围为 [0, 1]。 * Degree of sign damage in the scene. Range: [0, 1].


variable signDirtyLevel

float SimOne_Data_Environment::signDirtyLevel;

场景中标志的脏污程度。取值范围为 [0, 1]。 * Degree of sign dirtiness in the scene. Range: [0, 1].


variable simulateReality

bool SimOne_Data_Environment::simulateReality;

是否使用地理位置、日期和时间属性来确定太阳、月亮和星星的位置。默认值为 true。 * Whether to use the location, date, and time attributes to determine the position of the sun, moon, and stars. Default is true.


variable snowCoverage

float SimOne_Data_Environment::snowCoverage;

场景中雪覆盖的程度。取值范围为 [0, 1]。 * Degree of snow coverage in the scene. Range: [0, 1].


variable snowDensity

float SimOne_Data_Environment::snowDensity;

场景中的雪密度。取值范围为 [0, 10]。 * Density of snow in the scene. Range: [0, 10].


variable snowflakeDensity

float SimOne_Data_Environment::snowflakeDensity;

场景中雪花的密度系数。取值范围为 [0, 30000]。 * Snowflake density coefficient in the scene. Range: [0, 30000].


variable snowflakeParticle

float SimOne_Data_Environment::snowflakeParticle;

场景中雪花粒子的大小系数。取值范围为 [0, 3]。 * Snowflake particle size coefficient in the scene. Range: [0, 3].


variable sunAzimuth

float SimOne_Data_Environment::sunAzimuth;

太阳方位角。取值范围为 [0, 360]。从真北(0度)沿地平线顺时针测量角度以确定太阳的方向。当 simulateReality 为 true 时无效。 * Azimuth angle of the sun. Range: [0, 360]. Measures the angle clockwise from true north (0) along the horizon to determine the sun's direction. Invalid when simulateReality is true.


variable sunInclination

float SimOne_Data_Environment::sunInclination;

太阳的倾斜角度。取值范围为 [-85, 85]。阳光入射方向与天顶方向之间的角度。当 simulateReality 为 true 时无效。 * Inclination angle of the sun. Range: [-85, 85]. The angle between the sunlight's incident direction and the zenith. Invalid when simulateReality is true.


variable sunIntensity

float SimOne_Data_Environment::sunIntensity;

太阳光的强度。取值范围为 [0, 30]。 * Intensity of the sunlight. Range: [0, 30].


variable sunSize

float SimOne_Data_Environment::sunSize;

场景中太阳的大小。取值范围为 [0, 5]。 * Size of the sun in the scene. Range: [0, 5].


variable thunderBrightness

float SimOne_Data_Environment::thunderBrightness;

闪电的亮度。取值范围为 [1, 25]。 * Brightness of the lightning. Range: [1, 25].


variable thunderInterval

float SimOne_Data_Environment::thunderInterval;

闪电发生之间的时间间隔。取值范围为 [0, 10]。 * Time interval between lightning occurrences. Range: [0, 10].


variable thunderLightning

float SimOne_Data_Environment::thunderLightning;

场景中闪电的密度。取值范围为 [0, 10]。 * Density of lightning in the scene. Range: [0, 10].


variable timeOfDay

float SimOne_Data_Environment::timeOfDay;

场景中的时间,格式为HHmm。取值范围为 [0, 2400]。 * Time of day in the scene, formatted as HHmm. Range: [0, 2400].


variable timeZone

int SimOne_Data_Environment::timeZone;

地理位置的时区。取值范围为 [-12, 12]。当 simulateReality 为 true 时,用于确定天气模拟的时区。 * Time zone of the weather simulation location. Range: [-12, 12]. Used when simulateReality is true.


variable wetness

float SimOne_Data_Environment::wetness;

场景中雨水覆盖的程度。取值范围为 [0, 1]。 * Degree of rain coverage in the scene. Range: [0, 1].


variable windDensity

float SimOne_Data_Environment::windDensity;

场景中的风密度。取值范围为 [0, 10]。 * Density of the wind in the scene. Range: [0, 10].


variable windDirection

float SimOne_Data_Environment::windDirection;

场景中风的方向。取值范围为 [0, 360]。北方为 0 顺时针计算。 * Direction the wind is blowing from. Range: [0, 360]. North is 0, clockwise.



The documentation for this class was generated from the following file docs/api/cpp/SimOneIOStruct.h