C# Class TouchScript.Gestures.Base.TransformGestureBase

Abstract base class for Transform Gestures.
Inheritance: Gesture
Afficher le fichier Open project: DRMold/HungryHungryTetris

Protected Properties

Свойство Type Description
angleBuffer float
debugCoroutine UnityEngine.Coroutine
debugID int
debugTouchSize Vector2
deltaPosition Vector3
deltaRotation float
deltaScale float
isTransforming bool
minScreenPointsPixelDistance float
minScreenPointsPixelDistanceSquared float
scaleBuffer float
screenPixelRotationBuffer float
screenPixelScalingBuffer float
screenPixelTranslationBuffer Vector2
screenTransformPixelThreshold float
screenTransformPixelThresholdSquared float

Méthodes protégées

Méthode Description
Awake ( ) : void
OnEnable ( ) : void
clearDebug ( ) : void
doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3

Calculates single finger translation.

doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float

Calculates rotation.

doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float

Calculates scaling.

doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3

Calculated two finger translation with respect to rotation and scaling.

drawDebug ( int touchPoints ) : void
drawDebugDelayed ( int touchPoints ) : void
getNumPoints ( ) : int

Gets the number of points.

getPointPreviousScreenPosition ( int index ) : Vector2

Returns previous screen position of a point with index 0 or 1

getPointScreenPosition ( int index ) : Vector2

Returns screen position of a point with index 0 or 1

onBegan ( ) : void
onChanged ( ) : void
onRecognized ( ) : void
relevantTouches1 ( IList touches ) : bool

Checks if there are touch points in the list which matter for the gesture.

relevantTouches2 ( IList touches ) : bool

Checks if there are touch points in the list which matter for the gesture.

reset ( ) : void
touchesBegan ( IList touches ) : void
touchesEnded ( IList touches ) : void
touchesMoved ( IList touches ) : void

Private Methods

Méthode Description
doDrawDebug ( int touchPoints ) : IEnumerator
updateMinScreenPointsDistance ( ) : void
updateScreenTransformThreshold ( ) : void

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

clearDebug() protected méthode

protected clearDebug ( ) : void
Résultat void

doOnePointTranslation() protected méthode

Calculates single finger translation.
protected doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos Vector2 Finger old screen position.
newScreenPos Vector2 Finger new screen position.
projectionParams TouchScript.Layers.ProjectionParams Layer projection parameters.
Résultat Vector3

doRotation() protected méthode

Calculates rotation.
protected doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 Vector2 Finger one old screen position.
oldScreenPos2 Vector2 Finger two old screen position.
newScreenPos1 Vector2 Finger one new screen position.
newScreenPos2 Vector2 Finger two new screen position.
projectionParams TouchScript.Layers.ProjectionParams Layer projection parameters.
Résultat float

doScaling() protected méthode

Calculates scaling.
protected doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 Vector2 Finger one old screen position.
oldScreenPos2 Vector2 Finger two old screen position.
newScreenPos1 Vector2 Finger one new screen position.
newScreenPos2 Vector2 Finger two new screen position.
projectionParams TouchScript.Layers.ProjectionParams Layer projection parameters.
Résultat float

doTwoPointTranslation() protected méthode

Calculated two finger translation with respect to rotation and scaling.
protected doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos1 Vector2 Finger one old screen position.
oldScreenPos2 Vector2 Finger two old screen position.
newScreenPos1 Vector2 Finger one new screen position.
newScreenPos2 Vector2 Finger two new screen position.
dR float Calculated delta rotation.
dS float Calculated delta scaling.
projectionParams TouchScript.Layers.ProjectionParams Layer projection parameters.
Résultat Vector3

drawDebug() protected méthode

protected drawDebug ( int touchPoints ) : void
touchPoints int
Résultat void

drawDebugDelayed() protected méthode

protected drawDebugDelayed ( int touchPoints ) : void
touchPoints int
Résultat void

getNumPoints() protected méthode

Gets the number of points.
protected getNumPoints ( ) : int
Résultat int

getPointPreviousScreenPosition() protected méthode

Returns previous screen position of a point with index 0 or 1
protected getPointPreviousScreenPosition ( int index ) : Vector2
index int The index.
Résultat Vector2

getPointScreenPosition() protected méthode

Returns screen position of a point with index 0 or 1
protected getPointScreenPosition ( int index ) : Vector2
index int The index.
Résultat Vector2

onBegan() protected méthode

protected onBegan ( ) : void
Résultat void

onChanged() protected méthode

protected onChanged ( ) : void
Résultat void

onRecognized() protected méthode

protected onRecognized ( ) : void
Résultat void

relevantTouches1() protected méthode

Checks if there are touch points in the list which matter for the gesture.
protected relevantTouches1 ( IList touches ) : bool
touches IList List of touch points.
Résultat bool

relevantTouches2() protected méthode

Checks if there are touch points in the list which matter for the gesture.
protected relevantTouches2 ( IList touches ) : bool
touches IList List of touch points.
Résultat bool

reset() protected méthode

protected reset ( ) : void
Résultat void

touchesBegan() protected méthode

protected touchesBegan ( IList touches ) : void
touches IList
Résultat void

touchesEnded() protected méthode

protected touchesEnded ( IList touches ) : void
touches IList
Résultat void

touchesMoved() protected méthode

protected touchesMoved ( IList touches ) : void
touches IList
Résultat void

Property Details

angleBuffer protected_oe property

Angle buffer.
protected float angleBuffer
Résultat float

debugCoroutine protected_oe property

protected Coroutine,UnityEngine debugCoroutine
Résultat UnityEngine.Coroutine

debugID protected_oe property

protected int debugID
Résultat int

debugTouchSize protected_oe property

protected Vector2 debugTouchSize
Résultat Vector2

deltaPosition protected_oe property

Calculated delta position.
protected Vector3 deltaPosition
Résultat Vector3

deltaRotation protected_oe property

Calculated delta rotation.
protected float deltaRotation
Résultat float

deltaScale protected_oe property

Calculated delta scale.
protected float deltaScale
Résultat float

isTransforming protected_oe property

Indicates whether transformation started;
protected bool isTransforming
Résultat bool

minScreenPointsPixelDistance protected_oe property

MinScreenPointsDistance in pixels for internal use.
protected float minScreenPointsPixelDistance
Résultat float

minScreenPointsPixelDistanceSquared protected_oe property

MinScreenPointsDistance squared in pixels for internal use.
protected float minScreenPointsPixelDistanceSquared
Résultat float

scaleBuffer protected_oe property

Scaling buffer.
protected float scaleBuffer
Résultat float

screenPixelRotationBuffer protected_oe property

Rotation buffer.
protected float screenPixelRotationBuffer
Résultat float

screenPixelScalingBuffer protected_oe property

Screen space scaling buffer.
protected float screenPixelScalingBuffer
Résultat float

screenPixelTranslationBuffer protected_oe property

Translation buffer.
protected Vector2 screenPixelTranslationBuffer
Résultat Vector2

screenTransformPixelThreshold protected_oe property

ScreenTransformThreshold in pixels.
protected float screenTransformPixelThreshold
Résultat float

screenTransformPixelThresholdSquared protected_oe property

ScreenTransformThreshold in pixels squared.
protected float screenTransformPixelThresholdSquared
Résultat float