Click or drag to resize

ClusteredPinnedTransformGesture Class

PinnedTransformGesture which works with centroid of all pointers instead of with just the first one. Should be used for large touch surfaces.
Inheritance Hierarchy

Namespace:  TouchScript.Gestures.TransformGestures.Clustered
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class ClusteredPinnedTransformGesture : PinnedTransformGesture

The ClusteredPinnedTransformGesture type exposes the following members.

Constructors
  NameDescription
Public methodClusteredPinnedTransformGesture
Initializes a new instance of the ClusteredPinnedTransformGesture class
Top
Properties
  NameDescription
Public propertyActivePointers
Gets list of gesture's active pointers.
(Inherited from Gesture.)
Public propertyDebugMode
Gets or sets if this object should show its debug information.
(Inherited from DebuggableMonoBehaviour.)
Public propertyDelegate
Gets or sets an object implementing IGestureDelegate to be asked for gesture specific actions.
(Inherited from Gesture.)
Public propertyDeltaPosition
Gets delta position between this frame and the last frame in world coordinates. This value is only available during Transformed or StateChanged events.
(Inherited from TransformGestureBase.)
Public propertyDeltaRotation
Gets delta rotation between this frame and last frame in degrees. This value is only available during Transformed or StateChanged events.
(Inherited from TransformGestureBase.)
Public propertyDeltaScale
Contains local delta scale when gesture is recognized. Value is between 0 and +infinity, where 1 is no scale, 0.5 is scaled in half, 2 scaled twice. This value is only available during Transformed or StateChanged events.
(Inherited from TransformGestureBase.)
Protected propertygestureManager
Reference to global GestureManager.
(Inherited from Gesture.)
Public propertyMaxPointers
Gets or sets maximum number of pointers this gesture reacts to. The gesture will not be recognized if it has more than MaxPointers pointers.
(Inherited from Gesture.)
Public propertyMinPointers
Gets or sets minimum number of pointers this gesture reacts to. The gesture will not be recognized if it has less than MinPointers pointers.
(Inherited from Gesture.)
Public propertyNormalizedScreenPosition
Gets normalized screen position.
(Inherited from Gesture.)
Public propertyNumPointers
Gets the number of active pointerss.
(Inherited from Gesture.)
Protected propertypointersNumState
The state of min/max number of pointers.
(Inherited from Gesture.)
Public propertyPreviousNormalizedScreenPosition
Gets previous screen position.
(Inherited from Gesture.)
Public propertyPreviousScreenPosition
Gets previous screen position.
(Inherited from OnePointTrasformGestureBase.)
Public propertyPreviousState
Gets previous gesture state.
(Inherited from Gesture.)
Public propertyProjection
Gets or sets transform's projection type.
(Inherited from PinnedTransformGesture.)
Public propertyProjectionPlaneNormal
Gets or sets transform's projection plane normal.
(Inherited from PinnedTransformGesture.)
Public propertyRequireGestureToFail
Gets or sets another gesture which must fail before this gesture can be recognized.
(Inherited from Gesture.)
Public propertyRotationAxis
Gets rotation axis of the gesture in world coordinates.
(Inherited from TransformGestureBase.)
Public propertyScreenPosition
Gets current screen position.
(Inherited from OnePointTrasformGestureBase.)
Public propertyScreenTransformThreshold
Gets or sets minimum distance in cm for pointers to move for gesture to begin.
(Inherited from TransformGestureBase.)
Public propertySendMessageTarget
Gets or sets the target of Unity messages sent from this gesture.
(Inherited from Gesture.)
Public propertySendStateChangeEvents
Gets or sets a value indicating whether state change events are broadcasted if UseUnityEvents is true.
(Inherited from Gesture.)
Public propertySendStateChangeMessages
Gets or sets a value indicating whether state change events are broadcasted if UseSendMessage is true.
(Inherited from Gesture.)
Public propertyState
Gets current gesture state.
(Inherited from Gesture.)
Protected propertytouchManager
Reference to global TouchManager.
(Inherited from Gesture.)
Public propertyTransformMask
Contains transform operations which happened this frame.
(Inherited from TransformGestureBase.)
Public propertyTransformPlane
Plane where transformation occured.
(Inherited from PinnedTransformGesture.)
Public propertyType
Gets or sets types of transformation this gesture supports.
(Inherited from TransformGestureBase.)
Public propertyUseSendMessage
Gets or sets whether gesture should use Unity's SendMessage in addition to C# events.
(Inherited from Gesture.)
Public propertyUseUnityEvents
Gets or sets whether gesture should use Unity Events in addition to C# events.
(Inherited from Gesture.)
Top
Methods
  NameDescription
