Babylon.js-style manager: toggles which transform modes are enabled and routes pick/drag to the owned TransformGizmo (switching mode on best hit). 更多...
#include <GizmoManager.h>
Public 成员函数 | |
| GizmoManager () | |
| Gizmo manager. | |
| TransformGizmo * | getGizmo () |
| Returns the gizmo. | |
| void | setPositionEnabled (bool enabled) |
| Sets the position enabled. | |
| void | setRotationEnabled (bool enabled) |
| Sets the rotation enabled. | |
| void | setScaleEnabled (bool enabled) |
| Sets the scale enabled. | |
| void | setBoundEnabled (bool enabled) |
| Sets the bound enabled. | |
| bool | getPositionEnabled () const |
| Returns the position enabled. | |
| bool | getRotationEnabled () const |
| Returns the rotation enabled. | |
| bool | getScaleEnabled () const |
| Returns the scale enabled. | |
| bool | getBoundEnabled () const |
| Returns the bound enabled. | |
| void | attach () |
| Attaches . | |
| void | detach () |
| Detaches . | |
| bool | isAttached () const |
| True when attached. | |
| std::string | pick (float ox, float oy, float oz, float dx, float dy, float dz) |
| Pick across enabled modes; sets gizmo mode to the winning tool. | |
| bool | beginDrag (const std::string &axis, float ox, float oy, float oz, float dx, float dy, float dz) |
| Begins drag. | |
| bool | updateDrag (float ox, float oy, float oz, float dx, float dy, float dz) |
| Updates drag. | |
| void | endDrag () |
| Ends drag. | |
| bool | isDragging () const |
| True when dragging. | |
| bool | isHovered () const |
| True when hovered. | |
详细描述
Babylon.js-style manager: toggles which transform modes are enabled and routes pick/drag to the owned TransformGizmo (switching mode on best hit).
在文件 GizmoManager.h 第 15 行定义.
构造及析构函数说明
◆ GizmoManager()
| eve::editor::GizmoManager::GizmoManager | ( | ) |
成员函数说明
◆ attach()
| void eve::editor::GizmoManager::attach | ( | ) |
Attaches .
在文件 GizmoManager.cpp 第 12 行定义.
◆ beginDrag()
| bool eve::editor::GizmoManager::beginDrag | ( | const std::string & | axis, |
| float | ox, | ||
| float | oy, | ||
| float | oz, | ||
| float | dx, | ||
| float | dy, | ||
| float | dz | ||
| ) |
Begins drag.
在文件 GizmoManager.cpp 第 71 行定义.
引用了 eve::editor::TransformGizmo::beginDrag(), dx, dy, dz, ox , 以及 oy.
◆ detach()
| void eve::editor::GizmoManager::detach | ( | ) |
◆ endDrag()
| void eve::editor::GizmoManager::endDrag | ( | ) |
◆ getBoundEnabled()
|
inline |
Returns the bound enabled.
在文件 GizmoManager.h 第 39 行定义.
◆ getGizmo()
|
inline |
Returns the gizmo.
在文件 GizmoManager.h 第 21 行定义.
◆ getPositionEnabled()
|
inline |
Returns the position enabled.
在文件 GizmoManager.h 第 33 行定义.
◆ getRotationEnabled()
|
inline |
Returns the rotation enabled.
在文件 GizmoManager.h 第 35 行定义.
◆ getScaleEnabled()
|
inline |
Returns the scale enabled.
在文件 GizmoManager.h 第 37 行定义.
◆ isAttached()
|
inline |
True when attached.
在文件 GizmoManager.h 第 46 行定义.
◆ isDragging()
|
inline |
True when dragging.
在文件 GizmoManager.h 第 60 行定义.
◆ isHovered()
|
inline |
True when hovered.
在文件 GizmoManager.h 第 62 行定义.
◆ pick()
| std::string eve::editor::GizmoManager::pick | ( | float | ox, |
| float | oy, | ||
| float | oz, | ||
| float | dx, | ||
| float | dy, | ||
| float | dz | ||
| ) |
Pick across enabled modes; sets gizmo mode to the winning tool.
在文件 GizmoManager.cpp 第 45 行定义.
引用了 best, dx, dy, dz, enabled, h, ox, oy, eve::editor::TransformGizmo::pick() , 以及 eve::editor::TransformGizmo::setMode().
◆ setBoundEnabled()
|
inline |
◆ setPositionEnabled()
|
inline |
◆ setRotationEnabled()
|
inline |
◆ setScaleEnabled()
|
inline |
◆ updateDrag()
| bool eve::editor::GizmoManager::updateDrag | ( | float | ox, |
| float | oy, | ||
| float | oz, | ||
| float | dx, | ||
| float | dy, | ||
| float | dz | ||
| ) |
Updates drag.
在文件 GizmoManager.cpp 第 77 行定义.
引用了 dx, dy, dz, ox, oy , 以及 eve::editor::TransformGizmo::updateDrag().
该类的文档由以下文件生成:
- src/modules/editor/GizmoManager.h
- src/modules/editor/GizmoManager.cpp