score
Home
Classes
Namespaces
Files
Kinect2Device.hpp
1
#pragma once
2
#include <Gfx/GfxDevice.hpp>
3
#include <Gfx/GfxExecContext.hpp>
4
#include <Gfx/GfxInputDevice.hpp>
5
#include <Gfx/SharedInputSettings.hpp>
6
#include <Video/CameraInput.hpp>
7
#include <Video/FrameQueue.hpp>
8
9
#include <ossia/detail/lockfree_queue.hpp>
10
#include <ossia/gfx/texture_parameter.hpp>
11
#include <ossia/network/base/device.hpp>
12
#include <ossia/network/base/protocol.hpp>
13
#include <ossia/network/generic/generic_device.hpp>
14
#include <ossia/network/generic/generic_node.hpp>
15
16
#include <QLineEdit>
17
18
class
QComboBox;
19
namespace
libfreenect2
20
{
21
class
Freenect2Device;
22
class
PacketPipeline;
23
class
SyncMultiFrameListener;
24
class
Frame;
25
}
26
27
// Score part
28
29
#include <Device/Protocol/DeviceInterface.hpp>
30
#include <Device/Protocol/DeviceSettings.hpp>
31
#include <Device/Protocol/ProtocolFactoryInterface.hpp>
32
#include <Device/Protocol/ProtocolSettingsWidget.hpp>
33
34
namespace
Gfx::Kinect2
35
{
36
struct
Kinect2Settings
37
{
38
QString input;
39
bool
rgb{
true
}, ir{
true
}, depth{
true
};
40
};
41
42
class
ProtocolFactory
final :
public
SharedInputProtocolFactory
43
{
44
SCORE_CONCRETE(
"1056df8a-f20c-40e4-995e-f18ffda3a16a"
)
45
public
:
46
QString prettyName()
const
noexcept
override
;
47
QUrl manual()
const
noexcept
override
;
48
Device::DeviceEnumerators getEnumerators(
const
score::DocumentContext
& ctx)
const override
;
49
50
Device::DeviceInterface
* makeDevice(
51
const
Device::DeviceSettings
& settings,
52
const
Explorer::DeviceDocumentPlugin& plugin,
53
const
score::DocumentContext
& ctx)
override
;
54
const
Device::DeviceSettings
& defaultSettings()
const
noexcept
override
;
55
56
Device::ProtocolSettingsWidget
* makeSettingsWidget()
override
;
57
};
58
59
}
60
61
Q_DECLARE_METATYPE(
Gfx::Kinect2::Kinect2Settings
)
62
W_REGISTER_ARGTYPE(
Gfx::Kinect2::Kinect2Settings
)
Device::DeviceInterface
Definition:
DeviceInterface.hpp:66
Device::ProtocolSettingsWidget
Definition:
ProtocolSettingsWidget.hpp:22
Gfx::Kinect2::ProtocolFactory
Definition:
Kinect2Device.hpp:43
Gfx::SharedInputProtocolFactory
Definition:
SharedInputSettings.hpp:26
Device::DeviceSettings
Definition:
DeviceSettings.hpp:20
Gfx::Kinect2::Kinect2Settings
Definition:
Kinect2Device.hpp:37
score::DocumentContext
Definition:
DocumentContext.hpp:18