Editor building blocks — not a shipped 3D/map editor app. Script: editor <- eve.Editor();
更多...
#include <Editor.h>
Public 成员函数 | |
| Module_REG (Editor) | |
| Editor () | |
| Editor. | |
| ~Editor () override | |
| Editor. | |
| std::unique_ptr< TransformGizmo > | newGizmo () |
| Create a transform gizmo. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< GizmoManager > | newGizmoManager () |
| Create a gizmo manager. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< EditorToolbar > | newToolbar () |
| Create a toolbar model. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< EditorInspector > | newInspector () |
| Create an inspector model. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< EditorDock > | newDock () |
| Create a dock model. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< EditorSession > | newSession () |
| Create a host for interchangeable IEditorTool implementations. @ownership Unique ownership transfers to the caller. The session borrows this editor's command service. | |
| Result< std::unique_ptr< EditorWorkspace > > | newWorkspace (const std::string &id, const std::string &title) |
| Create a UI-neutral composition model for a project-specific editor. | |
| EditorCommandService & | commandService () |
| Return the UI- and script-neutral command registry owned by this editor module. | |
| const EditorCommandService & | commandService () const |
| Return the immutable command registry owned by this editor module. | |
| editing::ExtensionProviderRegistry & | extensionProviders () |
| Return the open, generation-safe registry used to discover linked domain editing providers. | |
| const editing::ExtensionProviderRegistry & | extensionProviders () const |
| Return the immutable domain editing provider registry. | |
| Result< void > | registerEditingTarget (IEditableTarget &target) |
| Register a borrowed editable target for UI, script and automation access. | |
| Result< void > | unregisterEditingTarget (const TargetId &target) |
| Remove a borrowed editing target and its local transaction history. | |
| Result< void > | bindEditingTarget (EditorSession &session, const TargetId &target) |
| Bind a registered target to a host session without exposing the coordinator. | |
| std::unique_ptr< ScriptEditorTool > | newScriptTool (const std::string &id, const std::string &label) |
| Create a script-backed implementation of the IEditorTool protocol. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< ConstantBrushFalloff > | newConstantBrushFalloff () |
| Create a constant brush falloff strategy. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< LinearBrushFalloff > | newLinearBrushFalloff () |
| Create a linear brush falloff strategy. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< SmoothBrushFalloff > | newSmoothBrushFalloff () |
| Create a smoothstep brush falloff strategy. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< CircleBrushKernel > | newCircleBrushKernel () |
| Create a circular brush kernel with a replaceable falloff. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< BoxBrushKernel > | newBoxBrushKernel () |
| Create a rotatable box brush kernel with a replaceable falloff. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< PaintIntFieldOperation > | newPaintIntFieldOperation (int value) |
| Create an integer-field paint operation. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< AddScalarFieldOperation > | newAddScalarFieldOperation () |
| Create an additive scalar-field operation. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< FieldBrushTool > | newFieldBrushTool (const std::string &id, const std::string &label) |
| Create a field brush tool whose kernel and operation are supplied separately. | |
| std::unique_ptr< SphereVolumeBrushKernel > | newSphereVolumeBrushKernel () |
| Create a spherical kernel for sparse three-dimensional fields. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< BoxVolumeBrushKernel > | newBoxVolumeBrushKernel () |
| Create an axis-aligned box kernel for sparse three-dimensional fields. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< PaintIntVolumeOperation > | newPaintIntVolumeOperation (int value) |
| Create a byte-range integer paint operation for volume targets. @ownership Unique ownership transfers to the caller. | |
| std::unique_ptr< VolumeBrushTool > | newVolumeBrushTool (const std::string &id, const std::string &label) |
| Create a 3D brush tool whose kernel and operation are supplied separately. @ownership Unique ownership transfers to the caller. | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| Module. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
详细描述
Editor building blocks — not a shipped 3D/map editor app. Script: editor <- eve.Editor();
Provides transform gizmos, map brushes, and UI shell helpers so games/tools can assemble their own editors (Love2D-style runtime tooling).
构造及析构函数说明
◆ Editor()
| eve::editor::Editor::Editor | ( | ) |
在文件 Editor.cpp 第 273 行定义.
◆ ~Editor()
|
override |
在文件 Editor.cpp 第 280 行定义.
成员函数说明
◆ bindEditingTarget()
| Result< void > eve::editor::Editor::bindEditingTarget | ( | EditorSession & | session, |
| const TargetId & | target | ||
| ) |
Bind a registered target to a host session without exposing the coordinator.
- 参数
-
session Session owned by the caller. target Registered target identity.
- 返回
- Applied or a structured lookup failure.
在文件 Editor.cpp 第 293 行定义.
◆ commandService() [1/2]
|
inline |
◆ commandService() [2/2]
|
inline |
◆ extensionProviders() [1/2]
|
inline |
◆ extensionProviders() [2/2]
|
inline |
◆ Module_REG()
| eve::editor::Editor::Module_REG | ( | Editor | ) |
◆ newAddScalarFieldOperation()
| std::unique_ptr< AddScalarFieldOperation > eve::editor::Editor::newAddScalarFieldOperation | ( | ) |
Create an additive scalar-field operation. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 335 行定义.
◆ newBoxBrushKernel()
| std::unique_ptr< BoxBrushKernel > eve::editor::Editor::newBoxBrushKernel | ( | ) |
Create a rotatable box brush kernel with a replaceable falloff. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 331 行定义.
◆ newBoxVolumeBrushKernel()
| std::unique_ptr< BoxVolumeBrushKernel > eve::editor::Editor::newBoxVolumeBrushKernel | ( | ) |
Create an axis-aligned box kernel for sparse three-dimensional fields. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 345 行定义.
◆ newCircleBrushKernel()
| std::unique_ptr< CircleBrushKernel > eve::editor::Editor::newCircleBrushKernel | ( | ) |
Create a circular brush kernel with a replaceable falloff. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 330 行定义.
◆ newConstantBrushFalloff()
| std::unique_ptr< ConstantBrushFalloff > eve::editor::Editor::newConstantBrushFalloff | ( | ) |
Create a constant brush falloff strategy. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 325 行定义.
◆ newDock()
| std::unique_ptr< EditorDock > eve::editor::Editor::newDock | ( | ) |
Create a dock model. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 305 行定义.
◆ newFieldBrushTool()
| std::unique_ptr< FieldBrushTool > eve::editor::Editor::newFieldBrushTool | ( | const std::string & | id, |
| const std::string & | label | ||
| ) |
Create a field brush tool whose kernel and operation are supplied separately.
- 参数
-
id Stable project-defined tool id. label User-facing label used for transaction names.
- 返回
- Unconfigured tool; set its kernel and operation before activation. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 338 行定义.
引用了 label.
◆ newGizmo()
| std::unique_ptr< TransformGizmo > eve::editor::Editor::newGizmo | ( | ) |
Create a transform gizmo. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 297 行定义.
◆ newGizmoManager()
| std::unique_ptr< GizmoManager > eve::editor::Editor::newGizmoManager | ( | ) |
Create a gizmo manager. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 299 行定义.
◆ newInspector()
| std::unique_ptr< EditorInspector > eve::editor::Editor::newInspector | ( | ) |
Create an inspector model. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 303 行定义.
◆ newLinearBrushFalloff()
| std::unique_ptr< LinearBrushFalloff > eve::editor::Editor::newLinearBrushFalloff | ( | ) |
Create a linear brush falloff strategy. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 328 行定义.
◆ newPaintIntFieldOperation()
| std::unique_ptr< PaintIntFieldOperation > eve::editor::Editor::newPaintIntFieldOperation | ( | int | value | ) |
Create an integer-field paint operation. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 332 行定义.
引用了 value.
◆ newPaintIntVolumeOperation()
| std::unique_ptr< PaintIntVolumeOperation > eve::editor::Editor::newPaintIntVolumeOperation | ( | int | value | ) |
Create a byte-range integer paint operation for volume targets. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 348 行定义.
引用了 value.
◆ newScriptTool()
| std::unique_ptr< ScriptEditorTool > eve::editor::Editor::newScriptTool | ( | const std::string & | id, |
| const std::string & | label | ||
| ) |
Create a script-backed implementation of the IEditorTool protocol. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 321 行定义.
引用了 label.
◆ newSession()
| std::unique_ptr< EditorSession > eve::editor::Editor::newSession | ( | ) |
Create a host for interchangeable IEditorTool implementations. @ownership Unique ownership transfers to the caller. The session borrows this editor's command service.
在文件 Editor.cpp 第 307 行定义.
引用了 session.
◆ newSmoothBrushFalloff()
| std::unique_ptr< SmoothBrushFalloff > eve::editor::Editor::newSmoothBrushFalloff | ( | ) |
Create a smoothstep brush falloff strategy. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 329 行定义.
◆ newSphereVolumeBrushKernel()
| std::unique_ptr< SphereVolumeBrushKernel > eve::editor::Editor::newSphereVolumeBrushKernel | ( | ) |
Create a spherical kernel for sparse three-dimensional fields. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 342 行定义.
◆ newToolbar()
| std::unique_ptr< EditorToolbar > eve::editor::Editor::newToolbar | ( | ) |
Create a toolbar model. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 301 行定义.
◆ newVolumeBrushTool()
| std::unique_ptr< VolumeBrushTool > eve::editor::Editor::newVolumeBrushTool | ( | const std::string & | id, |
| const std::string & | label | ||
| ) |
Create a 3D brush tool whose kernel and operation are supplied separately. @ownership Unique ownership transfers to the caller.
在文件 Editor.cpp 第 351 行定义.
引用了 label.
◆ newWorkspace()
| Result< std::unique_ptr< EditorWorkspace > > eve::editor::Editor::newWorkspace | ( | const std::string & | id, |
| const std::string & | title | ||
| ) |
Create a UI-neutral composition model for a project-specific editor.
- 参数
-
id Stable workspace identity; empty values are rejected. title User-facing title; empty title uses id.
- 返回
- Applied unique workspace, or Rejected when id is empty. @ownership Success transfers unique ownership to the caller.
在文件 Editor.cpp 第 313 行定义.
引用了 title.
◆ registerEditingTarget()
| Result< void > eve::editor::Editor::registerEditingTarget | ( | IEditableTarget & | target | ) |
Register a borrowed editable target for UI, script and automation access.
- 参数
-
target Target owned by the caller and kept alive until unregisterEditingTarget().
- 返回
- Applied, NoOp for the same registration, or structured diagnostics. @thread Owner-thread only.
在文件 Editor.cpp 第 285 行定义.
引用了 target.
◆ unregisterEditingTarget()
Remove a borrowed editing target and its local transaction history.
- 返回
- Applied when removed, or NoOp when the target was not registered.
在文件 Editor.cpp 第 287 行定义.
引用了 target.
该类的文档由以下文件生成:
- src/modules/editor/Editor.h
- src/modules/editor/Editor.cpp
Public 成员函数 继承自