This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
应用程序接口
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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

CigiSymbolControl 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 <UnigineCIGIConnector.h>

CigiSymbolControl Class

Members


int getSymbolID ( ) #

Returns the Symbol ID specified in the packet. Determines the symbol to which this packet shall be applied.

Return value

Symbol ID.

int getParentID ( ) #

Returns the Parent Symbol ID specified in the packet. Determines the parent to which the IG shall attach the symbol.

Return value

Parent ID.

int getSurfaceID ( ) #

Returns the Surface ID specified in the packet. Determines the symbol surface on which the IG shall draw the symbol.

Return value

Surface ID.

int getSymbolState ( ) #

Returns the value of the Symbol State parameter specified in the packet. Determines whether the symbol is hidden, visible, or destroyed.

Return value

Symbol State parameter. The following values are supported:
  • 0 - Hidden.
  • 1 - Visible.
  • 2 - Destroyed.

int getAttachState ( ) #

Returns the value of the Attach State parameter specified in the packet. Determines whether the symbol will be attached as a child to a parent symbol.

Return value

Attach State parameter value: 1 if the symbol is to be attached to a parent; otherwise, 0.

int getFlashControl ( ) #

Returns the value of the Flash Control parameter specified in the packet. Determines whether the IG shall continue the symbol’s flash cycle from its present state or restart it from the beginning.

Return value

Flash Control parameter value. One of the following values:
  • 0 - continue
  • 1 - restart

int getInheritColor ( ) #

Returns the value of the Inherit Color parameter specified in the packet. Determines whether the symbol inherits its color from the symbol to which it is attached.

Return value

Inherit Color parameter value: 1 if the color is inherited; otherwise, 0.

int getLayer ( ) #

Returns the value of the Layer parameter specified in the packet. Determines the layer to which the symbol shall be assigned.

Return value

Layer parameter value in the [0 - 255] range.

int getFlashDuty ( ) #

Returns the value of the Flash Duty Cycle Percentage parameter specified in the packet. Determines the duty cycle for a flashing symbol, measured as a percentage of the flash period.

Return value

Flash Duty parameter value in the [0 - 100] range.

float getFlashPeriod ( ) #

Returns the value of the Flash Period parameter specified in the packet. This parameter specifies the duration of a single flash cycle. The IG makes the symbol visible for the duration of the duty cycle period and invisible for the remainder of the flash period.

Return value

Flash Period parameter value.

float getRotation ( ) #

Returns the value of the Rotation parameter specified in the packet. Determines the contrast of the sensor display.

Return value

Rotation parameter value in the [0.0; 1.0] range.

const vec3 & getPosition ( ) #

Returns the UV position of the symbol as a three-component vector combining Position U and Position V parameters specified in the packet.

Return value

UV position of the symbol. The first two components specify the coordinates position of the symbol along U and V axes. The third component shall be ignored.
Notice

For top-level (non-child) symbols, the IG defines position of the symbol with respect to the symbol surface’s 2D coordinate system.

For child symbols - with respect to the parent symbol’s local coordinate system.

const vec3 & getScale ( ) #

Returns the scale vector of the symbol as a three-component vector combining Scale U and Scale V parameters specified in the packet.

Return value

Scale vector for the symbol. The first two components specify scaling factors of the symbol along its local U and V axes. The third component shall be ignored.

const vec4 & getColor ( ) #

Returns the color of the symbol as a four-component vector combining Red, Green, Blue, and Alpha parameters specified in the packet.

Return value

Four-component vector representing symbol color (Red, Green, Blue, Alpha).
Last update: 2020-07-31
Build: ()