API Documentation
Loading...
Searching...
No Matches
ViewportFactory Class Referenceabstract

A service which can generate Viewports based on Camera data. More...

#include <ViewportFactory.h>

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

Public Member Functions

virtual Buffer< DynamicPointer< Camera > > availableCameraStreams () const
 
virtual bool canCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager)=0
 
virtual CameraViewcreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool auto_add_models=true, QWidget *parent=nullptr)=0
 
virtual void resetToDefaults ()
 

Static Public Member Functions

static DESIGN_WIDGETS_API void AddFactory (ViewportFactory *factory)
 
static DESIGN_WIDGETS_API Buffer< DynamicPointer< Camera > > AvailableCameraStreams ()
 
static DESIGN_WIDGETS_API CameraViewCreateView (const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool auto_add_models=true, QWidget *parent=nullptr)
 
static DESIGN_WIDGETS_API Buffer< ViewportFactory * > RegisteredFactories ()
 

Static Protected Attributes

static Buffer< ViewportFactory * > s_camera_factories
 

Detailed Description

A service which can generate Viewports based on Camera data.


autotoc_md1035

Member Function Documentation

◆ AddFactory()

static DESIGN_WIDGETS_API void AddFactory ( ViewportFactory * factory)
static

◆ AvailableCameraStreams()

static DESIGN_WIDGETS_API Buffer< DynamicPointer< Camera > > AvailableCameraStreams ( )
static

◆ availableCameraStreams()

virtual Buffer< DynamicPointer< Camera > > availableCameraStreams ( ) const
inlinevirtual

◆ canCreateView()

virtual bool canCreateView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager )
pure virtual

◆ CreateView()

static DESIGN_WIDGETS_API CameraView * CreateView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager,
bool auto_add_models = true,
QWidget * parent = nullptr )
static

◆ createView()

virtual CameraView * createView ( const DynamicPointer< Camera > & camera,
DesignObjectLookup * model_manager,
bool auto_add_models = true,
QWidget * parent = nullptr )
pure virtual

◆ RegisteredFactories()

static DESIGN_WIDGETS_API Buffer< ViewportFactory * > RegisteredFactories ( )
static

◆ resetToDefaults()

virtual void resetToDefaults ( )
inlinevirtual

Member Data Documentation

◆ s_camera_factories

Buffer<ViewportFactory*> s_camera_factories
staticprotected

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