载入中...
搜索中...
未找到
eve::editor::IEditorOverlay类 参考abstract

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 &center, 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()

virtual eve::editor::IEditorOverlay::~IEditorOverlay ( )
virtualdefault

Releases IEditorOverlay resources.

成员函数说明

◆ circle()

virtual void eve::editor::IEditorOverlay::circle ( const OverlayPoint &  center,
float  radius,
const OverlayStyle &  style 
)
pure virtual

◆ line()

virtual void eve::editor::IEditorOverlay::line ( const OverlayPoint &  from,
const OverlayPoint &  to,
const OverlayStyle &  style 
)
pure virtual

◆ rectangle()

virtual void eve::editor::IEditorOverlay::rectangle ( const OverlayPoint &  minimum,
const OverlayPoint &  maximum,
const OverlayStyle &  style 
)
pure virtual

Draw an axis-aligned rectangle in viewport coordinates.

被这些函数引用 eve::editor::ActionTimelineWidget::draw().

◆ text()

virtual void eve::editor::IEditorOverlay::text ( const OverlayPoint &  position,
const std::string &  value,
const OverlayStyle &  style 
)
pure virtual

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