AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Sharing.SyncRoot Class Reference

Root of the synchronization data model used by this application. More...

Inheritance diagram for HoloToolkit.Sharing.SyncRoot:
HoloToolkit.Sharing.SyncModel.SyncObject HoloToolkit.Sharing.SyncModel.SyncPrimitive

Public Member Functions

 SyncRoot (ObjectElement rootElement)
 Constructor. More...
 
- Public Member Functions inherited from HoloToolkit.Sharing.SyncModel.SyncObject
 SyncObject (string field)
 
 SyncObject ()
 
SyncPrimitive [] GetChildren ()
 Returns a list of all child primitives. More...
 
override void InitializeLocal (ObjectElement parentElement)
 Initializes this object for local use. Doesn't wait for network initialization. More...
 
override void AddFromRemote (Element remoteElement)
 Called when being remotely initialized. More...
 
- Public Member Functions inherited from HoloToolkit.Sharing.SyncModel.SyncPrimitive
 SyncPrimitive (string field)
 Base Constructor for Sync Primitives. More...
 
virtual void UpdateFromRemote (XString remoteValue)
 Called when the primitive value has changed from a remote action. More...
 
virtual void UpdateFromRemote (float remoteValue)
 Called when the primitive value has changed from a remote action. More...
 
virtual void UpdateFromRemote (double remoteValue)
 Called when the primitive value has changed from a remote action. More...
 
virtual void UpdateFromRemote (int remoteValue)
 Called when the primitive value has changed from a remote action. More...
 
virtual void UpdateFromRemote (long remoteValue)
 Called when the primitive value has changed from a remote action. More...
 
virtual void UpdateFromRemote (bool remoteValue)
 Called when the primitive value has changed from a remote action. More...
 

Public Attributes

SyncArray< SyncSpawnedObjectInstantiatedPrefabs
 Children of the root. More...
 

Additional Inherited Members

- Protected Member Functions inherited from HoloToolkit.Sharing.SyncModel.SyncObject
void AddChild (SyncPrimitive data)
 Register a new data model primitive as part of this object. Can be called multiple times on the same child. More...
 
void RemoveChild (SyncPrimitive data)
 Remove a child primitive that belongs to this object. More...
 
virtual void OnElementAdded (Element element)
 Handler for if a child is added. More...
 
virtual void OnElementDeleted (Element element)
 Handler for if a child is deleted. More...
 
virtual void OnBoolElementChanged (long elementID, bool newValue)
 Handler for if a child bool changes. More...
 
virtual void OnIntElementChanged (long elementID, int newValue)
 Handler for if a child int changes. More...
 
virtual void OnLongElementChanged (long elementID, long newValue)
 Handler for if a child long changes More...
 
virtual void OnFloatElementChanged (long elementID, float newValue)
 Handler for if a child float changes More...
 
virtual void OnDoubleElementChanged (long elementID, double newValue)
 Handler for if a child double changes More...
 
virtual void OnStringElementChanged (long elementID, XString newValue)
 Handler for if a child string changes More...
 
virtual void NotifyPrimitiveChanged (SyncPrimitive primitive)
 
- Protected Attributes inherited from HoloToolkit.Sharing.SyncModel.SyncPrimitive
string fieldName
 
Element internalElement
 
- Properties inherited from HoloToolkit.Sharing.SyncModel.SyncObject
ObjectElement Element [get, set]
 This is the sync element for this object. More...
 
User Owner [get, set]
 Optional user that owns this object. More...
 
string ObjectType [get]
 The Object Type as string. More...
 
int OwnerId [get]
 Returns the object element registered owner id. More...
 
- Properties inherited from HoloToolkit.Sharing.SyncModel.SyncPrimitive
long Guid [get]
 Unique identifier for primitive. Returns kInvalidXGuid if uninitialized. More...
 
virtual Element NetworkElement [get, protected set]
 Network Element that represents the sync primitive's value on the server. More...
 
bool HasNetworkElement [get]
 Indicates if the primitive has a network element. The primitive can only be modified if this returns true. More...
 
XString XStringFieldName [get]
 The field name of the primitive. More...
 
string FieldName [get, set]
 The field name of the primitive. More...
 
- Events inherited from HoloToolkit.Sharing.SyncModel.SyncObject
Action< SyncObjectObjectChanged
 
Action< SyncObjectInitializationComplete
 

Detailed Description

Root of the synchronization data model used by this application.

Definition at line 12 of file SyncRoot.cs.

Constructor & Destructor Documentation

§ SyncRoot()

HoloToolkit.Sharing.SyncRoot.SyncRoot ( ObjectElement  rootElement)

Constructor.

Parameters
rootElementRoot Element from Sharing Stage

Definition at line 24 of file SyncRoot.cs.

Member Data Documentation

§ InstantiatedPrefabs

SyncArray<SyncSpawnedObject> HoloToolkit.Sharing.SyncRoot.InstantiatedPrefabs

Children of the root.

Definition at line 18 of file SyncRoot.cs.


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