Click-to-place furniture tool committing makePlaceItem with catalog id + yaw.
更多...
#include <EditorArchSpaceTools.h>
Public 成员函数 | |
| ArchSpaceItemPlaceTool (IArchSpaceViewportAdapter *viewport, editing::IEditAuthority *authority) | |
| Arch space item 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 | setLevelId (std::string levelId) |
| Sets the level id. | |
| void | setCatalogId (std::string catalogId) |
| Sets the catalog id. | |
| void | setYawDegrees (double yaw) |
| Sets the yaw degrees. | |
| 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 & | lastItemId () const |
| Last item 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 furniture tool committing makePlaceItem with catalog id + yaw.
在文件 EditorArchSpaceTools.h 第 175 行定义.
构造及析构函数说明
◆ ArchSpaceItemPlaceTool()
| eve::editor::ArchSpaceItemPlaceTool::ArchSpaceItemPlaceTool | ( | IArchSpaceViewportAdapter * | viewport, |
| editing::IEditAuthority * | authority | ||
| ) |
Arch space item place tool.
在文件 ArchSpaceTools.cpp 第 266 行定义.
成员函数说明
◆ cancel()
|
overridevirtual |
◆ deactivate()
|
overridevirtual |
Deactivate.
在文件 ArchSpaceTools.cpp 第 315 行定义.
◆ descriptor()
|
inlineoverridevirtual |
◆ drawOverlay()
|
overridevirtual |
◆ inspect()
|
overridevirtual |
◆ lastItemId()
|
inline |
Last item id.
在文件 EditorArchSpaceTools.h 第 209 行定义.
◆ lastReceipt()
|
inline |
Last receipt.
在文件 EditorArchSpaceTools.h 第 207 行定义.
◆ pointerEvent()
|
overridevirtual |
Pointer event.
在文件 ArchSpaceTools.cpp 第 287 行定义.
引用了 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(), itemId, eve::editor::EditorPointerEvent::Move, operation, eve::editor::EditorPointerEvent::phase, point, eve::editor::ToolResponse::release(), target, eve::editor::EditorPointerEvent::Up , 以及 eve::archspace::Vec3::x.
◆ setAuthority()
| void eve::editor::ArchSpaceItemPlaceTool::setAuthority | ( | editing::IEditAuthority * | authority | ) |
Sets the authority.
在文件 ArchSpaceTools.cpp 第 273 行定义.
◆ setCatalogId()
| void eve::editor::ArchSpaceItemPlaceTool::setCatalogId | ( | std::string | catalogId | ) |
Sets the catalog id.
在文件 ArchSpaceTools.cpp 第 278 行定义.
◆ setIdPrefix()
|
inline |
Sets the id prefix.
在文件 EditorArchSpaceTools.h 第 193 行定义.
◆ setLevelId()
| void eve::editor::ArchSpaceItemPlaceTool::setLevelId | ( | std::string | levelId | ) |
Sets the level id.
在文件 ArchSpaceTools.cpp 第 277 行定义.
◆ setViewportAdapter()
| void eve::editor::ArchSpaceItemPlaceTool::setViewportAdapter | ( | IArchSpaceViewportAdapter * | viewport | ) |
Sets the viewport adapter.
在文件 ArchSpaceTools.cpp 第 269 行定义.
◆ setYawDegrees()
|
inline |
该类的文档由以下文件生成:
- src/modules/archspace/editor/EditorArchSpaceTools.h
- src/modules/archspace/editor/ArchSpaceTools.cpp
Public 成员函数 继承自