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
Programming
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
API
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
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine.Plugins.Syncker.Projections 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.
Notice
Syncker plugin must be loaded.

This class represents an interface used to manage projections configuration of the Syncker.

Projections Class

Properties

bool IsEnabled#

Returns the current value indicating if projections on this host are to be modified by the Synker. You can disable this option, when using Syncker only for synchronization of node transformations (and/or transfer data) and modification of projections is unnecessary.
set
Sets a value indicating if projections on this host are to be modified by the Synker. You can disable this option, when using Syncker only for synchronization of node transformations (and/or transfer data) and modification of projections is unnecessary.
set value - true to enable modification of projections on this host by the Syncker; false - to disable it.

bool IsConfiguratorEnabled#

Returns the current value indicating if Syncker’s Projection Configurator window is shown.
set
Sets a value indicating if Syncker’s Projection Configurator window is shown.
set value - true to show Syncker’s Projection Configurator window; false - to hide it.

int NumDisplays#

Returns the total number of displays in the current configuration.

int NumProjectors#

Returns the total number of projectors in the current configuration.

Members


void SaveProjections ( string file_name, bool binary = false ) #

Saves the current projections configuration to the specified file. You can use this method to migrate old binary files to the new XML format.

Arguments

  • string file_name - Name of the file to which the current projections configuration shall be saved.
  • bool binary - Binary flag. Set true to save configuration in binary format; false - to save in XML format.

void LoadProjections ( string file_name, bool binary = false ) #

Loads projections configuration from the specified file. You can use this method to migrate old binary files to the new XML format.

Arguments

  • string file_name - Name of the file with projections configuration to be loaded.
  • bool binary - Binary flag. Set true to load configuration from a binary file; false - to load configuration from an XML file.

int AddDisplay ( string name ) #

Adds a new display to the current configuration.

Arguments

  • string name - Name of the new display to be added.

Return value

Number of the new added display.

void RemoveDisplay ( int num ) #

Removes the display with the specified number from the current configuration.

Arguments

void SetDisplayEnabled ( int num, bool enabled ) #

Sets a value indicating if the specified display is enabled.

Arguments

  • int num - Number of the display in the range from 0 to the total number of displays.
  • bool enabled - true to enable the specified display; false - to disable it.

bool IsDisplayEnabled ( int num ) #

Returns a value indicating if the specified display is enabled.

Arguments

Return value

true if the specified display is enabled; otherwise, false.

void SetDisplayName ( int num, string name ) #

Sets a new name for the display with the specified number.

Arguments

  • int num - Number of the display in the range from 0 to the total number of displays.
  • string name - New name to be set for the specified display.

string GetDisplayName ( int num ) #

Returns the name of the display with the specified number.

Arguments

Return value

Name of the specified display.

void SetDisplayTransform ( int num, mat4 transform ) #

Sets a new transformation for the display with the specified number.

Arguments

  • int num - Number of the display in the range from 0 to the total number of displays.
  • mat4 transform - New transformation to be set for the specified display.

mat4 GetDisplayTransform ( int num ) #

Returns the current transformation of the display with the specified number.

Arguments

Return value

Current transformation of the specified display.

int AddProjector ( string name ) #

Adds a new projector to the current configuration.

Arguments

  • string name - Name of the new projector to be added.

Return value

Number of the new added projector.

void RemoveProjector ( int num ) #

Removes the projector with the specified number from the current configuration.

Arguments

void SetProjectorEnabled ( int num, bool enabled ) #

Sets a value indicating if the specified projector is enabled.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • bool enabled - true to enable the specified projector; false - to disable it.

bool IsProjectorEnabled ( int num ) #

Returns a value indicating if the specified projector is enabled.

Arguments

Return value

true if the specified projector is enabled; otherwise, false.

void SetProjectorName ( int num, string name ) #

Sets a new name for the projector with the specified number.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • string name - New name to be set for the specified projector.

string GetProjectorName ( int num ) #

Returns the name of the projector with the specified number.

Arguments

Return value

Name of the specified projector.

void SetProjectorTransform ( int num, mat4 transform ) #

Sets a new transformation for the projector with the specified number.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • mat4 transform - New transformation to be set for the specified projector. The transformation includes position (relative to the viewer), rotation, and size (width and height).

mat4 GetProjectorTransform ( int num ) #

Returns the current transformation of the projector with the specified number.

Arguments

Return value

Current transformation of the specified projector.

void SetProjectorAspectRatio ( int num, float aspect ) #

Sets a new aspect ratio (width to height) for the projector with the specified number.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • float aspect - New aspect ratio to be set for the specified projector.

float GetProjectorAspectRatio ( int num ) #

Returns the current aspect ratio (width to height) of the projector with the specified number.

Arguments

Return value

Current aspect ratio of the specified projector.

void SetProjectorVFOV ( int num, float vfov ) #

Sets a new vertical FOV (field of view) of the projector with the specified number.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • float vfov - New vertical field of view to be set for the specified projector, in degrees.

float GetProjectorVFOV ( int num ) #

Returns the current vertical FOV (field of view) of the projector with the specified number.

Arguments

Return value

Current vertical field of view of the specified projector, in degrees.

void SetProjectorHorizontalOffset ( int num, float hoffset ) #

Sets a new horizontal offset of the viewport of the projector with the specified number. The offset measures the position of the image relative to the centerline of the lens.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • float hoffset - New horizontal offset to be set for the viewport of the specified projector, in meters.

float GetProjectorHorizontalOffset ( int num ) #

Returns the current horizontal offset of the viewport of the projector with the specified number. The offset measures the position of the image relative to the centerline of the lens.

Arguments

Return value

Current horizontal offset of the viewport of the specified projector, in meters.

void SetProjectorVerticalOffset ( int num, float voffset ) #

Sets a new vertical offset of the viewport of the projector with the specified number. The offset measures the position of the image relative to the centerline of the lens.

Arguments

  • int num - Number of the projector in the range from 0 to the total number of projectors.
  • float voffset - New vertical offset to be set for the viewport of the specified projector, in meters.

float GetProjectorVerticalOffset ( int num ) #

Returns the current vertical offset of the viewport of the projector with the specified number. The offset measures the position of the image relative to the centerline of the lens.

Arguments

Return value

Current vertical offset of the viewport of the specified projector, in meters.
Last update: 2020-07-31
Build: ()