Public methodAddFriendlyGesture
Adds a friendly gesture.
(Inherited from Gesture.)
Protected methodAwake (Inherited from PinnedTransformGesture.)
Public methodCanBePreventedByGesture
Determines whether this instance can be prevented by specified gesture.
(Inherited from Gesture.)
Public methodCancel
Cancels this gesture.
(Inherited from Gesture.)
Public methodCancel(Boolean, Boolean)
Cancels this gesture.
(Inherited from Gesture.)
Public methodCanPreventGesture
Determines whether this instance can prevent the specified gesture.
(Inherited from Gesture.)
Protected methoddoRotation
Calculates rotation.
(Inherited from PinnedTransformGesture.)
Protected methoddoScaling
Calculates scaling.
(Inherited from PinnedTransformGesture.)
Protected methodgetPointPreviousScreenPosition
Returns previous screen position of a point with index 0.
(Overrides OnePointTrasformGestureBasegetPointPreviousScreenPosition.)
Protected methodgetPointScreenPosition
Returns screen position of a point with index 0.
(Overrides OnePointTrasformGestureBasegetPointScreenPosition.)
Public methodGetScreenPositionHitData
Returns HitData for gesture's ScreenPosition, i.e. what is right beneath it.
(Inherited from Gesture.)
Public methodHasPointer
Determines whether gesture controls a pointer.
(Inherited from Gesture.)
Public methodIsFriendly
Checks if a gesture is friendly with this gesture.
(Inherited from Gesture.)
Protected methodonBegan
Called when state is changed to Began.
(Inherited from TransformGestureBase.)
Protected methodonCancelled
Called when state is changed to Cancelled.
(Inherited from Gesture.)
Protected methodonChanged
Called when state is changed to Changed.
(Inherited from TransformGestureBase.)
Protected methodOnDestroy
Unity OnDestroy handler.
(Inherited from Gesture.)
Protected methodOnDisable
Unity OnDisable handler.
(Inherited from Gesture.)
Protected methodOnEnable
Unity Start handler.
(Inherited from PinnedTransformGesture.)
Protected methodonFailed
Called when state is changed to Failed.
(Inherited from Gesture.)
Protected methodonIdle
Called when state is changed to Idle.
(Inherited from Gesture.)
Protected methodonPossible
Called when state is changed to Possible.
(Inherited from Gesture.)
Protected methodonRecognized
Called when state is changed to Recognized.
(Inherited from TransformGestureBase.)
Public methodOverrideTargetPosition
Overrides the target position used in calculations this frame. If used, has to be set after every transform event. TransformGestureBase.
(Inherited from TransformGestureBase.)
Protected methodpointersCancelled
Called when pointers are cancelled.
(Inherited from Gesture.)
Protected methodpointersPressed
Called when new pointers appear.
(Inherited from PinnedTransformGesture.)
Protected methodpointersReleased
Called if pointers are removed.
(Inherited from TransformGestureBase.)
Protected methodpointersUpdated
Called for moved pointers.
(Inherited from OnePointTrasformGestureBase.)
Protected methodrelevantPointers
Checks if there are pointers in the list which matter for the gesture.
(Overrides OnePointTrasformGestureBaserelevantPointers(IListPointer).)
Protected methodreset
Called to reset gesture state after it fails or recognizes.
(Inherited from OnePointTrasformGestureBase.)
Protected methodresetValues (Inherited from TransformGestureBase.)
Protected methodsetState
Tries to change gesture state.
(Inherited from Gesture.)
Public methodShouldBegin
Specifies if gesture can begin or recognize.
(Inherited from Gesture.)
Protected methodshouldCachePointerPosition
Should the gesture cache this pointers to use it later in calculation of ScreenPosition.
(Inherited from Gesture.)
Public methodShouldReceivePointer
Specifies if gesture can receive this specific pointer point.
(Inherited from Gesture.)
Protected methodupdateType (Inherited from OnePointTrasformGestureBase.)
Top
Events
  NameDescription
