Reversible integer-volume command shared by voxel and custom volume targets. 更多...
#include <EditorVolumeTarget.h>
Public 成员函数 | |
| IntVolumeEditCommand (std::string name, IEditableTarget *target) | |
| Create an unapplied command for one editable volume target. | |
| bool | record (int x, int y, int z, int after) |
| Record a desired value without applying it. | |
| const std::string & | name () const override |
| Name. | |
| EditRegion | dirtyRegion () const override |
| Dirty region. | |
| bool | apply () override |
| Applies . | |
| void | revert () override |
| Revert. | |
| std::unique_ptr< IEditCommand > | clone () const override |
| Deep copy. @ownership Caller deletes. | |
| bool | mergeWith (const IEditCommand &later) override |
| Merge with. | |
Public 成员函数 继承自 eve::editor::IEditCommand | |
| virtual | ~IEditCommand ()=default |
| Releases IEditCommand resources. | |
详细描述
Reversible integer-volume command shared by voxel and custom volume targets.
在文件 EditorVolumeTarget.h 第 15 行定义.
构造及析构函数说明
◆ IntVolumeEditCommand()
| eve::editor::IntVolumeEditCommand::IntVolumeEditCommand | ( | std::string | name, |
| IEditableTarget * | target | ||
| ) |
Create an unapplied command for one editable volume target.
在文件 EditorVolumeTarget.cpp 第 7 行定义.
成员函数说明
◆ apply()
|
overridevirtual |
Applies .
实现了 eve::editor::IEditCommand.
在文件 EditorVolumeTarget.cpp 第 26 行定义.
引用了 eve::editing::IEditableTarget::query(), eve::editing::Rejected , 以及 volume.
◆ clone()
|
overridevirtual |
Deep copy. @ownership Caller deletes.
重载 eve::editor::IEditCommand .
在文件 EditorVolumeTarget.cpp 第 49 行定义.
◆ dirtyRegion()
|
inlineoverridevirtual |
◆ mergeWith()
|
overridevirtual |
Merge with.
重载 eve::editor::IEditCommand .
在文件 EditorVolumeTarget.cpp 第 53 行定义.
引用了 current , 以及 eve::editing::EditVolume::include().
◆ name()
|
inlineoverridevirtual |
◆ record()
| bool eve::editor::IntVolumeEditCommand::record | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | after | ||
| ) |
Record a desired value without applying it.
在文件 EditorVolumeTarget.cpp 第 10 行定义.
引用了 eve::editing::EditVolume::include(), eve::editing::IEditableTarget::query(), volume, x, y , 以及 z.
◆ revert()
|
overridevirtual |
Revert.
实现了 eve::editor::IEditCommand.
在文件 EditorVolumeTarget.cpp 第 42 行定义.
引用了 eve::editing::IEditableTarget::query() , 以及 volume.
该类的文档由以下文件生成:
- src/modules/editor/EditorVolumeTarget.h
- src/modules/editor/EditorVolumeTarget.cpp
Public 成员函数 继承自