载入中...
搜索中...
未找到
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 ()
 
TransformGizmogetGizmo ()
 
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.h13 行定义.

构造及析构函数说明

◆ GizmoManager()

eve::editor::GizmoManager::GizmoManager ( )

在文件 GizmoManager.cpp7 行定义.

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

成员函数说明

◆ attach()

void eve::editor::GizmoManager::attach ( )

在文件 GizmoManager.cpp12 行定义.

◆ beginDrag()

bool eve::editor::GizmoManager::beginDrag ( const std::string &  axis,
float  ox,
float  oy,
float  oz,
float  dx,
float  dy,
float  dz 
)

在文件 GizmoManager.cpp71 行定义.

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

◆ detach()

void eve::editor::GizmoManager::detach ( )

在文件 GizmoManager.cpp14 行定义.

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

◆ endDrag()

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

在文件 GizmoManager.cpp82 行定义.

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

◆ getBoundEnabled()

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

在文件 GizmoManager.h27 行定义.

◆ getGizmo()

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

在文件 GizmoManager.h17 行定义.

◆ getPositionEnabled()

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

在文件 GizmoManager.h24 行定义.

◆ getRotationEnabled()

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

在文件 GizmoManager.h25 行定义.

◆ getScaleEnabled()

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

在文件 GizmoManager.h26 行定义.

◆ isAttached()

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

在文件 GizmoManager.h31 行定义.

◆ isDragging()

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

在文件 GizmoManager.h41 行定义.

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

◆ isHovered()

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

在文件 GizmoManager.h42 行定义.

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

◆ 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.cpp45 行定义.

引用了 enabled, h, eve::editor::TransformGizmo::pick() , 以及 eve::editor::TransformGizmo::setMode().

◆ setBoundEnabled()

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

在文件 GizmoManager.h22 行定义.

引用了 enabled.

◆ setPositionEnabled()

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

在文件 GizmoManager.h19 行定义.

引用了 enabled.

◆ setRotationEnabled()

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

在文件 GizmoManager.h20 行定义.

引用了 enabled.

◆ setScaleEnabled()

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

在文件 GizmoManager.h21 行定义.

引用了 enabled.

◆ updateDrag()

bool eve::editor::GizmoManager::updateDrag ( float  ox,
float  oy,
float  oz,
float  dx,
float  dy,
float  dz 
)

在文件 GizmoManager.cpp77 行定义.

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


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