NDEVR
API Documentation
VulkanPhysicalCameraViewFactory

Provides access to a local camera on the system, such as a webcam or camera for a phone. More...

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

Public Member Functions

virtual Buffer< DynamicPointer< Camera > > availableCameraStreams () const override
 Returns all camera streams available for Vulkan-based rendering.
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 PhysicalCameraViewcreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, QWidget *parent) override
 Creates a VulkanPhysicalCameraView for the given camera.
Public Member Functions inherited from PhysicalCameraViewFactory
virtual Buffer< PhysicalCameraView::OutputCodecsupportedOutputCodecs ()
 Returns the list of video codecs supported by this factory.
virtual Buffer< PhysicalCameraView::OutputMuxsupportedOutputMuxes ()
 Returns the list of container/muxer formats supported by this factory.
Public Member Functions inherited from ViewportFactory
virtual void resetToDefaults ()
 Resets this factory's settings to their default values.

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

Provides access to a local camera on the system, such as a webcam or camera for a phone.



Provides an interface to PhysicalCameraViewFactory for creating a VulkanPhysicalCameraView

Definition at line 114 of file VulkanPhysicalCameraView.h.

Member Function Documentation

◆ availableCameraStreams()

virtual Buffer< DynamicPointer< Camera > > VulkanPhysicalCameraViewFactory::availableCameraStreams ( ) const
overridevirtual

Returns all camera streams available for Vulkan-based rendering.

Returns
Buffer of available camera pointers.

Reimplemented from ViewportFactory.

◆ canCreateView()

virtual bool VulkanPhysicalCameraViewFactory::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 context.
[in]ignore_activeWhether to ignore the camera's active state.
Returns
true if this factory can create a view.

Implements ViewportFactory.

◆ createView()

virtual PhysicalCameraView * VulkanPhysicalCameraViewFactory::createView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager,
QWidget * parent )
overridevirtual

Creates a VulkanPhysicalCameraView for the given camera.

Parameters
[in]cameraThe camera to create a view for.
[in]model_managerThe design object lookup context.
[in]parentOptional parent widget.
Returns
A new PhysicalCameraView instance.

Implements ViewportFactory.


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