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 () | |
| TransformGizmo * | getGizmo () |
| void | setPositionEnabled (bool enabled) |
| void | setRotationEnabled (bool enabled) |
| void | setScaleEnabled (bool enabled) |
| void | setBoundEnabled (bool enabled) |
| bool | getPositionEnabled () const |
| bool | getRotationEnabled () const |
| bool | getScaleEnabled () const |
| bool | getBoundEnabled () const |
| void | attach () |
| void | detach () |
| bool | isAttached () const |
| 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) |
| bool | updateDrag (float ox, float oy, float oz, float dx, float dy, float dz) |
| void | endDrag () |
| bool | isDragging () const |
| bool | isHovered () const |
详细描述
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 第 13 行定义.
构造及析构函数说明
◆ GizmoManager()
| eve::editor::GizmoManager::GizmoManager | ( | ) |
在文件 GizmoManager.cpp 第 7 行定义.
成员函数说明
◆ attach()
| void eve::editor::GizmoManager::attach | ( | ) |
在文件 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 | ||
| ) |
在文件 GizmoManager.cpp 第 71 行定义.
◆ detach()
| void eve::editor::GizmoManager::detach | ( | ) |
在文件 GizmoManager.cpp 第 14 行定义.
◆ endDrag()
| void eve::editor::GizmoManager::endDrag | ( | ) |
在文件 GizmoManager.cpp 第 82 行定义.
◆ getBoundEnabled()
|
inline |
在文件 GizmoManager.h 第 27 行定义.
◆ getGizmo()
|
inline |
在文件 GizmoManager.h 第 17 行定义.
◆ getPositionEnabled()
|
inline |
在文件 GizmoManager.h 第 24 行定义.
◆ getRotationEnabled()
|
inline |
在文件 GizmoManager.h 第 25 行定义.
◆ getScaleEnabled()
|
inline |
在文件 GizmoManager.h 第 26 行定义.
◆ isAttached()
|
inline |
在文件 GizmoManager.h 第 31 行定义.
◆ isDragging()
|
inline |
在文件 GizmoManager.h 第 41 行定义.
◆ isHovered()
|
inline |
在文件 GizmoManager.h 第 42 行定义.
◆ 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 行定义.
引用了 enabled, h, eve::editor::TransformGizmo::pick() , 以及 eve::editor::TransformGizmo::setMode().
◆ setBoundEnabled()
|
inline |
在文件 GizmoManager.h 第 22 行定义.
引用了 enabled.
◆ setPositionEnabled()
|
inline |
在文件 GizmoManager.h 第 19 行定义.
引用了 enabled.
◆ setRotationEnabled()
|
inline |
在文件 GizmoManager.h 第 20 行定义.
引用了 enabled.
◆ setScaleEnabled()
|
inline |
在文件 GizmoManager.h 第 21 行定义.
引用了 enabled.
◆ updateDrag()
| bool eve::editor::GizmoManager::updateDrag | ( | float | ox, |
| float | oy, | ||
| float | oz, | ||
| float | dx, | ||
| float | dy, | ||
| float | dz | ||
| ) |
在文件 GizmoManager.cpp 第 77 行定义.
该类的文档由以下文件生成:
- src/modules/editor/GizmoManager.h
- src/modules/editor/GizmoManager.cpp