GfxDevice.hpp
1 #pragma once
2 #include <Device/Protocol/DeviceInterface.hpp>
3 #include <Device/Protocol/DeviceSettings.hpp>
4 #include <Device/Protocol/ProtocolFactoryInterface.hpp>
5 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
6 
7 #include <QLineEdit>
8 
9 #include <score_plugin_gfx_export.h>
10 namespace Gfx
11 {
12 class gfx_protocol_base;
13 class SCORE_PLUGIN_GFX_EXPORT GfxInputDevice : public Device::DeviceInterface
14 {
15 public:
17  const Device::DeviceSettings& settings, const score::DocumentContext& ctx);
18  virtual ~GfxInputDevice();
19 
20 protected:
21  const score::DocumentContext& m_ctx;
22 
23  void addAddress(const Device::FullAddressSettings& settings) override;
24  void recreate(const Device::Node& n) override;
25 
26  using Device::DeviceInterface::refresh;
27  QMimeData* mimeData() const override;
28  Device::Node refresh() override;
29  void disconnect() override;
30 
31  void setupNode(ossia::net::node_base&, const ossia::extended_attributes& attr);
32 };
33 
34 class SCORE_PLUGIN_GFX_EXPORT GfxOutputDevice : public Device::DeviceInterface
35 {
36 public:
38  const Device::DeviceSettings& settings, const score::DocumentContext& ctx);
39  virtual ~GfxOutputDevice();
40 
41 protected:
42  const score::DocumentContext& m_ctx;
43 
44  void addAddress(const Device::FullAddressSettings& settings) override;
45  void recreate(const Device::Node& n) override;
46 
47  using Device::DeviceInterface::refresh;
48  QMimeData* mimeData() const override;
49  Device::Node refresh() override;
50  void disconnect() override;
51 
52  void setupNode(ossia::net::node_base&, const ossia::extended_attributes& attr);
53 };
54 
55 }
Definition: DeviceInterface.hpp:66
Definition: GfxDevice.hpp:14
Definition: GfxDevice.hpp:35
Binds the rendering pipeline to ossia processes.
Definition: CameraDevice.cpp:28
Definition: DeviceSettings.hpp:20
Definition: AddressSettings.hpp:62
Definition: DocumentContext.hpp:18