![]() |
NDEVR
API Documentation
|
A service which can generate Viewports based on Camera data. More...
Public Member Functions | |
| 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. | |
| virtual void | resetToDefaults () |
| Resets this factory's settings to their default values. | |
Static Public Member Functions | |
| 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 | |
| static Buffer< ViewportFactory * > | s_camera_factories |
| The list of registered viewport factories. | |
A service which can generate Viewports based on Camera data.
Definition at line 10 of file ViewportFactory.h.
|
static |
Registers a viewport factory for creating camera views.
| [in] | factory | The factory to register. |
|
static |
Returns all available camera streams from all registered factories.
|
inlinevirtual |
Returns all camera streams that this factory can provide.
Reimplemented in LocalPhysicalCameraViewFactory, and VulkanPhysicalCameraViewFactory.
Definition at line 33 of file ViewportFactory.h.
|
static |
Checks whether any registered factory can create a view for the given camera.
| [in] | camera | The camera to check. |
| [in] | model_manager | The design object lookup providing scene data. |
|
pure virtual |
Checks whether this factory can create a view for the given camera.
| [in] | camera | The camera to check. |
| [in] | model_manager | The design object lookup providing scene data. |
| [in] | ignore_active | Whether to ignore whether the camera is currently active. |
Implemented in GLESCameraViewFactory, LocalPhysicalCameraViewFactory, VLCPhysicalCameraViewFactory, VulkanCameraViewFactory, and VulkanPhysicalCameraViewFactory.
|
static |
Creates a CameraView using the first registered factory that supports the given camera.
| [in] | camera | The camera to create a view for. |
| [in] | model_manager | The design object lookup providing scene data. |
| [in] | parent | The parent widget for the created view. |
|
pure virtual |
Creates a CameraView widget for the given camera and model manager.
| [in] | camera | The camera to create a view for. |
| [in] | model_manager | The design object lookup providing scene data. |
| [in] | parent | The parent widget for the created view. |
Implemented in GLESCameraViewFactory, LocalPhysicalCameraViewFactory, VLCPhysicalCameraViewFactory, VulkanCameraViewFactory, and VulkanPhysicalCameraViewFactory.
|
static |
Returns all registered ViewportFactory instances.