![]() |
OpenNI 1.5.2
|
#include <XnModuleInterface.h>
The interface of a generator.
| const void*(* XnModuleGeneratorInterface::GetData)(XnModuleNodeHandle hGenerator) |
Gets pointer to current data.
| hGenerator | [in] A handle to the instance. |
| XnUInt32(* XnModuleGeneratorInterface::GetDataSize)(XnModuleNodeHandle hGenerator) |
Gets the size of current data, in bytes.
| hGenerator | [in] A handle to the instance. |
| XnUInt32(* XnModuleGeneratorInterface::GetFrameID)(XnModuleNodeHandle hGenerator) |
Gets the frame ID of current data.
| hGenerator | [in] A handle to the instance. |
| XnUInt64(* XnModuleGeneratorInterface::GetTimestamp)(XnModuleNodeHandle hGenerator) |
Gets the timestamp of current data, in microseconds.
| hGenerator | [in] A handle to the instance. |
| XnBool(* XnModuleGeneratorInterface::IsGenerating)(XnModuleNodeHandle hGenerator) |
Checks if the generator is currently generating.
| hGenerator | [in] A handle to the instance. |
| XnBool(* XnModuleGeneratorInterface::IsNewDataAvailable)(XnModuleNodeHandle hGenerator, XnUInt64 *pnTimestamp) |
Checks whether this node has new data (and so a call to xn::Generator::WaitAndUpdateData() will not block).
| hGenerator | [in] A handle to the instance to be updated. |
| pnTimestamp | [out] If new data is available, the timestamp of that data. |
Contains production node interface.
| XnStatus(* XnModuleGeneratorInterface::RegisterToGenerationRunningChange)(XnModuleNodeHandle hGenerator, XnModuleStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback) |
Registers a callback function to be called when generation starts or stops.
| hGenerator | [in] A handle to the instance. |
| handler | [in] A pointer to a function that will be called when generation starts/stops. |
| pCookie | [in] A user cookie that will be passed to the callback function. |
| phCallback | [out] Optional. Will be filled with a handle to be passed to UnregisterFromGenerationRunningChange(). |
| XnStatus(* XnModuleGeneratorInterface::RegisterToNewDataAvailable)(XnModuleNodeHandle hGenerator, XnModuleStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback) |
Registers a callback function to be called when new data is available.
| handler | [in] A pointer to a function that will be called when new data is available. |
| pCookie | [in] A user cookie that will be passed to the callback function. |
| phCallback | [out] Optional. Will be filled with a handle to be passed to UnregisterFromNewDataAvailable(). |
Starts generation of the output.
| hGenerator | [in] A handle to the instance to start generating. |
| void(* XnModuleGeneratorInterface::StopGenerating)(XnModuleNodeHandle hGenerator) |
Stops generation of the output.
| hGenerator | [in] A handle to the instance to stop generating. |
| void(* XnModuleGeneratorInterface::UnregisterFromGenerationRunningChange)(XnModuleNodeHandle hGenerator, XnCallbackHandle hCallback) |
Unregisters a callback function which was registered using RegisterToGenerationRunningChange().
| hGenerator | [in] A handle to the instance. |
| hCallback | [in] The handle to the callback returned from RegisterToGenerationRunningChange(). |
| void(* XnModuleGeneratorInterface::UnregisterFromNewDataAvailable)(XnModuleNodeHandle hGenerator, XnCallbackHandle hCallback) |
Unregisters a callback function which was registered using RegisterToNewDataAvailable().
| hGenerator | [in] A handle to the instance. |
| hCallback | [in] The handle to the callback returned from RegisterToNewDataAvailable(). |
| XnStatus(* XnModuleGeneratorInterface::UpdateData)(XnModuleNodeHandle hGenerator) |
Updates the data to the latest available one. This function will only be called AFTER the node notified OpenNI it has new data available.
| hGenerator | [in] A handle to the instance to be updated. |
1.7.6.1