NDEVR
API Documentation
OpenCVPhysicalCameraViewFactory

A PhysicalCameraViewFactory that creates OpenCV/RealSense-based camera views. More...

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

Public Member Functions

virtual bool canCreateView (const DynamicPointer< Camera > &camera, QWidget *parent) override
 Checks whether this factory can create a view for the given camera.
virtual PhysicalCameraViewcreateView (const DynamicPointer< Camera > &camera, QWidget *parent) override
 Creates a camera view widget for the given camera.
virtual void resetToDefaults () override
 Resets the factory to default settings.
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 Buffer< DynamicPointer< Camera > > availableCameraStreams () const
 Returns all camera streams that this factory can provide.
virtual bool canCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool ignore_active)=0
 Checks whether this factory can create a view for the given camera.
virtual CameraView * createView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, QWidget *parent=nullptr)=0
 Creates a CameraView widget for the given camera and model manager.

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 PhysicalCameraViewFactory that creates OpenCV/RealSense-based camera views.


Definition at line 80 of file OpenCVViewport.h.

Member Function Documentation

◆ canCreateView()

virtual bool OpenCVPhysicalCameraViewFactory::canCreateView ( const DynamicPointer< Camera > & camera,
QWidget * parent )
overridevirtual

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

Parameters
[in]cameraThe camera design object.
[in]parentThe parent widget.
Returns
True if a view can be created.

◆ createView()

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

Creates a camera view widget for the given camera.

Parameters
[in]cameraThe camera design object.
[in]parentThe parent widget.
Returns
A pointer to the created PhysicalCameraView.

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