libfreenect2  0.2
Public Member Functions | List of all members
FrameListener Class Referenceabstract

Callback interface to receive new frames. More...

#include <libfreenect2/frame_listener.hpp>

Inheritance diagram for FrameListener:
SyncMultiFrameListener

Public Member Functions

virtual ~FrameListener ()
 
virtual bool onNewFrame (Frame::Type type, Frame *frame)=0
 libfreenect2 calls this function when a new frame is decoded. More...
 

Detailed Description

Callback interface to receive new frames.

You can inherit from FrameListener and define your own listener.

Constructor & Destructor Documentation

virtual ~FrameListener ( )
virtual

Member Function Documentation

virtual bool onNewFrame ( Frame::Type  type,
Frame frame 
)
pure virtual

libfreenect2 calls this function when a new frame is decoded.

Parameters
typeType of the new frame.
frameData of the frame.
Returns
true if you want to take ownership of the frame, i.e. reuse/delete it. Will be reused/deleted by caller otherwise.

Implemented in SyncMultiFrameListener.