Reversible unit accepted by the editor transaction manager. 更多...
#include <EditCommand.h>
Public 成员函数 | |
| virtual | ~IEditCommand ()=default |
| Releases IEditCommand resources. | |
| virtual const std::string & | name () const =0 |
| Name. | |
| virtual bool | apply ()=0 |
| Applies . | |
| virtual void | revert ()=0 |
| Revert. | |
| virtual std::unique_ptr< IEditCommand > | clone () const |
| Creates an owning staged copy for merge evaluation. | |
| virtual bool | mergeWith (const IEditCommand &later) |
| Optionally absorb a later command from the same stroke. | |
| virtual EditRegion | dirtyRegion () const =0 |
| Dirty region. | |
详细描述
Reversible unit accepted by the editor transaction manager.
在文件 EditCommand.h 第 14 行定义.
构造及析构函数说明
◆ ~IEditCommand()
|
virtualdefault |
Releases IEditCommand resources.
成员函数说明
◆ apply()
|
pure virtual |
Applies .
在 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 内被实现.
◆ clone()
|
inlinevirtual |
Creates an owning staged copy for merge evaluation.
- 返回
- A detached command copy, or null when this command has no candidate-merge representation.
- 备注
- The copy may retain the same borrowed target because the consumer evaluates mergeWith() before publishing the incoming command to that target. It must not mutate the target itself.
被 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 重载.
在文件 EditCommand.h 第 32 行定义.
◆ dirtyRegion()
|
pure virtual |
Dirty region.
在 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 内被实现.
◆ mergeWith()
|
inlinevirtual |
Optionally absorb a later command from the same stroke.
被 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 重载.
在文件 EditCommand.h 第 34 行定义.
◆ name()
|
pure virtual |
◆ revert()
|
pure virtual |
该类的文档由以下文件生成:
- src/modules/editor/EditCommand.h