Public eventCancelled
Occurs when gesture is cancelled.
(Inherited from Gesture.)
Public eventStateChanged
Occurs when gesture changes state.
(Inherited from Gesture.)
Public eventTransformCompleted
Occurs when gesture finishes.
(Inherited from TransformGestureBase.)
Public eventTransformed
Occurs when gesture data updates.
(Inherited from TransformGestureBase.)
Public eventTransformStarted
Occurs when gesture starts.
(Inherited from TransformGestureBase.)
Top
Fields
  NameDescription
Protected fieldactivePointers
Pointers the gesture currently owns and works with.
(Inherited from Gesture.)
Protected fieldangleBuffer
Angle buffer.
(Inherited from OnePointTrasformGestureBase.)
Protected fieldbasicEditor (Inherited from Gesture.)
Protected fieldcachedPreviousScreenPosition
Cached previous screen position. Used to keep tap's position which can't be calculated from pointers when the gesture is recognized since all pointers are gone.
(Inherited from Gesture.)
Protected fieldcachedScreenPosition
Cached screen position. Used to keep tap's position which can't be calculated from pointers when the gesture is recognized since all pointers are gone.
(Inherited from Gesture.)
Protected fieldcachedTransform
Cached transform of the parent object.
(Inherited from Gesture.)
Protected fielddeltaPosition
Calculated delta position.
(Inherited from TransformGestureBase.)
Protected fielddeltaRotation
Calculated delta rotation.
(Inherited from TransformGestureBase.)
Protected fielddeltaScale
Calculated delta scale.
(Inherited from TransformGestureBase.)
Protected fieldisTransforming
Indicates whether transformation started;
(Inherited from TransformGestureBase.)
Public fieldOnStateChange
Occurs when gesture changes state.
(Inherited from Gesture.)
Public fieldOnTransform
Unity event, occurs when the gesture is updated.
(Inherited from TransformGestureBase.)
Public fieldOnTransformComplete
Unity event, occurs when the gesture ends.
(Inherited from TransformGestureBase.)
Public fieldOnTransformStart
Unity event, occurs when the gesture starts.
(Inherited from TransformGestureBase.)
Protected fieldrotationAxis
Rotation axis to use with deltaRotation.
(Inherited from TransformGestureBase.)
Protected fieldscaleBuffer
Scaling buffer.
(Inherited from OnePointTrasformGestureBase.)
Protected fieldscreenPixelRotationBuffer
Rotation buffer.
(Inherited from OnePointTrasformGestureBase.)
Protected fieldscreenPixelScalingBuffer
Screen space scaling buffer.
(Inherited from OnePointTrasformGestureBase.)
Protected fieldscreenPixelTranslationBuffer
Translation buffer.
(Inherited from OnePointTrasformGestureBase.)
Protected fieldscreenTransformPixelThreshold (Inherited from TransformGestureBase.)
Protected fieldscreenTransformPixelThresholdSquared
ScreenTransformThreshold in pixels squared.
(Inherited from TransformGestureBase.)
Protected fieldtargetPosition
Target overridden position. OverrideTargetPosition(Vector3).
(Inherited from TransformGestureBase.)
Protected fieldtargetPositionOverridden
Indicates if current position is being overridden for the next frame. OverrideTargetPosition(Vector3).
(Inherited from TransformGestureBase.)
Protected fieldtransformMask (Inherited from TransformGestureBase.)
Protected fieldtype (Inherited from TransformGestureBase.)
Top
See Also