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

Click-drag wall draw tool. Down starts, Move previews, Up commits makeCreateWall. 更多...

#include <EditorArchSpaceTools.h>

类 eve::editor::ArchSpaceWallDrawTool 继承关系图:
eve::editor::IEditorTool

Public 成员函数

 ArchSpaceWallDrawTool (IArchSpaceViewportAdapter *viewport, editing::IEditAuthority *authority)
 Arch space wall draw tool.
 
const ToolDescriptor & descriptor () const override
 Descriptor.
 
void setViewportAdapter (IArchSpaceViewportAdapter *viewport)
 Sets the viewport adapter.
 
void setAuthority (editing::IEditAuthority *authority)
 Sets the authority.
 
void setLevelId (std::string levelId)
 Sets the level id.
 
void setWallHeight (double height)
 Sets the wall height.
 
void setWallThickness (double thickness)
 Sets the wall thickness.
 
void setContiguous (bool enabled)
 Sets the contiguous.
 
void setIdPrefix (std::string prefix)
 Sets the id prefix.
 
ToolResponse pointerEvent (EditorContext &context, const EditorPointerEvent &event) override
 Pointer event.
 
void deactivate (EditorContext &context) override
 Deactivate.
 
void cancel (EditorContext &context) override
 Cancel.
 
void drawOverlay (EditorContext &context, IEditorOverlay &overlay) override
 Draws overlay.
 
void inspect (EditorContext &context, IEditorInspector &inspector) override
 Inspect.
 
bool isDrawing () const
 True when drawing.
 
const std::optional< editing::TransactionReceipt > & lastReceipt () const
 Last receipt.
 
const std::string & lastWallId () const
 Last wall id.
 
- Public 成员函数 继承自 eve::editor::IEditorTool
virtual ~IEditorTool ()=default
 Releases IEditorTool resources.
 
virtual void activate (EditorContext &context)
 Called exactly once when this tool becomes active.
 
virtual ToolResponse keyEvent (EditorContext &context, const EditorKeyEvent &event)
 Handle normalized keyboard input.
 
virtual void update (EditorContext &context, float dt)
 Per-frame hook for an active tool.
 

详细描述

Click-drag wall draw tool. Down starts, Move previews, Up commits makeCreateWall.

Contiguous mode chains the next start to the previous end. Shift constrains to axis-aligned.

在文件 EditorArchSpaceTools.h 第 46 行定义.

构造及析构函数说明

◆ ArchSpaceWallDrawTool()

eve::editor::ArchSpaceWallDrawTool::ArchSpaceWallDrawTool ( IArchSpaceViewportAdapter *  viewport,
editing::IEditAuthority *  authority 
)

Arch space wall draw tool.

在文件 ArchSpaceTools.cpp 第 62 行定义.

成员函数说明

◆ cancel()

void eve::editor::ArchSpaceWallDrawTool::cancel ( EditorContext &  context)
overridevirtual

Cancel.

重载 eve::editor::IEditorTool .

在文件 ArchSpaceTools.cpp 第 147 行定义.

被这些函数引用 deactivate() , 以及 pointerEvent().

◆ deactivate()

void eve::editor::ArchSpaceWallDrawTool::deactivate ( EditorContext &  context)
overridevirtual

Deactivate.

重载 eve::editor::IEditorTool .

在文件 ArchSpaceTools.cpp 第 146 行定义.

引用了 cancel() , 以及 context.

◆ descriptor()

const ToolDescriptor & eve::editor::ArchSpaceWallDrawTool::descriptor ( ) const
inlineoverridevirtual

Descriptor.

实现了 eve::editor::IEditorTool.

在文件 EditorArchSpaceTools.h 第 52 行定义.

◆ drawOverlay()

◆ inspect()

◆ isDrawing()

bool eve::editor::ArchSpaceWallDrawTool::isDrawing ( ) const
inline

True when drawing.

在文件 EditorArchSpaceTools.h 第 80 行定义.

◆ lastReceipt()

const std::optional< editing::TransactionReceipt > & eve::editor::ArchSpaceWallDrawTool::lastReceipt ( ) const
inline

Last receipt.

在文件 EditorArchSpaceTools.h 第 82 行定义.

◆ lastWallId()

const std::string & eve::editor::ArchSpaceWallDrawTool::lastWallId ( ) const
inline

Last wall id.

在文件 EditorArchSpaceTools.h 第 84 行定义.

◆ pointerEvent()

◆ setAuthority()

void eve::editor::ArchSpaceWallDrawTool::setAuthority ( editing::IEditAuthority *  authority)

Sets the authority.

在文件 ArchSpaceTools.cpp 第 70 行定义.

◆ setContiguous()

void eve::editor::ArchSpaceWallDrawTool::setContiguous ( bool  enabled)
inline

Sets the contiguous.

在文件 EditorArchSpaceTools.h 第 64 行定义.

引用了 enabled.

◆ setIdPrefix()

void eve::editor::ArchSpaceWallDrawTool::setIdPrefix ( std::string  prefix)
inline

Sets the id prefix.

在文件 EditorArchSpaceTools.h 第 66 行定义.

◆ setLevelId()

void eve::editor::ArchSpaceWallDrawTool::setLevelId ( std::string  levelId)

Sets the level id.

在文件 ArchSpaceTools.cpp 第 75 行定义.

◆ setViewportAdapter()

void eve::editor::ArchSpaceWallDrawTool::setViewportAdapter ( IArchSpaceViewportAdapter *  viewport)

Sets the viewport adapter.

在文件 ArchSpaceTools.cpp 第 65 行定义.

◆ setWallHeight()

void eve::editor::ArchSpaceWallDrawTool::setWallHeight ( double  height)
inline

Sets the wall height.

在文件 EditorArchSpaceTools.h 第 60 行定义.

引用了 height.

◆ setWallThickness()

void eve::editor::ArchSpaceWallDrawTool::setWallThickness ( double  thickness)
inline

Sets the wall thickness.

在文件 EditorArchSpaceTools.h 第 62 行定义.

引用了 thickness.


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