Public Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
openni::VideoStream::NewFrameListener Class Referenceabstract

#include <OpenNI.h>

Inheritance diagram for openni::VideoStream::NewFrameListener:
Inheritance graph
[legend]

Public Member Functions

 NewFrameListener ()
 
virtual void onNewFrame (VideoStream &)=0
 
virtual ~NewFrameListener ()
 

Static Private Member Functions

static void ONI_CALLBACK_TYPE callback (OniStreamHandle streamHandle, void *pCookie)
 

Private Attributes

OniCallbackHandle m_callbackHandle
 

Friends

class VideoStream
 

Detailed Description

The VideoStream::NewFrameListener class is provided to allow the implementation of event driven frame reading. To use it, create a class that inherits from it and implement override the onNewFrame() method. Then, register your created class with an active VideoStream using the VideoStream::addNewFrameListener() function. Once this is done, the event handler function you implemented will be called whenever a new frame becomes available. You may call VideoStream::readFrame() from within the event handler.

Definition at line 673 of file OpenNI.h.

Constructor & Destructor Documentation

openni::VideoStream::NewFrameListener::NewFrameListener ( )
inline

Default constructor.

Definition at line 679 of file OpenNI.h.

virtual openni::VideoStream::NewFrameListener::~NewFrameListener ( )
inlinevirtual

Definition at line 683 of file OpenNI.h.

Member Function Documentation

static void ONI_CALLBACK_TYPE openni::VideoStream::NewFrameListener::callback ( OniStreamHandle  streamHandle,
void *  pCookie 
)
inlinestaticprivate

Definition at line 695 of file OpenNI.h.

virtual void openni::VideoStream::NewFrameListener::onNewFrame ( VideoStream )
pure virtual

Derived classes should implement this function to handle new frames.

Implemented in astra_wrapper::AstraFrameListener.

Friends And Related Function Documentation

friend class VideoStream
friend

Definition at line 693 of file OpenNI.h.

Member Data Documentation

OniCallbackHandle openni::VideoStream::NewFrameListener::m_callbackHandle
private

Definition at line 703 of file OpenNI.h.


The documentation for this class was generated from the following file:


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34