载入中...
搜索中...
未找到
eve::editor::GizmoManager类 参考

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 ( )

Gizmo manager.

在文件 GizmoManager.cpp 第 7 行定义.

引用了 eve::editor::TransformGizmo::setMode().

成员函数说明

◆ 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 ( )

Detaches .

在文件 GizmoManager.cpp 第 14 行定义.

引用了 eve::editor::TransformGizmo::endDrag().

◆ endDrag()

void eve::editor::GizmoManager::endDrag ( )

Ends drag.

在文件 GizmoManager.cpp 第 82 行定义.

引用了 eve::editor::TransformGizmo::endDrag().

◆ getBoundEnabled()

bool eve::editor::GizmoManager::getBoundEnabled ( ) const
inline

Returns the bound enabled.

在文件 GizmoManager.h 第 39 行定义.

◆ getGizmo()

TransformGizmo * eve::editor::GizmoManager::getGizmo ( )
inline

Returns the gizmo.

在文件 GizmoManager.h 第 21 行定义.

◆ getPositionEnabled()

bool eve::editor::GizmoManager::getPositionEnabled ( ) const
inline

Returns the position enabled.

在文件 GizmoManager.h 第 33 行定义.

◆ getRotationEnabled()

bool eve::editor::GizmoManager::getRotationEnabled ( ) const
inline

Returns the rotation enabled.

在文件 GizmoManager.h 第 35 行定义.

◆ getScaleEnabled()

bool eve::editor::GizmoManager::getScaleEnabled ( ) const
inline

Returns the scale enabled.

在文件 GizmoManager.h 第 37 行定义.

◆ isAttached()

bool eve::editor::GizmoManager::isAttached ( ) const
inline

True when attached.

在文件 GizmoManager.h 第 46 行定义.

◆ isDragging()

bool eve::editor::GizmoManager::isDragging ( ) const
inline

True when dragging.

在文件 GizmoManager.h 第 60 行定义.

◆ isHovered()

bool eve::editor::GizmoManager::isHovered ( ) const
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()

void eve::editor::GizmoManager::setBoundEnabled ( bool  enabled)
inline

Sets the bound enabled.

在文件 GizmoManager.h 第 30 行定义.

引用了 enabled.

◆ setPositionEnabled()

void eve::editor::GizmoManager::setPositionEnabled ( bool  enabled)
inline

Sets the position enabled.

在文件 GizmoManager.h 第 24 行定义.

引用了 enabled.

◆ setRotationEnabled()

void eve::editor::GizmoManager::setRotationEnabled ( bool  enabled)
inline

Sets the rotation enabled.

在文件 GizmoManager.h 第 26 行定义.

引用了 enabled.

◆ setScaleEnabled()

void eve::editor::GizmoManager::setScaleEnabled ( bool  enabled)
inline

Sets the scale enabled.

在文件 GizmoManager.h 第 28 行定义.

引用了 enabled.

◆ 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().


该类的文档由以下文件生成: