载入中...
搜索中...
未找到
eve::editor::IntVolumeEditCommand类 参考final

Reversible integer-volume command shared by voxel and custom volume targets. 更多...

#include <EditorVolumeTarget.h>

类 eve::editor::IntVolumeEditCommand 继承关系图:
eve::editor::IEditCommand

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()

bool eve::editor::IntVolumeEditCommand::apply ( )
overridevirtual

◆ clone()

std::unique_ptr< IEditCommand > eve::editor::IntVolumeEditCommand::clone ( ) const
overridevirtual

Deep copy. @ownership Caller deletes.

重载 eve::editor::IEditCommand .

在文件 EditorVolumeTarget.cpp 第 49 行定义.

◆ dirtyRegion()

EditRegion eve::editor::IntVolumeEditCommand::dirtyRegion ( ) const
inlineoverridevirtual

Dirty region.

实现了 eve::editor::IEditCommand.

在文件 EditorVolumeTarget.h 第 24 行定义.

引用了 eve::editing::EditVolume::xzRegion().

◆ mergeWith()

bool eve::editor::IntVolumeEditCommand::mergeWith ( const IEditCommand &  later)
overridevirtual

Merge with.

重载 eve::editor::IEditCommand .

在文件 EditorVolumeTarget.cpp 第 53 行定义.

引用了 current , 以及 eve::editing::EditVolume::include().

◆ name()

const std::string & eve::editor::IntVolumeEditCommand::name ( ) const
inlineoverridevirtual

Name.

实现了 eve::editor::IEditCommand.

在文件 EditorVolumeTarget.h 第 22 行定义.

◆ 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()

void eve::editor::IntVolumeEditCommand::revert ( )
overridevirtual

Revert.

实现了 eve::editor::IEditCommand.

在文件 EditorVolumeTarget.cpp 第 42 行定义.

引用了 eve::editing::IEditableTarget::query() , 以及 volume.


该类的文档由以下文件生成: