(クラス)
コンストラクタ public | {SceneGraphic.default} |
フィールド public SceneGraphic.camera-motion-axis:
CameraMotionAxis =CameraMotionAxis.z
camera-motion-mode: | マウスの動きが Scene の Camera をどのように制御するかを決定します。値が CameraMotionMode.fly の場合、次のようになります。
- 左マウス ボタンで上 / 下:カメラを前後に移動します (カメラの z 軸)。
- 左マウス ボタンで左 / 右:カメラを左右にパン (回転) します。
- 中央マウス ボタンで上 / 下:カメラを上下に傾けます。
- 右マウス ボタンで上 / 下:カメラを上下に移動します (カメラの y 軸)。
- 右マウス ボタンで左 / 右:カメラを左右に移動します (カメラの x 軸)。
左マウス ボタンのカメラの動きは、SceneGraphic.camera-motion-axis により影響を受けます。SceneGraphic.camera-motion-axis が "none" 以外の場合、動きが制約されます。たとえば、軸が "z" の場合、前後の動きは定数 z の値で静止しています。また、カメラの上向きベクトルを z 軸に設定すると、カメラがどのように左右に回転するかに影響します。軸が "x" または "y" の場合、動作はそれぞれの軸で同じようになります。SceneGraphic.camera-motion-axis が "none" の場合、上向きベクトルは影響を受けません。
値が CameraMotionMode.orbit の場合、次のようになります。
- 左マウス ボタンで左 / 右:シーンの中央ポイントの回りに、カメラを水平に軌道回転させます (カメラの x 軸)。
- 左マウス ボタンで上 / 下:シーンの中央ポイントの回りに、カメラを垂直に軌道回転させます (カメラの y 軸)。
- 右マウス ボタンで左 / 右:ビューのカメラ フィールドを変更します (ズーム)。
軌道回転は SceneGraphic.camera-motion-axis により影響を受けます。SceneGraphic.camera-motion-axis が "none" 以外の場合、回転が制約されます。たとえば、軸が "z" の場合、水平方向のマウスの動きでは、カメラは仮想地球儀に沿って緯度の定線上を移動します。同様に、垂直方向のマウスの動きでは、カメラは経度の定線上を移動します。また、カメラの上向きベクトルは z 軸に設定されます (地球儀では、軸は地球儀の中心から北極へ向かうベクトルです)。軸が "x" または "y" の場合、動作はそれぞれの軸で同じようになります。SceneGraphic.camera-motion-axis が "none" の場合、上向きベクトルをカメラの軌道回転に合わせて変更できます。
値が CameraMotionMode.none の場合、Scene の Camera は、マウスの動きにより影響を受けません。
注意事項 |
フィールド public SceneGraphic.camera-motion-mode:
CameraMotionMode =CameraMotionMode.orbit
フィールド public SceneGraphic.depth-test-enabled?:
bool =true
フィールド public SceneGraphic.enter-leave-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
フィールド public SceneGraphic.enter-leave-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
フィールド public SceneGraphic.generate-enter-leave-events?:
bool =false
フィールド public SceneGraphic.generate-motion-scene-events?:
bool =false
フィールド public SceneGraphic.generate-press-scene-events?:
bool =true
フィールド public SceneGraphic.generate-release-scene-events?:
bool =true
フィールド public SceneGraphic.motion-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
フィールド public SceneGraphic.motion-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
orbit-distance: | CameraMotionMode.orbit の場合、このプロパティはカメラの軌道回転の中心となるポイントを決定します。 |
フィールド public SceneGraphic.orbit-distance:
Distance
フィールド public SceneGraphic.press-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
フィールド public SceneGraphic.press-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
フィールド public SceneGraphic.release-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
フィールド public SceneGraphic.release-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
アクセサ public SceneGraphic.style-element:
String
フィールド public SceneGraphic.update-drawable-on-drag-motion?:
bool =true
フィールド public SceneGraphic.update-drawable-on-enter-leave?:
bool =true
フィールド public SceneGraphic.update-drawable-on-pointer-press?:
bool =true
フィールド public SceneGraphic.update-drawable-on-pointer-release?:
bool =true
プロパティ 継承 Graphic:
avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, clip-child-shadows?, discrete-select-in-range?, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visual-parent, vorigin, width プロパティ 継承 Visual:
_style-element, clonable-class?, completely-clonable-children?, cursor, data-source, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
protected | {SceneGraphic.compute-background}:Color |
handle-motion: | このメソッドは、マウス ポインタが SceneGraphic 内にあり、マウス ボタンが押されたりマウスが移動したときに呼び出されます。
このメソッドをオーバーライドして、独自のマウス処理を提供することができます。この場合、記述したメソッドの最後で {self.update-drawable} を呼び出すようにしてください。既定の実装は、delta-x、delta-y、および button-pressed の値に基づいて Scene の Camera を操作します。button-pressed を使用してどの種類のカメラの動きが要求されているかを決定し、delta-x および delta-y でカメラの動きの度合いを決定します (既定の実装は、 SceneGraphic.camera-motion-mode が none でない場合にのみこの操作を実行することに注意してください)。 |
public | {SceneGraphic.handle-motion}:void |
public | {SceneGraphic.redraw-proc}:void |
メソッド 継承 Graphic:
after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, constrain-width, contains-point?, create-pagination-state, detach, draw-range-as-selected, draw-shadow, end-pagination, find-ancestor, find-graphic-at, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-range-as-selected-text, get-top-left-in-ancestor, get-visible-bounds-into, graphical-child-visible-at, make-gui-mark, on-drag-enter, on-inspection, option-changed, paginate, paint-with-decorations, pointer-enter-occurred, pointer-leave-occurred, replace-with, request-draw, request-draw-rect, request-layout, request-pointer-trace, search-next, search-next-here, search-prev, search-prev-here, set-layout, start-pagination, xy-offset-to メソッド 継承 Visual:
add, add-from-init-args, animate, change-cursor, clear, clonable-appearance?, clone-appearance, clone-appearance-helper, find-test-children, get-focus-manager, get-gui-path-to-child, get-layout-context, get-test-parent, get-test-property, get-text, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-attached, note-caret-position, note-detaching, on-drag-leave, on-pointer-envelope-event, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, scroll-to-include, test-record, test-run, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates メソッド 継承 GuiEventTarget:
handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-event, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class メソッド 継承 OptionListInterface:
add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, notify-option-children, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
(コンストラクタ)
public | {SceneGraphic.default} |
(フィールド)
(フィールド)
マウスの動きが Scene の Camera をどのように制御するかを決定します。値が CameraMotionMode.fly の場合、次のようになります。
- 左マウス ボタンで上 / 下:カメラを前後に移動します (カメラの z 軸)。
- 左マウス ボタンで左 / 右:カメラを左右にパン (回転) します。
- 中央マウス ボタンで上 / 下:カメラを上下に傾けます。
- 右マウス ボタンで上 / 下:カメラを上下に移動します (カメラの y 軸)。
- 右マウス ボタンで左 / 右:カメラを左右に移動します (カメラの x 軸)。
左マウス ボタンのカメラの動きは、
SceneGraphic.camera-motion-axis により影響を受けます。
SceneGraphic.camera-motion-axis が "none" 以外の場合、動きが制約されます。たとえば、軸が "z" の場合、前後の動きは定数 z の値で静止しています。また、カメラの上向きベクトルを z 軸に設定すると、カメラがどのように左右に回転するかに影響します。軸が "x" または "y" の場合、動作はそれぞれの軸で同じようになります。
SceneGraphic.camera-motion-axis が "none" の場合、上向きベクトルは影響を受けません。
値が
CameraMotionMode.orbit の場合、次のようになります。
- 左マウス ボタンで左 / 右:シーンの中央ポイントの回りに、カメラを水平に軌道回転させます (カメラの x 軸)。
- 左マウス ボタンで上 / 下:シーンの中央ポイントの回りに、カメラを垂直に軌道回転させます (カメラの y 軸)。
- 右マウス ボタンで左 / 右:ビューのカメラ フィールドを変更します (ズーム)。
軌道回転は
SceneGraphic.camera-motion-axis により影響を受けます。
SceneGraphic.camera-motion-axis が "none" 以外の場合、回転が制約されます。たとえば、軸が "z" の場合、水平方向のマウスの動きでは、カメラは仮想地球儀に沿って緯度の定線上を移動します。同様に、垂直方向のマウスの動きでは、カメラは経度の定線上を移動します。また、カメラの上向きベクトルは z 軸に設定されます (地球儀では、軸は地球儀の中心から北極へ向かうベクトルです)。軸が "x" または "y" の場合、動作はそれぞれの軸で同じようになります。
SceneGraphic.camera-motion-axis が "none" の場合、上向きベクトルをカメラの軌道回転に合わせて変更できます。
値が
CameraMotionMode.none の場合、
Scene の
Camera は、マウスの動きにより影響を受けません。
注意事項
(フィールド)
public SceneGraphic.depth-test-enabled?:
bool =true
Scene がペイントされる場合に、深度バッファ (z バッファ) を使用可能にするかどうかを指定するブール値。
説明
既存値は true です。
(フィールド)
public SceneGraphic.enter-leave-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
(フィールド)
public SceneGraphic.enter-leave-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
(フィールド)
public SceneGraphic.generate-enter-leave-events?:
bool =false
(フィールド)
public SceneGraphic.generate-motion-scene-events?:
bool =false
(フィールド)
public SceneGraphic.generate-press-scene-events?:
bool =true
(フィールド)
public SceneGraphic.generate-release-scene-events?:
bool =true
(フィールド)
public SceneGraphic.motion-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
(フィールド)
public SceneGraphic.motion-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
(フィールド)
public SceneGraphic.orbit-distance:
Distance CameraMotionMode.orbit の場合、このプロパティはカメラの軌道回転の中心となるポイントを決定します。
説明
軌道回転の中心は、カメラからカメラのビュー ベクトルに沿った orbit-distance 空間内のポイントを計算して決定します。
(フィールド)
public SceneGraphic.press-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
(フィールド)
public SceneGraphic.press-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
(フィールド)
public SceneGraphic.release-scene-events-predicate:
SCENE.Predicate =SCENE.Predicate.first
(フィールド)
public SceneGraphic.release-scene-events-sort-order:
SCENE.SortOrder =SCENE.SortOrder.forward
(アクセサ)
(アクセサ)
アクセサ public SceneGraphic.style-element:
String スタイリングの目的のための、この Visual の "要素" や "型" です。
説明
オーバーライド
Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入:
バージョン 6.0
(フィールド)
public SceneGraphic.update-drawable-on-drag-motion?:
bool =true
(フィールド)
public SceneGraphic.update-drawable-on-enter-leave?:
bool =true
(フィールド)
public SceneGraphic.update-drawable-on-pointer-press?:
bool =true
(フィールド)
public SceneGraphic.update-drawable-on-pointer-release?:
bool =true
(メソッド)
protected | {SceneGraphic.compute-background}:Color |
(メソッド)
public | {SceneGraphic.handle-motion}:void |
このメソッドは、マウス ポインタが SceneGraphic 内にあり、マウス ボタンが押されたりマウスが移動したときに呼び出されます。
このメソッドをオーバーライドして、独自のマウス処理を提供することができます。この場合、記述したメソッドの最後で {self.update-drawable} を呼び出すようにしてください。既定の実装は、delta-x、delta-y、および button-pressed の値に基づいて Scene の Camera を操作します。button-pressed を使用してどの種類のカメラの動きが要求されているかを決定し、delta-x および delta-y でカメラの動きの度合いを決定します (既定の実装は、 SceneGraphic.camera-motion-mode が none でない場合にのみこの操作を実行することに注意してください)。
(メソッド)
(メソッド)
(メソッド)
(メソッド)
(メソッド)
(メソッド)
(メソッド)
public | {SceneGraphic.redraw-proc}:void |