This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
VR Development
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

CigiWeatherControl Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.
Header: #include <plugins/Unigine/CIGIConnector/UnigineCIGIConnector.h>
Inherits from: CigiHostPacket

CigiWeatherControl Class

Members


int getRegionID ( ) const#

Returns the Environmental region ID specified in the packet.

Return value

  • Entity ID if Scope is set to Entity (2).
  • Region ID if Scope is set to Regional (1).
Notice
This value will be ignored if Scope is set to Global (0).

int getLayerID ( ) const#

Returns the layer ID specified in the packet.

Return value

Layer ID. The following values are supported:
  • 0 - Ground Fog
  • 1 - Cloud Layer 1
  • 2 - Cloud Layer 2
  • 3 - Cloud Layer 3
  • 4 - Rain
  • 5 - Snow
  • 6 - Sleet
  • 7 - Hail
  • 8 - Sand
  • 9 - Dust
  • 10 – 255 - Defined by IG

int getWeatherEnabled ( ) const#

Returns the value of the Weather Enable parameter specified in the packet.

Return value

Weather Enable parameter value: 1 if a weather layer/entity and its atmospheric effects are enabled; otherwise, 0.

int getScudEnabled ( ) const#

Returns the value of the Scud Enable parameter specified in the packet.

Return value

Scud Enable parameter value: 1 if the weather layer produces scud effects within its transition bands; otherwise, 0.

int getWindEnabled ( ) const#

Returns the value of the Random Winds Enable parameter specified in the packet.

Return value

Random Winds Enable parameter value: 1 if a random frequency and duration will be applied to the local wind effects; otherwise, 0.

int getLightingEnabled ( ) const#

Returns the value of the Random Lightning Enable parameter specified in the packet.

Return value

Random Lightning Enable parameter value: 1 if the weather layer or entity exhibits random lightning effects; otherwise, 0.
Notice
The frequency and severity of the lightning shall vary according to the Severity parameter

int getCloudType ( ) const#

Returns the value of the Cloud Type parameter specified in the packet.

Return value

Cloud Type parameter value. The following values are supported:
  • 0 - None
  • 1 - Altocumulus
  • 2 - Altostratus
  • 3 - Cirrocumulus
  • 4 - Cirrostratus
  • 5 - Cirrus
  • 6 - Cumulonimbus
  • 7 - Cumulus
  • 8 - Nimbostratus
  • 9 - Stratocumulus
  • 10 - Stratus
  • 11 – 15 - Other

int getScope ( ) const#

Returns the value of the Scope parameter specified in the packet. Determines whether the weather is global, regional, or assigned to an entity.

Return value

Scope parameter value. The following values are supported:
  • 0 - Global
  • 1 - Regional
  • 2 - Entity

int getSeverity ( ) const#

Returns the value of the Severity parameter specified in the packet.

Return value

Severity parameter value: 0 – 5 (least to most severe).

int getHumidity ( ) const#

Returns the value of the Humidity parameter specified in the packet.

Return value

Humidity parameter value in the [0; 100] range.

float getTemperature ( ) const#

Returns the value of the Air Temperature parameter specified in the packet.

Return value

Air Temperature parameter value, in degrees Celsius.

float getVisibility ( ) const#

Returns the value of the Visibility Range parameter specified in the packet.

Return value

Visibility Range parameter value.

float getScudFrequency ( ) const#

Returns the value of the Scud Frequency parameter specified in the packet.

Return value

Scud Frequency parameter value in the [0; 100] range.

float getCoverage ( ) const#

Returns the value of the Coverage parameter specified in the packet.

Return value

Coverage parameter value in the [0; 100] range.

float getElevation ( ) const#

Returns the value of the Base Elevation parameter specified in the packet. Determines the altitude of the base (bottom) of the weather layer.

Return value

Base Elevation parameter value.

float getThickness ( ) const#

Returns the value of the Thickness parameter specified in the packet. Determines the vertical thickness of the weather layer. The altitude of the top of the layer is equal to this value plus that specified by Base Elevation.

Return value

Thickness parameter value.

float getWindSpeedHorizontal ( ) const#

Returns the value of the Horizontal Wind Speeed parameter specified in the packet.

Return value

Horizontal Wind Speeed parameter value.

float getWindSpeedVertical ( ) const#

Returns the value of the Vertical Wind Speeed parameter specified in the packet.

Return value

Vertical Wind Speeed parameter value.

float getWindDirection ( ) const#

Returns the value of the Wind Direction parameter specified in the packet.

Return value

Wind Direction parameter value in the [0; 360] range.

float getPressure ( ) const#

Returns the value of the Barometric Pressure parameter specified in the packet.

Return value

Barometric Pressure parameter value.

float getAerosol ( ) const#

Returns the value of the Aerosol Concentration parameter specified in the packet. Determines the concentration of water, smoke, dust, or other particles suspended in the air.
Notice
This parameter is provided primarily for sensor applications; any visual effect is secondary and is IG- and layer-dependent.

Return value

Aerosol Concentration parameter value.

float getTransitionThicknessTop ( ) const#

Returns the thickness of the top Transition Band specified in the packet.

Return value

Thickness of the top Transition Band, in meters.

float getTransitionThicknessBottom ( ) const#

Returns the thickness of the bottom Transition Band specified in the packet.

Return value

Thickness of the bottom Transition Band, in meters.
Last update: 19.12.2023
Build: ()