Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.GameManager Class Reference

Stores many global variables, handles pregame initializations More...

Inherits MonoBehaviour.

Public Member Functions

void DebugLogSafe (string s)
 Allows other threads to submit messages to be printed at the start of the next frame More...
 
void DebugLogThreadSafe< T > (T t)
 
void DebugLogErrorSafe (string s)
 Allows other threads to submit messages to be printed at the start of the next frame More...
 
void DebugLogErrorThreadSafe< T > (T t)
 

Public Attributes

VRDeviceManager vrDeviceManager = null
 
GameObject cellPreviewer = null
 
Interactable activeSim = null
 
NeuronClampManager ndClampManager = null
 
NDGraphManager ndGraphManager = null
 
int roomSelected = 0
 
Room[] roomOptions = null
 
Color wallColor = Color.white
 
Material defaultMaterial = null
 
Material vertexColorationMaterial = null
 
Material lineRendMaterial = null
 
Transform whiteboard = null
 
Vector3 objScaleDefault = new Vector3(2f, 2f, 2f)
 
Vector3 objScaleMax = new Vector3(4f, 4f, 4f)
 
Vector3 objScaleMin = new Vector3(0.3f, 0.3f, 0.3f)
 
GameObject ovrRightHandAnchor = null
 
GameObject ovrLeftHandAnchor = null
 
Utils.DebugUtils.FPSCounter fpsCounter
 

Static Public Attributes

static GameManager instance = null
 

Properties

int mainThreadId = -1 [get, private set]
 
bool VRActive [get]
 
OVRPlayerController ovrPlayerController = null [get, set]
 
GameObject nonVRCamera = null [get, set]
 

Private Member Functions

void Awake ()
 
void Update ()
 
void OnApplicationQuit ()
 
void OnApplicationPause (bool pause)
 

Private Attributes

bool isRunning = false
 
List< string > logQ = new List<string>()
 
readonly int logQCap = 100
 
List< string > eLogQ = new List<string>()
 
readonly int eLogQCap = 100
 

Detailed Description

Stores many global variables, handles pregame initializations

Member Function Documentation

◆ Awake()

void C2M2.GameManager.Awake ( )
private

◆ DebugLogErrorSafe()

void C2M2.GameManager.DebugLogErrorSafe ( string  s)

Allows other threads to submit messages to be printed at the start of the next frame

Making any Unity API call from another thread is not safe. This method is a quick hack to avoid making a Unity API call from another thread.

◆ DebugLogErrorThreadSafe< T >()

void C2M2.GameManager.DebugLogErrorThreadSafe< T > ( t)

◆ DebugLogSafe()

void C2M2.GameManager.DebugLogSafe ( string  s)

Allows other threads to submit messages to be printed at the start of the next frame

Making any Unity API call from another thread is not safe. This method is a quick hack to avoid mkaing a Unity API call from another thread.

◆ DebugLogThreadSafe< T >()

void C2M2.GameManager.DebugLogThreadSafe< T > ( t)

◆ OnApplicationPause()

void C2M2.GameManager.OnApplicationPause ( bool  pause)
private

◆ OnApplicationQuit()

void C2M2.GameManager.OnApplicationQuit ( )
private

◆ Update()

void C2M2.GameManager.Update ( )
private

Member Data Documentation

◆ activeSim

Interactable C2M2.GameManager.activeSim = null

◆ cellPreviewer

GameObject C2M2.GameManager.cellPreviewer = null

◆ defaultMaterial

Material C2M2.GameManager.defaultMaterial = null

◆ eLogQ

List<string> C2M2.GameManager.eLogQ = new List<string>()
private

◆ eLogQCap

readonly int C2M2.GameManager.eLogQCap = 100
private

◆ fpsCounter

Utils.DebugUtils.FPSCounter C2M2.GameManager.fpsCounter

◆ instance

GameManager C2M2.GameManager.instance = null
static

◆ isRunning

bool C2M2.GameManager.isRunning = false
private

◆ lineRendMaterial

Material C2M2.GameManager.lineRendMaterial = null

◆ logQ

List<string> C2M2.GameManager.logQ = new List<string>()
private

◆ logQCap

readonly int C2M2.GameManager.logQCap = 100
private

◆ ndClampManager

NeuronClampManager C2M2.GameManager.ndClampManager = null

◆ ndGraphManager

NDGraphManager C2M2.GameManager.ndGraphManager = null

◆ objScaleDefault

Vector3 C2M2.GameManager.objScaleDefault = new Vector3(2f, 2f, 2f)

◆ objScaleMax

Vector3 C2M2.GameManager.objScaleMax = new Vector3(4f, 4f, 4f)

◆ objScaleMin

Vector3 C2M2.GameManager.objScaleMin = new Vector3(0.3f, 0.3f, 0.3f)

◆ ovrLeftHandAnchor

GameObject C2M2.GameManager.ovrLeftHandAnchor = null

◆ ovrRightHandAnchor

GameObject C2M2.GameManager.ovrRightHandAnchor = null

◆ roomOptions

Room [] C2M2.GameManager.roomOptions = null

◆ roomSelected

int C2M2.GameManager.roomSelected = 0

◆ vertexColorationMaterial

Material C2M2.GameManager.vertexColorationMaterial = null

◆ vrDeviceManager

VRDeviceManager C2M2.GameManager.vrDeviceManager = null

◆ wallColor

Color C2M2.GameManager.wallColor = Color.white

◆ whiteboard

Transform C2M2.GameManager.whiteboard = null

Property Documentation

◆ mainThreadId

int C2M2.GameManager.mainThreadId = -1
getprivate set

◆ nonVRCamera

GameObject C2M2.GameManager.nonVRCamera = null
getset

◆ ovrPlayerController

OVRPlayerController C2M2.GameManager.ovrPlayerController = null
getset

◆ VRActive

bool C2M2.GameManager.VRActive
get

The documentation for this class was generated from the following file: