API Documentation
Loading...
Searching...
No Matches
ViewportFactory.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/CameraView.h>
4#include <NDEVR/DesignObjectLookup.h>
5namespace NDEVR
6{
7 /**--------------------------------------------------------------------------------------------------
8 \brief A service which can generate Viewports based on Camera data.
9 **/
11 {
12 public:
13 virtual CameraView* createView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager, bool auto_add_models = true, QWidget* parent = nullptr) = 0;
14 virtual bool canCreateView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager) = 0;
16 virtual void resetToDefaults() {};
17 public:
19 static DESIGN_WIDGETS_API CameraView* CreateView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager, bool auto_add_models = true, QWidget* parent = nullptr);
22 protected:
24 };
25}
#define DESIGN_WIDGETS_API
Definition DLLInfo.h:56
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A simple frame for displaying Viewport data to a user. Data is rendered by a given Rendering engine b...
Definition CameraView.h:50
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A service which can generate Viewports based on Camera data.
Definition ViewportFactory.h:11
static Buffer< DynamicPointer< Camera > > AvailableCameraStreams()
static CameraView * CreateView(const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool auto_add_models=true, QWidget *parent=nullptr)
virtual bool canCreateView(const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager)=0
virtual void resetToDefaults()
Definition ViewportFactory.h:16
virtual CameraView * createView(const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool auto_add_models=true, QWidget *parent=nullptr)=0
virtual Buffer< DynamicPointer< Camera > > availableCameraStreams() const
Definition ViewportFactory.h:15
static Buffer< ViewportFactory * > RegisteredFactories()
static void AddFactory(ViewportFactory *factory)
static Buffer< ViewportFactory * > s_camera_factories
Definition ViewportFactory.h:23
Definition ACIColor.h:37