BaseTransformationController

公用抽象類別 BaseTransformationController
已知的直接子類別

透過 BaseGestureRecognizer 回應手勢,操控 BaseTransformableNode 的轉換屬性 (例如縮放/旋轉/翻譯)。

例如:根據雙指撥動手勢變更 TransformableNode 的縮放比例。

公用建構函式

公用方法

BaseTransformableNode
布林
布林
void
onActivated(Node 節點)
通知事件監聽器已呼叫 onActivate()
void
onDisabledd(Node 節點)
通知事件監聽器已呼叫 onDeactivate()
void
onFinished(T 手勢)
void
onGestureStarted(T 手勢)
void
onUpdated(T 手勢)
void
onUpdated(Node 節點、FrameTime frameTime)
通知事件監聽器已呼叫 onUpdate(FrameTime)
void
setEnabled (已啟用布林值)

保護方法

抽象布林值
抽象 void
抽象 void

沿用的方法

公用建構函式

public BaseTransformationController(BaseTransformableNodetransformableNode、BaseGestureRecognizer<T>GestureRecognizer)

參數
transformableNode
手勢辨識器

公用方法

public T getActiveGesture ()

公開 BaseTransformableNode getTransformableNode ()

公用布林值 isEnabled ()

public 布林值 isTransforming ()

public void onActivated (節點節點)

通知事件監聽器已呼叫 onActivate()

參數
個節點 已啟用的節點

public void onDisabled (Node節點)

通知事件監聽器已呼叫 onDeactivate()

參數
個節點 已停用的節點

public onFinished (T 手勢)

參數
手勢

public onGestureStarted (T 手勢)

參數
手勢

public onUpdated (T 手勢)

參數
手勢

public onUpdated (節點節點、FrameTime frameTime)

通知事件監聽器已呼叫 onUpdate(FrameTime)

參數
個節點 已更新的節點
frametime 提供目前畫格的時間資訊

public setEnabled (已啟用布林值)

參數
已啟用

保護方法

受保護的抽象 布林值 canStartTransformation (T 手勢)

參數
手勢

受保護的抽象 void onContinueTransformation (T 手勢)

參數
手勢

受保護的抽象 void onEndTransformation (T 手勢)

參數
手勢