载入中...
搜索中...
未找到
eve::graphics_editing::GraphicsOffscreenPreviewService类 参考

Concrete Graphics/Canvas preview bridge with revision-safe artifact storage. 更多...

#include <OffscreenPreview.h>

Public 类型

using DrawCallback = std::function< Result< void >(graphics::Graphics *, graphics::Canvas *)>
 

Public 成员函数

 GraphicsOffscreenPreviewService (graphics::Graphics *graphics, graphics::ICanvasFactory *canvases, graphics::ICanvasTarget *targets)
 Bind borrowed draw, allocation and target-control interfaces.
 
 ~GraphicsOffscreenPreviewService ()
 Graphics offscreen preview service.
 
 GraphicsOffscreenPreviewService (const GraphicsOffscreenPreviewService &)=delete
 
GraphicsOffscreenPreviewService & operator= (const GraphicsOffscreenPreviewService &)=delete
 
Result< OffscreenPreviewArtifact > render (const OffscreenPreviewRequest &request, const DrawCallback &draw, int maximumDimension=4096, std::uint64_t maximumPixels=16777216)
 Clear, draw and read back one isolated offscreen Canvas.
 
Result< const image::ImageData * > image (const std::string &handle, Revision currentRevision) const
 Borrow pixels only when the requested source revision still matches.
 
Result< void > release (const std::string &handle)
 Remove an in-memory readback artifact.
 

详细描述

Concrete Graphics/Canvas preview bridge with revision-safe artifact storage.

在文件 OffscreenPreview.h 第 47 行定义.

成员类型定义说明

◆ DrawCallback

构造及析构函数说明

◆ GraphicsOffscreenPreviewService() [1/2]

eve::graphics_editing::GraphicsOffscreenPreviewService::GraphicsOffscreenPreviewService ( graphics::Graphics *  graphics,
graphics::ICanvasFactory *  canvases,
graphics::ICanvasTarget *  targets 
)

Bind borrowed draw, allocation and target-control interfaces.

在文件 OffscreenPreview.cpp 第 35 行定义.

◆ ~GraphicsOffscreenPreviewService()

eve::graphics_editing::GraphicsOffscreenPreviewService::~GraphicsOffscreenPreviewService ( )
default

Graphics offscreen preview service.

◆ GraphicsOffscreenPreviewService() [2/2]

eve::graphics_editing::GraphicsOffscreenPreviewService::GraphicsOffscreenPreviewService ( const GraphicsOffscreenPreviewService &  )
delete

成员函数说明

◆ image()

Result< const image::ImageData * > eve::graphics_editing::GraphicsOffscreenPreviewService::image ( const std::string &  handle,
Revision  currentRevision 
) const

Borrow pixels only when the requested source revision still matches.

在文件 OffscreenPreview.cpp 第 104 行定义.

引用了 found , 以及 handle.

◆ operator=()

GraphicsOffscreenPreviewService & eve::graphics_editing::GraphicsOffscreenPreviewService::operator= ( const GraphicsOffscreenPreviewService &  )
delete

◆ release()

Result< void > eve::graphics_editing::GraphicsOffscreenPreviewService::release ( const std::string &  handle)

Remove an in-memory readback artifact.

在文件 OffscreenPreview.cpp 第 118 行定义.

引用了 handle.

◆ render()


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