ClusteredTransformGesture Class |
Namespace: TouchScript.Gestures.TransformGestures.Clustered
public class ClusteredTransformGesture : TransformGesture
The ClusteredTransformGesture type exposes the following members.
Name | Description | |
---|---|---|
ClusteredTransformGesture | Initializes a new instance of the ClusteredTransformGesture class |
Name | Description | |
---|---|---|
ActivePointers |
Gets list of gesture's active pointers.
(Inherited from Gesture.) | |
DebugMode |
Gets or sets if this object should show its debug information.
(Inherited from DebuggableMonoBehaviour.) | |
Delegate |
Gets or sets an object implementing IGestureDelegate to be asked for gesture specific actions.
(Inherited from Gesture.) | |
DeltaPosition |
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.) | |
DeltaRotation |
Gets delta rotation between this frame and last frame in degrees.
This value is only available during Transformed or StateChanged events.
(Inherited from TransformGestureBase.) | |
DeltaScale |
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.) | |
gestureManager |
Reference to global GestureManager.
(Inherited from Gesture.) | |
LocalDeltaPosition |
Gets delta position in local coordinates.
(Inherited from TransformGesture.) | |
MaxPointers |
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.) | |
MinPointers |
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.) | |
MinScreenPointsDistance |
Gets or sets minimum distance between 2 points in cm for gesture to begin.
(Inherited from TwoPointTransformGestureBase.) | |
NormalizedScreenPosition |
Gets normalized screen position.
(Inherited from Gesture.) | |
NumPointers |
Gets the number of active pointerss.
(Inherited from Gesture.) | |
pointersNumState |
The state of min/max number of pointers.
(Inherited from Gesture.) | |
PreviousNormalizedScreenPosition |
Gets previous screen position.
(Inherited from Gesture.) | |
PreviousScreenPosition |
Gets previous screen position.
(Inherited from Gesture.) | |
PreviousState |
Gets previous gesture state.
(Inherited from Gesture.) | |
Projection |
Gets or sets transform's projection type.
(Inherited from TransformGesture.) | |
ProjectionPlaneNormal |
Gets or sets transform's projection plane normal.
(Inherited from TransformGesture.) | |
RequireGestureToFail |
Gets or sets another gesture which must fail before this gesture can be recognized.
(Inherited from Gesture.) | |
RotationAxis |
Gets rotation axis of the gesture in world coordinates.
(Inherited from TransformGestureBase.) | |
ScreenPosition |
Gets current screen position.
(Inherited from Gesture.) | |
ScreenTransformThreshold |
Gets or sets minimum distance in cm for pointers to move for gesture to begin.
(Inherited from TransformGestureBase.) | |
SendMessageTarget |
Gets or sets the target of Unity messages sent from this gesture.
(Inherited from Gesture.) | |
SendStateChangeEvents |
Gets or sets a value indicating whether state change events are broadcasted if UseUnityEvents is true.
(Inherited from Gesture.) | |
SendStateChangeMessages |
Gets or sets a value indicating whether state change events are broadcasted if UseSendMessage is true.
(Inherited from Gesture.) | |
State |
Gets current gesture state.
(Inherited from Gesture.) | |
touchManager |
Reference to global TouchManager.
(Inherited from Gesture.) | |
TransformMask |
Contains transform operations which happened this frame.
(Inherited from TransformGestureBase.) | |
TransformPlane |
Plane where transformation occured.
(Inherited from TransformGesture.) | |
Type |
Gets or sets types of transformation this gesture supports.
(Inherited from TransformGestureBase.) | |
UseSendMessage |
Gets or sets whether gesture should use Unity's SendMessage in addition to C# events.
(Inherited from Gesture.) | |
UseUnityEvents |
Gets or sets whether gesture should use Unity Events in addition to C# events.
(Inherited from Gesture.) |
Name | Description | |
---|---|---|
AddFriendlyGesture |
Adds a friendly gesture.
(Inherited from Gesture.) | |
Awake | (Inherited from TransformGesture.) | |
CanBePreventedByGesture |
Determines whether this instance can be prevented by specified gesture.
(Inherited from Gesture.) | |
Cancel |
Cancels this gesture.
(Inherited from Gesture.) | |
Cancel(Boolean, Boolean) |
Cancels this gesture.
(Inherited from Gesture.) | |
CanPreventGesture |
Determines whether this instance can prevent the specified gesture.
(Inherited from Gesture.) | |
doOnePointTranslation |
Calculates single finger translation.
(Inherited from TransformGesture.) | |
doRotation |
Calculates rotation.
(Inherited from TransformGesture.) | |
doScaling |
Calculates scaling.
(Inherited from TransformGesture.) | |
doTwoPointTranslation |
Calculated two finger translation with respect to rotation and scaling.
(Inherited from TransformGesture.) | |
getNumPoints |
Gets the number of points.
(Overrides TwoPointTransformGestureBasegetNumPoints.) | |
getPointPreviousScreenPosition |
Returns previous screen position of a point with index 0 or 1
(Overrides TwoPointTransformGestureBasegetPointPreviousScreenPosition(Int32).) | |
getPointScreenPosition |
Returns screen position of a point with index 0 or 1
(Overrides TwoPointTransformGestureBasegetPointScreenPosition(Int32).) | |
GetScreenPositionHitData |
Returns HitData for gesture's ScreenPosition, i.e. what is right beneath it.
(Inherited from Gesture.) | |
HasPointer |
Determines whether gesture controls a pointer.
(Inherited from Gesture.) | |
IsFriendly |
Checks if a gesture is friendly with this gesture.
(Inherited from Gesture.) | |
onBegan |
Called when state is changed to Began.
(Inherited from TransformGestureBase.) | |
onCancelled |
Called when state is changed to Cancelled.
(Inherited from Gesture.) | |
onChanged |
Called when state is changed to Changed.
(Inherited from TransformGestureBase.) | |
OnDestroy |
Unity OnDestroy handler.
(Inherited from Gesture.) | |
OnDisable |
Unity OnDisable handler.
(Inherited from Gesture.) | |
OnEnable |
Unity Start handler.
(Inherited from TransformGesture.) | |
onFailed |
Called when state is changed to Failed.
(Inherited from Gesture.) | |
onIdle |
Called when state is changed to Idle.
(Inherited from Gesture.) | |
onPossible |
Called when state is changed to Possible.
(Inherited from Gesture.) | |
onRecognized |
Called when state is changed to Recognized.
(Inherited from TransformGestureBase.) | |
OverrideTargetPosition |
Overrides the target position used in calculations this frame. If used, has to be set after every transform event. TransformGestureBase.
(Inherited from TransformGestureBase.) | |
pointersCancelled |
Called when pointers are cancelled.
(Inherited from Gesture.) | |
pointersPressed |
Called when new pointers appear.
(Overrides TransformGesturepointersPressed(IListPointer).) | |
pointersReleased |
Called if pointers are removed.
(Overrides TransformGestureBasepointersReleased(IListPointer).) | |
pointersUpdated |
Called for moved pointers.
(Overrides TwoPointTransformGestureBasepointersUpdated(IListPointer).) | |
projectScaledRotated |
Projects the point which was scaled and rotated.
(Inherited from TransformGesture.) | |
relevantPointers1 |
Checks if there are pointers in the list which matter for the gesture.
(Overrides TwoPointTransformGestureBaserelevantPointers1(IListPointer).) | |
relevantPointers2 |
Checks if there are pointers in the list which matter for the gesture.
(Overrides TwoPointTransformGestureBaserelevantPointers2(IListPointer).) | |
reset |
Called to reset gesture state after it fails or recognizes.
(Overrides TwoPointTransformGestureBasereset.) | |
resetValues | (Inherited from TransformGestureBase.) | |
setState |
Tries to change gesture state.
(Inherited from Gesture.) | |
ShouldBegin |
Specifies if gesture can begin or recognize.
(Inherited from Gesture.) | |
shouldCachePointerPosition |
Should the gesture cache this pointers to use it later in calculation of ScreenPosition.
(Inherited from Gesture.) | |
ShouldReceivePointer |
Specifies if gesture can receive this specific pointer point.
(Inherited from Gesture.) | |
updateType | (Inherited from TransformGestureBase.) |
Name | Description | |
---|---|---|
Cancelled |
Occurs when gesture is cancelled.
(Inherited from Gesture.) | |
StateChanged |
Occurs when gesture changes state.
(Inherited from Gesture.) | |
TransformCompleted |
Occurs when gesture finishes.
(Inherited from TransformGestureBase.) | |
Transformed |
Occurs when gesture data updates.
(Inherited from TransformGestureBase.) | |
TransformStarted |
Occurs when gesture starts.
(Inherited from TransformGestureBase.) |
Name | Description | |
---|---|---|
activePointers |
Pointers the gesture currently owns and works with.
(Inherited from Gesture.) | |
angleBuffer |
Angle buffer.
(Inherited from TwoPointTransformGestureBase.) | |
basicEditor | (Inherited from Gesture.) | |
cachedPreviousScreenPosition |
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.) | |
cachedScreenPosition |
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.) | |
cachedTransform |
Cached transform of the parent object.
(Inherited from Gesture.) | |
deltaPosition |
Calculated delta position.
(Inherited from TransformGestureBase.) | |
deltaRotation |
Calculated delta rotation.
(Inherited from TransformGestureBase.) | |
deltaScale |
Calculated delta scale.
(Inherited from TransformGestureBase.) | |
isTransforming |
Indicates whether transformation started;
(Inherited from TransformGestureBase.) | |
minScreenPointsPixelDistance | MinScreenPointsDistance in pixels for internal use.
(Inherited from TwoPointTransformGestureBase.) | |
minScreenPointsPixelDistanceSquared | MinScreenPointsDistance squared in pixels for internal use.
(Inherited from TwoPointTransformGestureBase.) | |
OnStateChange |
Occurs when gesture changes state.
(Inherited from Gesture.) | |
OnTransform |
Unity event, occurs when the gesture is updated.
(Inherited from TransformGestureBase.) | |
OnTransformComplete |
Unity event, occurs when the gesture ends.
(Inherited from TransformGestureBase.) | |
OnTransformStart |
Unity event, occurs when the gesture starts.
(Inherited from TransformGestureBase.) | |
rotationAxis |
Rotation axis to use with deltaRotation.
(Inherited from TransformGestureBase.) | |
scaleBuffer |
Scaling buffer.
(Inherited from TwoPointTransformGestureBase.) | |
screenPixelRotationBuffer |
Rotation buffer.
(Inherited from TwoPointTransformGestureBase.) | |
screenPixelScalingBuffer |
Screen space scaling buffer.
(Inherited from TwoPointTransformGestureBase.) | |
screenPixelTranslationBuffer |
Translation buffer.
(Inherited from TwoPointTransformGestureBase.) | |
screenTransformPixelThreshold | ScreenTransformThreshold in pixels.
(Inherited from TransformGestureBase.) | |
screenTransformPixelThresholdSquared | ScreenTransformThreshold in pixels squared.
(Inherited from TransformGestureBase.) | |
targetPosition |
Target overridden position. OverrideTargetPosition(Vector3).
(Inherited from TransformGestureBase.) | |
targetPositionOverridden |
Indicates if current position is being overridden for the next frame. OverrideTargetPosition(Vector3).
(Inherited from TransformGestureBase.) | |
transformMask | (Inherited from TransformGestureBase.) | |
type | (Inherited from TransformGestureBase.) |