Click-drag wall draw tool. Down starts, Move previews, Up commits makeCreateWall.
更多...
#include <EditorArchSpaceTools.h>
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()
|
overridevirtual |
◆ deactivate()
|
overridevirtual |
Deactivate.
在文件 ArchSpaceTools.cpp 第 146 行定义.
◆ descriptor()
|
inlineoverridevirtual |
◆ drawOverlay()
|
overridevirtual |
Draws overlay.
在文件 ArchSpaceTools.cpp 第 149 行定义.
引用了 eve::editor::IEditorOverlay::circle(), eve::editor::OverlayStyle::color, from, eve::editor::IEditorOverlay::line(), eve::editor::IArchSpaceViewportAdapter::projectWorld(), eve::editor::OverlayStyle::thickness, to, eve::archspace::Vec2::x , 以及 eve::archspace::Vec2::z.
◆ inspect()
|
overridevirtual |
◆ isDrawing()
|
inline |
True when drawing.
在文件 EditorArchSpaceTools.h 第 80 行定义.
◆ lastReceipt()
|
inline |
Last receipt.
在文件 EditorArchSpaceTools.h 第 82 行定义.
◆ lastWallId()
|
inline |
Last wall id.
在文件 EditorArchSpaceTools.h 第 84 行定义.
◆ pointerEvent()
|
overridevirtual |
Pointer event.
在文件 ArchSpaceTools.cpp 第 134 行定义.
引用了 begin, cancel(), eve::editor::EditorPointerEvent::Cancel, context, eve::editor::EditorPointerEvent::Down, eve::editor::ToolResponse::ignored(), eve::editor::EditorPointerEvent::Move, eve::editor::EditorPointerEvent::phase, eve::editor::ToolResponse::release() , 以及 eve::editor::EditorPointerEvent::Up.
◆ setAuthority()
| void eve::editor::ArchSpaceWallDrawTool::setAuthority | ( | editing::IEditAuthority * | authority | ) |
Sets the authority.
在文件 ArchSpaceTools.cpp 第 70 行定义.
◆ setContiguous()
|
inline |
◆ setIdPrefix()
|
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()
|
inline |
◆ setWallThickness()
|
inline |
该类的文档由以下文件生成:
- src/modules/archspace/editor/EditorArchSpaceTools.h
- src/modules/archspace/editor/ArchSpaceTools.cpp
Public 成员函数 继承自