Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::render3d::IRenderEngine Class Referenceabstract

Abstract interface representing a headless offscreen 3D rendering backend. More...

#include <IRenderEngine.hpp>

Inheritance diagram for correlation::render3d::IRenderEngine:

Public Member Functions

virtual ~IRenderEngine ()=default
virtual bool initialize (const ViewportDimensions &dimensions)=0
 Initializes the rendering engine and framebuffer with dimensions.
virtual void resize (const ViewportDimensions &dimensions)=0
 Resizes the underlying framebuffer.
virtual void setScene (std::shared_ptr< const Scene3D > scene)=0
 Assigns the active molecular scene to render.
virtual void setCamera (const Camera3D &camera)=0
 Updates camera parameters for viewpoint transformation.
virtual void setFeatureVisibility (bool, bool)
 Sets visibility flags for optional features (bonds, wireframe).
virtual void setGpuHaloConfig (const GpuHaloConfig &)
 Configures GPU-driven halo and phase search computation.
virtual void setRenderStyle (const RenderStyleConfig &)
 Configures visual shading parameters (depth cueing, background color).
virtual std::span< const uint8_t > renderFrame ()=0
 Executes a single frame render and returns RGBA8 pixel span.
virtual ViewportDimensions dimensions () const noexcept=0
 Current viewport pixel dimensions.
virtual std::string_view backendName () const noexcept=0
 Human-readable name of the backend.
virtual std::string deviceName () const
 Human-readable name of the active rendering device (e.g. GPU model or CPU).
virtual bool isHardwareAccelerated () const noexcept=0
 Indicates if the engine uses hardware GPU acceleration.

Detailed Description

Abstract interface representing a headless offscreen 3D rendering backend.

Constructor & Destructor Documentation

◆ ~IRenderEngine()

virtual correlation::render3d::IRenderEngine::~IRenderEngine ( )
virtualdefault

Member Function Documentation

◆ backendName()

virtual std::string_view correlation::render3d::IRenderEngine::backendName ( ) const
nodiscardpure virtualnoexcept

Human-readable name of the backend.

Returns
Backend name string view.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deviceName()

virtual std::string correlation::render3d::IRenderEngine::deviceName ( ) const
inlinenodiscardvirtual

Human-readable name of the active rendering device (e.g. GPU model or CPU).

Returns
Device name string.

Reimplemented in correlation::render3d::VulkanRenderEngine.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dimensions()

virtual ViewportDimensions correlation::render3d::IRenderEngine::dimensions ( ) const
nodiscardpure virtualnoexcept

Current viewport pixel dimensions.

Returns
Viewport dimensions.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

Here is the caller graph for this function:

◆ initialize()

virtual bool correlation::render3d::IRenderEngine::initialize ( const ViewportDimensions & dimensions)
nodiscardpure virtual

Initializes the rendering engine and framebuffer with dimensions.

Parameters
dimensionsInitial viewport dimensions.
Returns
True if initialization succeeded.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

Here is the call graph for this function:

◆ isHardwareAccelerated()

virtual bool correlation::render3d::IRenderEngine::isHardwareAccelerated ( ) const
nodiscardpure virtualnoexcept

Indicates if the engine uses hardware GPU acceleration.

Returns
True for Vulkan/GPU, false for CPU fallback.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

◆ renderFrame()

virtual std::span< const uint8_t > correlation::render3d::IRenderEngine::renderFrame ( )
nodiscardpure virtual

Executes a single frame render and returns RGBA8 pixel span.

Returns
Contiguous span of RGBA8 pixels (size = width * height * 4).

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

◆ resize()

virtual void correlation::render3d::IRenderEngine::resize ( const ViewportDimensions & dimensions)
pure virtual

Resizes the underlying framebuffer.

Parameters
dimensionsNew viewport dimensions.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

Here is the call graph for this function:

◆ setCamera()

virtual void correlation::render3d::IRenderEngine::setCamera ( const Camera3D & camera)
pure virtual

Updates camera parameters for viewpoint transformation.

Parameters
camera3D orbit camera.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

◆ setFeatureVisibility()

virtual void correlation::render3d::IRenderEngine::setFeatureVisibility ( bool ,
bool  )
inlinevirtual

Sets visibility flags for optional features (bonds, wireframe).

Parameters
render_bondsTrue to render covalent bonds.
render_wireframeTrue to render unit cell wireframe lines.

Reimplemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

◆ setGpuHaloConfig()

virtual void correlation::render3d::IRenderEngine::setGpuHaloConfig ( const GpuHaloConfig & )
inlinevirtual

Configures GPU-driven halo and phase search computation.

Parameters
configHalo configuration descriptor and threshold state.

Reimplemented in correlation::render3d::VulkanRenderEngine.

◆ setRenderStyle()

virtual void correlation::render3d::IRenderEngine::setRenderStyle ( const RenderStyleConfig & )
inlinevirtual

Configures visual shading parameters (depth cueing, background color).

Parameters
styleVisual style configuration.

Reimplemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.

◆ setScene()

virtual void correlation::render3d::IRenderEngine::setScene ( std::shared_ptr< const Scene3D > scene)
pure virtual

Assigns the active molecular scene to render.

Parameters
sceneShared pointer to scene geometry.

Implemented in correlation::render3d::CpuRenderEngine, and correlation::render3d::VulkanRenderEngine.


The documentation for this class was generated from the following file: