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{
8 {
9 public:
10 virtual CameraView* createView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager, bool auto_add_models = true, QWidget* parent = nullptr) = 0;
11 virtual bool canCreateView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager) = 0;
13 virtual void resetToDefaults() {};
14 public:
16 static DESIGN_WIDGETS_API CameraView* CreateView(const DynamicPointer<Camera>& camera, DesignObjectLookup* model_manager, bool auto_add_models = true, QWidget* parent = nullptr);
17 static DESIGN_WIDGETS_API void AddFactory(ViewportFactory* factory);
19 protected:
21 };
22}
#define DESIGN_WIDGETS_API
Definition DLLInfo.h:74
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Definition CameraView.h:46
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:319
Definition ViewportFactory.h:8
static DESIGN_WIDGETS_API Buffer< DynamicPointer< Camera > > AvailableCameraStreams()
Definition ViewportFactory.cpp:24
virtual bool canCreateView(const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager)=0
virtual void resetToDefaults()
Definition ViewportFactory.h:13
static DESIGN_WIDGETS_API Buffer< ViewportFactory * > RegisteredFactories()
Definition ViewportFactory.cpp:4
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:12
static DESIGN_WIDGETS_API void AddFactory(ViewportFactory *factory)
Definition ViewportFactory.cpp:20
static Buffer< ViewportFactory * > s_camera_factories
Definition ViewportFactory.h:20
static DESIGN_WIDGETS_API CameraView * CreateView(const DynamicPointer< Camera > &camera, DesignObjectLookup *model_manager, bool auto_add_models=true, QWidget *parent=nullptr)
Definition ViewportFactory.cpp:8
Definition ACIColor.h:37