NDEVR
API Documentation
VulkanCameraViewFactory

A QTGraphicsWindow for rendering using Vulkan. More...

Inheritance diagram for VulkanCameraViewFactory:
[legend]
Collaboration diagram for VulkanCameraViewFactory:
[legend]

Public Member Functions

virtual bool canCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool ignore_active) override
 Checks whether this factory can create a view for the given camera.
virtual VirtualCameraViewcreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, QWidget *parent=nullptr) override
 Creates a Vulkan-based virtual camera view.
virtual void resetToDefaults () override
 Resets the factory to its default configuration.
Public Member Functions inherited from ViewportFactory
virtual Buffer< DynamicPointer< Camera > > availableCameraStreams () const
 Returns all camera streams that this factory can provide.

Additional Inherited Members

Static Public Member Functions inherited from ViewportFactory
static void AddFactory (ViewportFactory *factory)
 Registers a viewport factory for creating camera views.
static Buffer< DynamicPointer< Camera > > AvailableCameraStreams ()
 Returns all available camera streams from all registered factories.
static bool CanCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager)
 Checks whether any registered factory can create a view for the given camera.
static CameraView * CreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, QWidget *parent=nullptr)
 Creates a CameraView using the first registered factory that supports the given camera.
static Buffer< ViewportFactory * > RegisteredFactories ()
 Returns all registered ViewportFactory instances.
Static Protected Attributes inherited from ViewportFactory
static Buffer< ViewportFactory * > s_camera_factories
 The list of registered viewport factories.

Detailed Description

A QTGraphicsWindow for rendering using Vulkan.



Provides the interface for automatically creating VulkanGraphicsWindow when the request for a VirtualCameraView is sent through

Definition at line 99 of file VulkanGraphicsWindow.h.

Member Function Documentation

◆ canCreateView()

virtual bool VulkanCameraViewFactory::canCreateView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager,
bool ignore_active )
overridevirtual

Checks whether this factory can create a view for the given camera.

Parameters
[in]cameraThe camera to check.
[in]model_managerThe design object lookup.
[in]ignore_activeWhether to ignore the active state.
Returns
True if a Vulkan view can be created.

Implements ViewportFactory.

◆ createView()

virtual VirtualCameraView * VulkanCameraViewFactory::createView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager,
QWidget * parent = nullptr )
overridevirtual

Creates a Vulkan-based virtual camera view.

Parameters
[in]cameraThe camera to create the view for.
[in]model_managerThe design object lookup for scene data.
[in]parentThe optional parent widget.
Returns
A new VirtualCameraView using Vulkan rendering.

Implements ViewportFactory.


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