File tree 5 files changed +18
-1
lines changed
5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 33
33
#include < stdint.h>
34
34
35
35
#include < libfreenect2/config.h>
36
+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
36
37
#include < libfreenect2/libfreenect2.hpp>
37
38
#include < libfreenect2/frame_listener.hpp>
38
39
#include < libfreenect2/packet_processor.h>
@@ -52,7 +53,7 @@ struct DepthPacket
52
53
/* * Class for processing depth information. */
53
54
typedef PacketProcessor<DepthPacket> BaseDepthPacketProcessor;
54
55
55
- class DepthPacketProcessor : public BaseDepthPacketProcessor
56
+ class DepthPacketProcessor : public ConfigPacketProcessor , public BaseDepthPacketProcessor
56
57
{
57
58
public:
58
59
typedef Freenect2Device::Config Config;
Original file line number Diff line number Diff line change @@ -112,6 +112,15 @@ class LIBFREENECT2_API Freenect2Device
112
112
virtual void close () = 0;
113
113
};
114
114
115
+ /* * @deprecated Use Freenect2Device::setConfiguration() instead.
116
+ */
117
+ class ConfigPacketProcessor
118
+ {
119
+ public:
120
+ typedef Freenect2Device::Config Config;
121
+ LIBFREENECT2_DEPRECATED virtual void setConfiguration (const Config &config) = 0;
122
+ };
123
+
115
124
class Freenect2Impl ;
116
125
117
126
/* *
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ class RgbPacketProcessor;
39
39
class DepthPacketProcessor ;
40
40
class PacketPipelineComponents ;
41
41
42
+ class ConfigPacketProcessor ;
43
+ #ifndef LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
44
+ #define DepthPacketProcessor ConfigPacketProcessor
45
+ #endif
46
+
42
47
/* * Front of the pipeline, RGB and Depth parsing and processing. */
43
48
class LIBFREENECT2_API PacketPipeline
44
49
{
Original file line number Diff line number Diff line change 34
34
#include < cmath>
35
35
#define WRITE_LIBUSB_ERROR (__RESULT ) libusb_error_name(__RESULT) << " " << libusb_strerror((libusb_error)__RESULT)
36
36
37
+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
37
38
#include < libfreenect2/libfreenect2.hpp>
38
39
39
40
#include < libfreenect2/usb/event_loop.h>
Original file line number Diff line number Diff line change 26
26
27
27
/* * @file packet_pipeline.cpp Packet pipeline implementation. */
28
28
29
+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
29
30
#include < libfreenect2/packet_pipeline.h>
30
31
#include < libfreenect2/async_packet_processor.h>
31
32
#include < libfreenect2/data_callback.h>
You can’t perform that action at this time.
0 commit comments