Tanoda
Leap.Unity.Space.LeapSpace Class Referenceabstract
Inheritance diagram for Leap.Unity.Space.LeapSpace:
Leap.Unity.Space.LeapSpaceAnchor Leap.Unity.Space.LeapRadialSpace Leap.Unity.Space.LeapCylindricalSpace Leap.Unity.Space.LeapSphericalSpace

Public Member Functions

void RebuildHierarchy ()
 Call to traverse the entire hierarchy and rebuild the relationship between anchors. Call this whenever any of the following happens: More...
 
void RecalculateTransformers ()
 Call to update all transformers in the space. Call this whenever any anchor or parent of an anchor changes it's transform. More...
 
abstract Hash GetSettingHash ()
 Get a hash of all features in this space. This is useful if you want to know if anything has changed about the settings of this space. More...
 
- Public Member Functions inherited from Leap.Unity.Space.LeapSpaceAnchor
void RecalculateParentAnchor ()
 

Protected Member Functions

override void OnEnable ()
 
override void OnDisable ()
 
abstract ITransformer CosntructBaseTransformer ()
 
abstract ITransformer ConstructTransformer (LeapSpaceAnchor anchor)
 
abstract void UpdateTransformer (ITransformer transformer, ITransformer parent)
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Properties

static List< LeapSpaceallEnabled [get]
 
List< LeapSpaceAnchoranchors [get]
 Returns all active anchors in depth-first pre-order More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Leap.Unity.Space.LeapSpaceAnchor
static LeapSpaceAnchor GetAnchor (Transform root)
 
- Public Attributes inherited from Leap.Unity.Space.LeapSpaceAnchor
LeapSpaceAnchor parent
 
LeapSpace space
 
ITransformer transformer
 

Detailed Description

Definition at line 17 of file LeapSpace.cs.

Member Function Documentation

◆ ConstructTransformer()

abstract ITransformer Leap.Unity.Space.LeapSpace.ConstructTransformer ( LeapSpaceAnchor  anchor)
protectedpure virtual

◆ CosntructBaseTransformer()

abstract ITransformer Leap.Unity.Space.LeapSpace.CosntructBaseTransformer ( )
protectedpure virtual

◆ GetSettingHash()

abstract Hash Leap.Unity.Space.LeapSpace.GetSettingHash ( )
pure virtual

Get a hash of all features in this space. This is useful if you want to know if anything has changed about the settings of this space.

Implemented in Leap.Unity.Space.LeapRadialSpace.

◆ OnDisable()

override void Leap.Unity.Space.LeapSpace.OnDisable ( )
protectedvirtual

Reimplemented from Leap.Unity.Space.LeapSpaceAnchor.

Definition at line 43 of file LeapSpace.cs.

◆ OnEnable()

override void Leap.Unity.Space.LeapSpace.OnEnable ( )
protectedvirtual

Reimplemented from Leap.Unity.Space.LeapSpaceAnchor.

Definition at line 34 of file LeapSpace.cs.

◆ RebuildHierarchy()

void Leap.Unity.Space.LeapSpace.RebuildHierarchy ( )

Call to traverse the entire hierarchy and rebuild the relationship between anchors. Call this whenever any of the following happens:

  • An anchor is created
  • An anchor is enabled / disabled
  • An enabled anchor is destroyed
  • The relative position in the hierarchy of any two anchors changes.

Definition at line 71 of file LeapSpace.cs.

◆ RecalculateTransformers()

void Leap.Unity.Space.LeapSpace.RecalculateTransformers ( )

Call to update all transformers in the space. Call this whenever any anchor or parent of an anchor changes it's transform.

Definition at line 85 of file LeapSpace.cs.

◆ UpdateTransformer()

abstract void Leap.Unity.Space.LeapSpace.UpdateTransformer ( ITransformer  transformer,
ITransformer  parent 
)
protectedpure virtual

Property Documentation

◆ allEnabled

List<LeapSpace> Leap.Unity.Space.LeapSpace.allEnabled
staticget

Definition at line 19 of file LeapSpace.cs.

◆ anchors

List<LeapSpaceAnchor> Leap.Unity.Space.LeapSpace.anchors
get

Returns all active anchors in depth-first pre-order

Definition at line 57 of file LeapSpace.cs.


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