Click-to-place door/window tool committing makeCreateOpening on the nearest wall.
更多...
#include <EditorArchSpaceTools.h>
Public 成员函数 | |
| ArchSpaceOpeningPlaceTool (IArchSpaceViewportAdapter *viewport, editing::IEditAuthority *authority) | |
| Arch space opening place tool. | |
| const ToolDescriptor & | descriptor () const override |
| Descriptor. | |
| void | setViewportAdapter (IArchSpaceViewportAdapter *viewport) |
| Sets the viewport adapter. | |
| void | setAuthority (editing::IEditAuthority *authority) |
| Sets the authority. | |
| void | setOpeningKind (archspace::OpeningKind kind) |
| Sets the opening kind. | |
| void | setWidth (double width) |
| Sets the width. | |
| void | setHeight (double height) |
| Sets the height. | |
| void | setSill (double sill) |
| Sets the sill. | |
| 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. | |
| const std::optional< editing::TransactionReceipt > & | lastReceipt () const |
| Last receipt. | |
| const std::string & | lastOpeningId () const |
| Last opening 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-to-place door/window tool committing makeCreateOpening on the nearest wall.
在文件 EditorArchSpaceTools.h 第 112 行定义.
构造及析构函数说明
◆ ArchSpaceOpeningPlaceTool()
| eve::editor::ArchSpaceOpeningPlaceTool::ArchSpaceOpeningPlaceTool | ( | IArchSpaceViewportAdapter * | viewport, |
| editing::IEditAuthority * | authority | ||
| ) |
Arch space opening place tool.
在文件 ArchSpaceTools.cpp 第 173 行定义.
成员函数说明
◆ cancel()
|
overridevirtual |
◆ deactivate()
|
overridevirtual |
Deactivate.
在文件 ArchSpaceTools.cpp 第 238 行定义.
◆ descriptor()
|
inlineoverridevirtual |
◆ drawOverlay()
|
overridevirtual |
◆ inspect()
|
overridevirtual |
◆ lastOpeningId()
|
inline |
Last opening id.
在文件 EditorArchSpaceTools.h 第 148 行定义.
◆ lastReceipt()
|
inline |
Last receipt.
在文件 EditorArchSpaceTools.h 第 146 行定义.
◆ pointerEvent()
|
overridevirtual |
Pointer event.
在文件 ArchSpaceTools.cpp 第 211 行定义.
引用了 eve::editor::EditorPointerEvent::button, eve::editor::EditorPointerEvent::Cancel, eve::editor::ToolResponse::capture(), eve::editor::ToolResponse::consumed(), context, eve::editor::EditorPointerEvent::Down, eve::editor::ToolResponse::ignored(), eve::editor::EditorPointerEvent::Move, operation, eve::editor::EditorPointerEvent::phase, point, eve::editor::ToolResponse::release(), target , 以及 eve::editor::EditorPointerEvent::Up.
◆ setAuthority()
| void eve::editor::ArchSpaceOpeningPlaceTool::setAuthority | ( | editing::IEditAuthority * | authority | ) |
Sets the authority.
在文件 ArchSpaceTools.cpp 第 181 行定义.
◆ setHeight()
|
inline |
◆ setIdPrefix()
|
inline |
Sets the id prefix.
在文件 EditorArchSpaceTools.h 第 132 行定义.
◆ setOpeningKind()
|
inline |
◆ setSill()
|
inline |
Sets the sill.
在文件 EditorArchSpaceTools.h 第 130 行定义.
◆ setViewportAdapter()
| void eve::editor::ArchSpaceOpeningPlaceTool::setViewportAdapter | ( | IArchSpaceViewportAdapter * | viewport | ) |
Sets the viewport adapter.
在文件 ArchSpaceTools.cpp 第 177 行定义.
◆ setWidth()
|
inline |
该类的文档由以下文件生成:
- src/modules/archspace/editor/EditorArchSpaceTools.h
- src/modules/archspace/editor/ArchSpaceTools.cpp
Public 成员函数 继承自