载入中...
搜索中...
未找到
EditorTool.h
浏览该文件的文档.
Capability * targetCapability() const
Query a capability from the current target.
Definition EditorTool.h:168
IEditableTarget * target() const
Target currently bound to the session.
Definition EditorSession.cpp:15
EditorSession * session() const
Session currently dispatching the tool callback.
Definition EditorTool.h:77
Hosts interchangeable editor tools and routes their lifecycle/input.
Definition EditorSession.h:30
Executes, groups, rolls back and replays arbitrary edit commands.
Definition EditorTransactions.h:13
UI-independent property editor used by tools to expose settings.
Definition EditorPresentation.h:47
Sink implemented by a 2D or 3D viewport to render tool feedback.
Definition EditorPresentation.h:27
virtual void update(EditorContext &context, float dt)
Per-frame hook for an active tool.
Definition EditorTool.h:140
virtual void inspect(EditorContext &context, IEditorInspector &inspector)
Expose configurable settings through a host-provided inspector.
Definition EditorTool.h:152
virtual void drawOverlay(EditorContext &context, IEditorOverlay &overlay)
Emit renderer-independent feedback for the active viewport.
Definition EditorTool.h:146
virtual void deactivate(EditorContext &context)
Called exactly once before this tool stops being active.
Definition EditorTool.h:121
virtual ToolResponse pointerEvent(EditorContext &context, const EditorPointerEvent &event)
Handle normalized pointer input.
Definition EditorTool.h:124
virtual ToolResponse keyEvent(EditorContext &context, const EditorKeyEvent &event)
Handle normalized keyboard input.
Definition EditorTool.h:132
virtual void activate(EditorContext &context)
Called exactly once when this tool becomes active.
Definition EditorTool.h:119
virtual void cancel(EditorContext &context)
Cancel the active gesture while keeping the tool selected.
Definition EditorTool.h:158
virtual const ToolDescriptor & descriptor() const =0
Stable tool identity and presentation metadata.
Definition ActionPreviewController.cpp:6
Pointer input normalized by an editor viewport adapter.
Definition EditorTool.h:20
UI-facing metadata supplied by a tool implementation.
Definition EditorTool.h:98
Result returned by a tool after processing input.
Definition EditorTool.h:50