This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
VR Development
双精度坐标
应用程序接口
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
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

CigiSensorControl 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

CigiSensorControl Class

Members


int getViewID ( ) const#

Returns the view ID specified in the packet.

Return value

View ID.

int getSensorID ( ) const#

Returns the sensor ID specified in the packet.

Return value

Sensor ID.

int getSensorEnabled ( ) const#

Returns the value of the Sensor On/Off parameter specified in the packet.

Return value

Sensor On/Off parameter value: 1 if the sensor is on; otherwise, 0.

int getPolarity ( ) const#

Returns the value of the Polarity parameter specified in the packet. Determines whether the sensor shows white hot or black hot.

Return value

Polarity parameter value. The following values are supported:
  • 0 - White hot
  • 1 - Red hot

int getDropoutEnabled ( ) const#

Returns the value of the Line-by-Line Dropout Enable parameter specified in the packet. This effect is meant to simulate the horizontal stripes caused by a transient loss of video information.

Return value

Line-by-Line Dropout Enable parameter value: 1 if line-by-line dropout is enabled; otherwise, 0.

int getAutomaticGain ( ) const#

Returns the value of the Automatic Gain parameter specified in the packet.

Return value

Automatic Gain parameter value: 1 if the sensor automatically adjusts the gain value to optimize the brightness and contrast of the sensor display; otherwise, 0.

int getTrackColor ( ) const#

Returns the value of the Track White/Black parameter specified in the packet.

Return value

Track White/Black parameter value: 1 - if the sensor tracks black; 0 - if the sensor tracks white.

int getTrackMode ( ) const#

Returns the value of the Track Mode parameter specified in the packet. Determines which track mode the sensor will use.

Return value

Track Mode parameter value. The following values are supported:
  • 0 - Off
  • 1 - Force Correlate. Tracking behavior shall be similar to that found in a Maverick missile.
  • 2 - Scene. Tracking behavior shall be similar to that found in a FLIR (Forward Looking Infrared).
  • 3 - Target. Contrast tracking shall be used to lock to a specific target area.
  • 4 - Ship. Contrast tracking shall be used, with adjustment of the tracking point so that the weapon strikes close to the water line.
  • 5-7 - Defined by IG

int getResponse ( ) const#

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

Return value

Response Type parameter value: 1 - Extended (gate and target position), the IG will return a Sensor Extended Response packet; 0 - Normal (gate position), the IG will return a Sensor Response packet.
Notice
The IG shall return one of the two sensor response packets every frame as long as the following two criteria are met:
  1. Sensor On/Off is set to On (1).
  2. Track Mode is not set to Off (0).

float getGain ( ) const#

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

Return value

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

float getLevel ( ) const#

Returns the value of the Level parameter specified in the packet. Determines the brightness of the sensor display.

Return value

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

float getCoupling ( ) const#

Returns the value of the AC Coupling parameter specified in the packet. Determines the AC coupling decay constant for the sensor display.

Return value

AC Coupling parameter value.

float getNoise ( ) const#

Returns the value of the Noise parameter specified in the packet. Determines the amount of detector noise for the sensor.

Return value

Noise parameter value in the [0.0; 1.0] range.
Last update: 2023-12-19
Build: ()