Sink implemented by a 2D or 3D viewport to render tool feedback. 更多...
#include <EditorPresentation.h>
Public 成员函数 | |
| virtual | ~IEditorOverlay ()=default |
| Releases IEditorOverlay resources. | |
| virtual void | line (const OverlayPoint &from, const OverlayPoint &to, const OverlayStyle &style)=0 |
| Draw a line between two viewport-space points. | |
| virtual void | circle (const OverlayPoint ¢er, float radius, const OverlayStyle &style)=0 |
| Draw a circle whose orientation is supplied by the viewport. | |
| virtual void | rectangle (const OverlayPoint &minimum, const OverlayPoint &maximum, const OverlayStyle &style)=0 |
| Draw an axis-aligned rectangle in viewport coordinates. | |
| virtual void | text (const OverlayPoint &position, const std::string &value, const OverlayStyle &style)=0 |
| Draw a short text annotation. | |
详细描述
Sink implemented by a 2D or 3D viewport to render tool feedback.
Tools emit semantic geometry through this interface and never depend on a particular renderer, scene graph or immediate-mode UI library.
在文件 EditorPresentation.h 第 27 行定义.
构造及析构函数说明
◆ ~IEditorOverlay()
|
virtualdefault |
Releases IEditorOverlay resources.
成员函数说明
◆ circle()
|
pure virtual |
Draw a circle whose orientation is supplied by the viewport.
被这些函数引用 eve::editor::ActionTimelineWidget::draw(), eve::editor::ArchSpaceWallDrawTool::drawOverlay(), eve::editor::ArchSpaceOpeningPlaceTool::drawOverlay(), eve::editor::ArchSpaceItemPlaceTool::drawOverlay(), eve::editor::BuildingEdgeCurveTool::drawOverlay() , 以及 eve::editor::FieldBrushTool::drawOverlay().
◆ line()
|
pure virtual |
Draw a line between two viewport-space points.
被这些函数引用 eve::editor::ActionTimelineWidget::draw(), eve::editor::ArchSpaceWallDrawTool::drawOverlay(), eve::editor::BuildingEdgeCurveTool::drawOverlay() , 以及 eve::editor::ActionPreviewController::drawRootMotion().
◆ rectangle()
|
pure virtual |
Draw an axis-aligned rectangle in viewport coordinates.
◆ text()
|
pure virtual |
Draw a short text annotation.
被这些函数引用 eve::editor::ActionTimelineWidget::draw(), eve::editor::ArchSpaceOpeningPlaceTool::drawOverlay() , 以及 eve::editor::ArchSpaceItemPlaceTool::drawOverlay().
该类的文档由以下文件生成:
- src/modules/editor/EditorPresentation.h