Skip to content

Diagnostics and configuration

Alessandro Febretti edited this page Aug 2, 2013 · 8 revisions

[[module omega]]

Last revision: ver. 4.1-alpha2 - 18 Jun 2013

These functins are used to configure various aspects of the application, and to print debug information.

[x, y] getDisplayPixelSize()

Returns the size in pixels of the main display. The size returned by this function depends on the display configuration. Tiled planar and cylindrical display systems return the cumulative resolution of the tiled display. Custom display configurations lacking a planar mapping return the pixel size of the first tile created.

bool getBoolSetting(string section, string name, bool default)

Reads a boolean setting name from setting section section. The section is searched inside the app configuration file first, then in system configuration. If the setting is not found, the function return the specified default value.

string getStringSetting(string section, string name, string default)

Reads a string setting name from setting section section. The section is searched inside the app configuration file first, then in system configuration. If the setting is not found, the function return the specified default value.

EventFlags getButtonSetting(string section, string name, EventFlags default)

Reads a button setting name from setting section section. The section is searched inside the app configuration file first, then in system configuration. If the setting is not found, the function return the specified default value. This function is useful to configure system-dependent button names in an application.

printChildren(node, depth)

Prints the tree of children of node up to the specified depth

overridePanopticStereo(value)

When set to true, switches from panoptic stereo tracking to standard tracking. This option is used only when panoptic stereo is enabled for the current display system.

listTiles()

Return a list of the names of all the tiles used by the current configuration

toggleStereo()

Switches between mono and stereo rendering mode on systems with stereo rendering support.

printObjCounts()

Prints a list and count of currently allocated refcounted objects

printModules()

Lists the modules currently active in the application

Clone this wiki locally