NDEVR
API Documentation
VLCPhysicalCameraViewFactory

Factory for creating VLCCameraView instances. More...

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

Public Member Functions

virtual bool canCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool ignore_active) override
 Checks whether a camera view can be created for the given camera.
virtual CameraView * createView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, QWidget *parent=nullptr) override
 Creates a camera view for the given camera.
virtual void resetToDefaults () override
 Resets factory settings to their defaults.
virtual Buffer< PhysicalCameraView::OutputCodecsupportedOutputCodecs () override
 Returns the list of video codecs supported by VLC output.
virtual Buffer< PhysicalCameraView::OutputMuxsupportedOutputMuxes () override
 Returns the list of container formats supported by VLC output.
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

Factory for creating VLCCameraView instances.

Provides information about supported codecs and muxes, and creates VLCCameraView widgets for cameras that support VLC-based playback.

Definition at line 205 of file VLCCameraView.h.

Member Function Documentation

◆ canCreateView()

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

Checks whether a camera view can be created for the given camera.

Parameters
[in]camerathe camera design object.
[in]model_managerthe design object lookup.
[in]ignore_activewhether to ignore active state checks.
Returns
true if a view can be created.

Implements ViewportFactory.

◆ createView()

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

Creates a camera view for the given camera.

Parameters
[in]camerathe camera design object.
[in]model_managerthe design object lookup.
[in]parentthe parent widget.
Returns
a new CameraView instance.

Implements ViewportFactory.

◆ supportedOutputCodecs()

virtual Buffer< PhysicalCameraView::OutputCodec > VLCPhysicalCameraViewFactory::supportedOutputCodecs ( )
overridevirtual

Returns the list of video codecs supported by VLC output.

Returns
a buffer of supported output codecs.

Reimplemented from PhysicalCameraViewFactory.

◆ supportedOutputMuxes()

virtual Buffer< PhysicalCameraView::OutputMux > VLCPhysicalCameraViewFactory::supportedOutputMuxes ( )
overridevirtual

Returns the list of container formats supported by VLC output.

Returns
a buffer of supported output muxes.

Reimplemented from PhysicalCameraViewFactory.


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