49 std::string pick(
float ox,
float oy,
float oz,
float dx,
float dy,
float dz);
52 bool beginDrag(
const std::string &axis,
float ox,
float oy,
float oz,
float dx,
float dy,
55 bool updateDrag(
float ox,
float oy,
float oz,
float dx,
float dy,
float dz);
62 bool isHovered()
const {
return gizmo_.isHovered(); }
71 Hit pickMode(
const std::string &mode,
float ox,
float oy,
float oz,
float dx,
float dy,
74 TransformGizmo gizmo_;
75 bool attached_ =
false;
76 bool positionEnabled_ =
true;
77 bool rotationEnabled_ =
false;
78 bool scaleEnabled_ =
false;
79 bool boundEnabled_ =
false;
#define EVENGINE_API_ORCHESTRATION
Babylon.js-style manager: toggles which transform modes are enabled and routes pick/drag to the owned...
bool getScaleEnabled() const
Returns the scale enabled.
bool isDragging() const
True when dragging.
void setPositionEnabled(bool enabled)
Sets the position 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 isHovered() const
True when hovered.
bool isAttached() const
True when attached.
void setRotationEnabled(bool enabled)
Sets the rotation enabled.
TransformGizmo * getGizmo()
Returns the gizmo.
bool getBoundEnabled() const
Returns the bound enabled.
bool getRotationEnabled() const
Returns the rotation enabled.