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
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::Plugins::IG::Symbol 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/IG/UnigineIG.h>

This class represents the IG Symbol interface. A symbol is a single drawing primitive or a group of drawing primitives that may be drawn on a symbol surface (plane) within a particular view or placed relative to a particular entity.

Notice
IG plugin must be loaded.

Symbol Class

Members


int getID ( ) const#

Returns the ID of the symbol.

void setParent ( Symbol * symbol ) #

Sets a new parent for the symbol.

Arguments

  • Symbol * symbol - Symbol to be set as parent for the symbol.

Symbol * getParent ( ) const#

Returns the parent of the symbol.

Return value

Parent of the symbol.

void setVisible ( bool value ) #

Toggles visibility of the symbol on and off.

Arguments

  • bool value - 1 to make the symbol visible, otherwise 0.

bool isVisible ( ) const#

Checks if the symbol is visible.

Return value

1 if the symbol is visible, otherwise 0.

void setOrder ( int value ) #

Sets rendering order (Z-order) for the symbol. The higher the value, the later the symbol is rendered atop other elements.

Arguments

  • int value - Order of the symbol.

void setOffset ( float x, float y ) #

Sets the symbol's position relevant to the parent plane or symbol.

Arguments

  • float x - Horizontal offset from the parent.
  • float y - Vertical offset from the parent.

vec2 getOffset ( ) const#

Returns the symbol's position relevant to the parent plane or symbol.

Return value

Offset from the parent.

void setScale ( float scale_x, float scale_y ) #

Sets the symbol's scale.

Arguments

  • float scale_x - The symbol's scale along the X axis.
  • float scale_y - The symbol's scale along the Y axis.

vec2 getScale ( ) const#

Returns the symbol's scale.

Return value

Symbol's scale.

void setRotation ( float angle_anticlockwise ) #

Sets the rotation angle for the symbol.

Arguments

  • float angle_anticlockwise - Angle of rotation in counter-clockwise direction.

float getRotation ( ) const#

Returns the rotation angle for the symbol.

Return value

Angle of rotation in counter-clockwise direction.

void setFlashProgram ( const Unigine::Vector<float> & data ) #

Sets the flash program for the symbol. The program uses a sequence of indicated time periods in seconds to consecutively enable and disable the symbol starting from the Enabled state. For example, a sequence 0.3;0.05;0.1 means that a symbol is enabled for 0.3 seconds, then disabled for 0.05 seconds, enabled for 0.1 seconds, and then continues to be enabled for 0.3 seconds, etc. To disable the program, the array should be empty.

Arguments

  • const Unigine::Vector<float> & data - Flash program for the symbol.

void resetFlashProgram ( ) #

Starts the flash program anew.

void setColor ( const vec4 & color ) #

Sets the color of the symbol.

Arguments

  • const vec4 & color - Color of the symbol in the RGBA range.

void setColorInherit ( bool value ) #

Toggles inheritance of the color from the parent symbol on and off.

Arguments

  • bool value - 1 to inherit the color from the parent symbol, otherwise 0.

void setLineWidth ( float value ) #

Sets the width of lines the symbol is drawn of.

Arguments

  • float value - Width of the line.

int getType ( ) const#

Returns the type of the symbol.

Return value

Symbol type.
Last update: 19.12.2023
Build: ()