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

RadialViewPoser solver locks a tag-along type object within a view cone More...

Inheritance diagram for HoloToolkit.Unity.SolverRadialView:
HoloToolkit.Unity.Solver

Public Types

enum  ReferenceDirectionEnum { ReferenceDirectionEnum.ObjectOriented, ReferenceDirectionEnum.FacingWorldUp, ReferenceDirectionEnum.HeadMoveDirection, ReferenceDirectionEnum.GravityAligned }
 

Public Member Functions

override void SolverUpdate ()
 Solver update function used to orient to the user More...
 
- Public Member Functions inherited from HoloToolkit.Unity.Solver
void SolverUpdateEntry ()
 Tracks lifetime of the solver, disabling it when expired, and finally runs the orientation update logic More...
 
virtual void SnapTo (Vector3 position, Quaternion rotation)
 SnapTo may be used to bypass smoothing to a certain position if the object is teleported or spawned More...
 
virtual void SnapGoalTo (Vector3 position, Quaternion rotation)
 SnapGoalTo only sets the goal orientation. Not really useful. More...
 
virtual void AddOffset (Vector3 offset)
 
void UpdateWorkingToGoal ()
 Updates the Working orientation (which may be the object, or the shared orientation) to the goal, with smoothing accounted for More...
 
void UpdateWorkingPosToGoal ()
 Updates only the working position to goal with smoothing More...
 
void UpdateWorkingRotToGoal ()
 Updates only the working rotation to goal with smoothing More...
 
void UpdateWorkingScaleToGoal ()
 Updates only the working scale to goal with smoothing More...
 

Public Attributes

ReferenceDirectionEnum ReferenceDirection = ReferenceDirectionEnum.FacingWorldUp
 
float MinDistance = 1f
 
float MaxDistance = 2f
 
float MinViewDegrees = 0f
 
float MaxViewDegrees = 30f
 
float AspectV = 1f
 
bool IgnoreAngleClamp = false
 
bool IgnoreDistanceClamp = false
 
bool OrientToRefDir = false
 
- Public Attributes inherited from HoloToolkit.Unity.Solver
bool UpdateLinkedTransform = false
 
float MoveLerpTime = 0.1f
 
float RotateLerpTime = 0.1f
 
float ScaleLerpTime = 0
 
bool MaintainScale = true
 
Vector3 GoalPosition
 
Quaternion GoalRotation
 
Vector3 GoalScale
 
bool Smoothing = true
 
float Lifetime = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from HoloToolkit.Unity.Solver
static Vector3 SmoothTo (Vector3 source, Vector3 goal, float deltaTime, float lerpTime)
 Lerps Vector3 source to goal, handles lerpTime of 0 More...
 
static Quaternion SmoothTo (Quaternion source, Quaternion goal, float deltaTime, float lerpTime)
 Slerps Quaternion source to goal, handles lerpTime of 0 More...
 
- Protected Member Functions inherited from HoloToolkit.Unity.Solver
virtual void Awake ()
 
virtual void OnEnable ()
 Typically when a solver becomes enabled, it should update its internal state to the system, in case it was disabled far away More...
 
void UpdateTransformToGoal ()
 Updates all object orientations to the goal orientation for this solver, with smoothing accounted for (smoothing may be off) More...
 
- Protected Attributes inherited from HoloToolkit.Unity.Solver
SolverHandler solverHandler
 
- Properties inherited from HoloToolkit.Unity.Solver
Vector3 WorkingPos [get, set]
 WorkingPos automatically uses the shared position if the solver is set to use the 'linked transform'. UpdateLinkedTransform may be set to false, and a solver will automatically update the object directly, and not inherit work done by other solvers to the shared position More...
 
Quaternion WorkingRot [get, set]
 Rotation version of WorkingPos More...
 
Vector3 WorkingScale [get, set]
 Scale version of WorkingPos More...
 

Detailed Description

RadialViewPoser solver locks a tag-along type object within a view cone

Definition at line 13 of file SolverRadialView.cs.

Member Enumeration Documentation

§ ReferenceDirectionEnum

Enumerator
ObjectOriented 

Orient towards head including roll, pitch and yaw

FacingWorldUp 

Orient toward head but ignore roll

HeadMoveDirection 

Orient torwards the head movement direction found in CameraMotionInfo singleton

GravityAligned 

Orient towards head but remain vertical or gravity aligned

Definition at line 16 of file SolverRadialView.cs.

Member Function Documentation

§ SolverUpdate()

override void HoloToolkit.Unity.SolverRadialView.SolverUpdate ( )
virtual

Solver update function used to orient to the user

Implements HoloToolkit.Unity.Solver.

Definition at line 102 of file SolverRadialView.cs.

Member Data Documentation

§ AspectV

float HoloToolkit.Unity.SolverRadialView.AspectV = 1f

Definition at line 51 of file SolverRadialView.cs.

§ IgnoreAngleClamp

bool HoloToolkit.Unity.SolverRadialView.IgnoreAngleClamp = false

Definition at line 54 of file SolverRadialView.cs.

§ IgnoreDistanceClamp

bool HoloToolkit.Unity.SolverRadialView.IgnoreDistanceClamp = false

Definition at line 56 of file SolverRadialView.cs.

§ MaxDistance

float HoloToolkit.Unity.SolverRadialView.MaxDistance = 2f

Definition at line 44 of file SolverRadialView.cs.

§ MaxViewDegrees

float HoloToolkit.Unity.SolverRadialView.MaxViewDegrees = 30f

Definition at line 49 of file SolverRadialView.cs.

§ MinDistance

float HoloToolkit.Unity.SolverRadialView.MinDistance = 1f

Definition at line 42 of file SolverRadialView.cs.

§ MinViewDegrees

float HoloToolkit.Unity.SolverRadialView.MinViewDegrees = 0f

Definition at line 47 of file SolverRadialView.cs.

§ OrientToRefDir

bool HoloToolkit.Unity.SolverRadialView.OrientToRefDir = false

Definition at line 59 of file SolverRadialView.cs.

§ ReferenceDirection

ReferenceDirectionEnum HoloToolkit.Unity.SolverRadialView.ReferenceDirection = ReferenceDirectionEnum.FacingWorldUp

Definition at line 39 of file SolverRadialView.cs.


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