TranslationController

パブリック クラス TranslationController

DragGestureRecognizer を使用して BaseTransformableNode の位置を操作する。指定しない場合、DragGesture の起動時に BaseTransformableNode が選択されます。

パブリック コンストラクタ

TranslationControllerBaseTransformableNode transformableNode、DragGestureRecognizer gestureRecognizer)

パブリック メソッド

ブール値
canStartTransformationDragGesture ジェスチャー)
EnumSet<Plane.Type>
getAllowedPlaneTypes()
この TranslationController の変換を許可する ArCore プレーンのタイプを決定する EnumSet への参照を取得します。
ブール値
void
void
onEndTransformationDragGesture ジェスチャー)
void
onUpdatedNode ノード、FrameTime frameTime)
onUpdate(FrameTime) が呼び出されたことをリスナーに通知します。
void
setAllowedPlaneTypes(EnumSet<Plane.Type> allowedPlaneTypes)
この TranslationController で変換を許可する ArCore プレーンの種類を設定します。

継承されるメソッド

パブリック コンストラクタ

public TranslationController (BaseTransformableNode transformableNode、DragGestureRecognizer gestureRecognizer)

パラメータ
transformableNode
ジェスチャー認識機能(# など適宜文脈に応じて)

パブリック メソッド

公開ブール値 canStartTransformation DragGesture ジェスチャー)

パラメータ
ジェスチャー

public EnumSet<Plane.Type> getAllowedPlaneTypes ()

この TranslationController の変換を許可する ArCore プレーンのタイプを決定する EnumSet への参照を取得します。

public boolean isTransforming ()

public void onContinueTransformation DragGesture ジェスチャー)

パラメータ
ジェスチャー

public void onEndTransformation DragGesture ジェスチャー)

パラメータ
ジェスチャー

public void onUpdated ノードノード、FrameTime frameTime)

onUpdate(FrameTime) が呼び出されたことをリスナーに通知します。

パラメータ
ノード 更新されたノード
フレーム時間 現在のフレームの時間情報を提供します。

public void setAllowedPlaneTypes (EnumSet<Plane.Type> allowedPlaneTypes)

この TranslationController で変換を許可する ArCore プレーンの種類を設定します。

パラメータ
allowedPlaneTypes