package transform_tools
Types
AxisState
const ( AxisStateNone AxisState = iota AxisStateX AxisStateY AxisStateZ )
AxisState.Toggle
RotationTool
struct
type RotationTool struct {
TransformGizmo
OnDragStart events.EventWithArg[matrix.Vec4]
OnDragRotate events.EventWithArg[matrix.Vec4]
OnDragEnd events.EventWithArg[matrix.Vec4]
// Has unexported fields.
}
RotationTool.Hide
RotationTool.Initialize
RotationTool.SetDimensions
RotationTool.Show
RotationTool.Update
ScalingTool
struct
type ScalingTool struct {
TransformGizmo
OnDragStart events.EventWithArg[matrix.Vec3]
OnDragScale events.EventWithArg[matrix.Vec3]
OnDragEnd events.EventWithArg[matrix.Vec3]
// Has unexported fields.
}
ScalingTool.Hide
ScalingTool.Initialize
ScalingTool.SetDimensions
ScalingTool.Show
ScalingTool.Update
ScalingToolBox
struct
ScalingToolBox.Initialize
StageInterface
interface
type StageInterface interface {
Camera() *editor_controls.EditorCamera
WorkspaceHost() *engine.Host
Manager() *editor_stage_manager.StageManager
}
ToolState
const ( ToolStateNone ToolState = iota ToolStateMove ToolStateRotate ToolStateScale )
TransformGizmo
struct
TransformTool
struct
TransformTool.Cancel
TransformTool.Disable
TransformTool.Enable
TransformTool.Initialize
func (t *TransformTool) Initialize(host *engine.Host, stage StageInterface, history *memento.History, snapSettings *editor_settings.SnapSettings)
TransformTool.Update
TranslationHitEnum
const ( TRANSLATION_TYPE_ARROW TranslationHitEnum = iota TRANSLATION_TYPE_PLANE TRANSLATION_TYPE_NONE )
TranslationTool
struct
type TranslationTool struct {
TransformGizmo
OnDragStart events.EventWithArg[matrix.Vec3]
OnDragMove events.EventWithArg[matrix.Vec3]
OnDragEnd events.EventWithArg[matrix.Vec3]
// Has unexported fields.
}
TranslationTool.Hide
TranslationTool.Initialize
TranslationTool.SetDimensions
TranslationTool.Show
TranslationTool.Update
TranslationToolArrow
struct
TranslationToolArrow.Initialize
TranslationToolCircle
struct
TranslationToolCircle.Initialize
TranslationToolPlane
struct