AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
ARDesign.JSONBuilder Class Reference

Singleton object for handling scene loading and widget creation More...

Inheritance diagram for ARDesign.JSONBuilder:

Public Member Functions

void InitializeScene (string json, GameObject origin)
 Deserializes a scene configuration and builds it on the origin location More...
 
void AddWidget< T > (IList< T > toAdd)
 Adds widgets to list of active widgets More...
 
void AddWidget< T > (T toAdd)
 Adds widgets to list of active widgets More...
 
IEnumerator GetText (string id)
 Starts get request to fetch config for a given ID More...
 
void UpdateWidgets ()
 Updates all widgets that are set to update More...
 

Static Public Attributes

static JSONBuilder instance = null
 

Detailed Description

Singleton object for handling scene loading and widget creation

Definition at line 16 of file JSONBuilder.cs.

Member Function Documentation

§ AddWidget< T >() [1/2]

void ARDesign.JSONBuilder.AddWidget< T > ( IList< T >  toAdd)

Adds widgets to list of active widgets

Template Parameters
TWidget types
Parameters
toAddList of widgets to add
Type Constraints
T :InfluxReader 

Definition at line 100 of file JSONBuilder.cs.

§ AddWidget< T >() [2/2]

void ARDesign.JSONBuilder.AddWidget< T > ( toAdd)

Adds widgets to list of active widgets

Template Parameters
TWidget types
Parameters
toAddWidget to add
Type Constraints
T :InfluxReader 

Definition at line 118 of file JSONBuilder.cs.

§ GetText()

IEnumerator ARDesign.JSONBuilder.GetText ( string  id)

Starts get request to fetch config for a given ID

Parameters
idID of scene config to load
Returns
Get request for ID

Definition at line 136 of file JSONBuilder.cs.

§ InitializeScene()

void ARDesign.JSONBuilder.InitializeScene ( string  json,
GameObject  origin 
)

Deserializes a scene configuration and builds it on the origin location

Parameters
jsonScene configuration to build
originParent object to build scene on - should be vumark location

Definition at line 87 of file JSONBuilder.cs.

§ UpdateWidgets()

void ARDesign.JSONBuilder.UpdateWidgets ( )

Updates all widgets that are set to update

Definition at line 171 of file JSONBuilder.cs.

Member Data Documentation

§ instance

JSONBuilder ARDesign.JSONBuilder.instance = null
static

Definition at line 18 of file JSONBuilder.cs.


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