File tree Expand file tree Collapse file tree 5 files changed +18
-1
lines changed
Expand file tree Collapse file tree 5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 3333#include < stdint.h>
3434
3535#include < libfreenect2/config.h>
36+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
3637#include < libfreenect2/libfreenect2.hpp>
3738#include < libfreenect2/frame_listener.hpp>
3839#include < libfreenect2/packet_processor.h>
@@ -52,7 +53,7 @@ struct DepthPacket
5253/* * Class for processing depth information. */
5354typedef PacketProcessor<DepthPacket> BaseDepthPacketProcessor;
5455
55- class DepthPacketProcessor : public BaseDepthPacketProcessor
56+ class DepthPacketProcessor : public ConfigPacketProcessor , public BaseDepthPacketProcessor
5657{
5758public:
5859 typedef Freenect2Device::Config Config;
Original file line number Diff line number Diff line change @@ -112,6 +112,15 @@ class LIBFREENECT2_API Freenect2Device
112112 virtual void close () = 0;
113113};
114114
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+
115124class Freenect2Impl ;
116125
117126/* *
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ class RgbPacketProcessor;
3939class DepthPacketProcessor ;
4040class PacketPipelineComponents ;
4141
42+ class ConfigPacketProcessor ;
43+ #ifndef LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
44+ #define DepthPacketProcessor ConfigPacketProcessor
45+ #endif
46+
4247/* * Front of the pipeline, RGB and Depth parsing and processing. */
4348class LIBFREENECT2_API PacketPipeline
4449{
Original file line number Diff line number Diff line change 3434#include < cmath>
3535#define WRITE_LIBUSB_ERROR (__RESULT ) libusb_error_name(__RESULT) << " " << libusb_strerror((libusb_error)__RESULT)
3636
37+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
3738#include < libfreenect2/libfreenect2.hpp>
3839
3940#include < libfreenect2/usb/event_loop.h>
Original file line number Diff line number Diff line change 2626
2727/* * @file packet_pipeline.cpp Packet pipeline implementation. */
2828
29+ #define LIBFREENECT2_SETCONFIGURATION_COMPAT_INTERNAL
2930#include < libfreenect2/packet_pipeline.h>
3031#include < libfreenect2/async_packet_processor.h>
3132#include < libfreenect2/data_callback.h>
You can’t perform that action at this time.
0 commit comments