Interface IOrienter
An object capable of computing self-consistent rotations for IOrientables based on their positions.
Namespace: Microsoft.MixedReality.WorldLocking.Core
Assembly: cs.temp.dll.dll
Syntax
public interface IOrienter
Properties
AlignmentManager
Optional subtree alignment manager.
Declaration
IAlignmentManager AlignmentManager { get; set; }
Property Value
Type | Description |
---|---|
IAlignmentManager |
Remarks
If unset, will use global alignment manager, ie WorldLockingManager.GetInstance().AlignmentManager.
Methods
Register(IOrientable)
Add this orientable to the list to be both source of rotation computation, and targets to apply the computed rotation.
Declaration
void Register(IOrientable orientable)
Parameters
Type | Name | Description |
---|---|---|
IOrientable | orientable | The object to start maintining the orientation of. |
Reorient(FragmentId, IAlignmentManager)
Compute a consistent orientation for all registered IOrientables in the given fragment.
Declaration
void Reorient(FragmentId fragmentId, IAlignmentManager mgr)
Parameters
Type | Name | Description |
---|---|---|
FragmentId | fragmentId | The fragment to selectively apply to. |
IAlignmentManager | mgr | The manager governing the process. |
Unregister(IOrientable)
Stop managing orientation for this object, and release all references to it.
Declaration
void Unregister(IOrientable orientable)
Parameters
Type | Name | Description |
---|---|---|
IOrientable | orientable | The object to forget. |