Class PanZoomBase
This script allows to zoom into and pan the texture of a GameObject.
It also allows for scrolling by restricting panning to one direction.
Implements
IMixedRealityPointerHandler
IMixedRealityFocusHandler
IMixedRealitySourceStateHandler
IMixedRealityHandJointHandler
MonoBehaviour
Assembly: cs.temp.dll.dll
public abstract class PanZoomBase : MonoBehaviour, IMixedRealityPointerHandler, IMixedRealityFocusHandler, IMixedRealitySourceStateHandler, IMixedRealityHandJointHandler, MonoBehaviour
Fields
Declaration
protected Vector2 cursorPos
Field Value
Declaration
protected Vector2 cursorPos
Field Value
Declaration
protected int dynaZoomInvert
Field Value
Declaration
protected int dynaZoomInvert
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
protected EyeTrackingTarget myEyeTarget
Field Value
Type |
Description |
EyeTrackingTarget |
|
Declaration
protected EyeTrackingTarget myEyeTarget
Field Value
Type |
Description |
EyeTrackingTarget |
|
Declaration
Field Value
Declaration
Field Value
Declaration
protected Vector2 offsetRate_Pan
Field Value
Declaration
protected Vector2 offsetRate_Pan
Field Value
Declaration
protected Vector2 offsetRate_Zoom
Field Value
Declaration
protected Vector2 offsetRate_Zoom
Field Value
Declaration
protected Vector2 originalOffset
Field Value
Declaration
protected Vector2 originalOffset
Field Value
Declaration
protected Vector2 originalPivot
Field Value
Declaration
protected Vector2 originalPivot
Field Value
Declaration
protected Vector3 originalRatio
Field Value
Declaration
protected Vector3 originalRatio
Field Value
Declaration
protected Vector2 originalScale
Field Value
Declaration
protected Vector2 originalScale
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
protected float zoomSpeed
Field Value
Declaration
protected float zoomSpeed
Field Value
Properties
Declaration
protected IMixedRealityEyeSaccadeProvider EyeSaccadeProvider { get; }
Property Value
Type |
Description |
IMixedRealityEyeSaccadeProvider |
|
Declaration
protected IMixedRealityEyeSaccadeProvider EyeSaccadeProvider { get; }
Property Value
Type |
Description |
IMixedRealityEyeSaccadeProvider |
|
Returns the collider of this GameObject.
Declaration
protected BoxCollider MyCollider { get; set; }
Property Value
Type |
Description |
BoxCollider |
|
Returns the collider of this GameObject.
Declaration
protected BoxCollider MyCollider { get; set; }
Property Value
Type |
Description |
BoxCollider |
|
Methods
Declaration
Declaration
Declaration
public abstract float ComputePanSpeed(float cursorPosInOneDir, float maxSpeed, float minDistFromCenterForAutoPan)
Parameters
Type |
Name |
Description |
Single |
cursorPosInOneDir |
|
Single |
maxSpeed |
|
Single |
minDistFromCenterForAutoPan |
|
Returns
Declaration
public abstract float ComputePanSpeed(float cursorPosInOneDir, float maxSpeed, float minDistFromCenterForAutoPan)
Parameters
Type |
Name |
Description |
Single |
cursorPosInOneDir |
|
Single |
maxSpeed |
|
Single |
minDistFromCenterForAutoPan |
|
Returns
Declaration
public void DisableHandZoom()
Declaration
public void DisableHandZoom()
Declaration
public void EnableHandZoom()
Declaration
public void EnableHandZoom()
Declaration
public void IncrementNormFixator()
Declaration
public void IncrementNormFixator()
Declaration
public abstract void Initialize()
Declaration
public abstract void Initialize()
Declaration
protected Vector2 LimitScaling(Vector2 newScale)
Parameters
Type |
Name |
Description |
Vector2 |
newScale |
|
Returns
Declaration
protected Vector2 LimitScaling(Vector2 newScale)
Parameters
Type |
Name |
Description |
Vector2 |
newScale |
|
Returns
Declaration
public void PanHorizontally(float speed)
Parameters
Type |
Name |
Description |
Single |
speed |
|
Declaration
public void PanHorizontally(float speed)
Parameters
Type |
Name |
Description |
Single |
speed |
|
Scroll from top to bottom
Declaration
public void PanVertically(float speed)
Parameters
Type |
Name |
Description |
Single |
speed |
|
Scroll from top to bottom
Declaration
public void PanVertically(float speed)
Parameters
Type |
Name |
Description |
Single |
speed |
|
Declaration
public void ResetNormFixator()
Declaration
public void ResetNormFixator()
Declaration
protected virtual void Start()
Declaration
protected virtual void Start()
Declaration
public void StartFocusing()
Declaration
public void StartFocusing()
Declaration
public void StopFocusing()
Declaration
public void StopFocusing()
Declaration
protected virtual void Update()
Declaration
protected virtual void Update()
Declaration
public abstract bool UpdateCursorPosInHitBox()
Returns
Declaration
public abstract bool UpdateCursorPosInHitBox()
Returns
Declaration
public abstract void UpdatePanZoom()
Declaration
public abstract void UpdatePanZoom()
Declaration
public abstract int ZoomDir(bool zoomIn)
Parameters
Type |
Name |
Description |
Boolean |
zoomIn |
|
Returns
Declaration
public abstract int ZoomDir(bool zoomIn)
Parameters
Type |
Name |
Description |
Boolean |
zoomIn |
|
Returns
Declaration
public abstract void ZoomIn()
Declaration
public abstract void ZoomIn()
Declaration
public void ZoomIn_Timed()
Declaration
public void ZoomIn_Timed()
Declaration
public void ZoomInStart()
Declaration
public void ZoomInStart()
Declaration
public abstract void ZoomOut()
Declaration
public abstract void ZoomOut()
Declaration
public void ZoomOut_Timed()
Declaration
public void ZoomOut_Timed()
Declaration
public void ZoomOutStart()
Declaration
public void ZoomOutStart()
No matter if the user is still looking at the currently active pan-zoom panel, once the "zoom stop"
action has been triggered, reset the active target.
Declaration
No matter if the user is still looking at the currently active pan-zoom panel, once the "zoom stop"
action has been triggered, reset the active target.
Declaration
Implements
IMixedRealityPointerHandler
IMixedRealityFocusHandler
IMixedRealitySourceStateHandler
IMixedRealityHandJointHandler
MonoBehaviour