The StoreHandMask class inherits from IOEventManager to implement an event that stores all hands found in a frame.
More...
#include <storehandmask.h>
The StoreHandMask class inherits from IOEventManager to implement an event that stores all hands found in a frame.
This class will store binary images of the hand masks found in the current frame to the folder specified.
StoreHandMask::StoreHandMask |
( |
| ) |
|
void StoreHandMask::gestureFinalize |
( |
EventData & |
param | ) |
|
|
virtual |
gestureFinalize This function is called when the event needs to be finalized
- Parameters
-
param | data of the frame needed for the event |
This function should not be called again until IOEventManager::gestureInitialize has been called.
In the example of doing a mouse click and drag this function would unclick the button. In the example of recording a video this function should close the file descriptor.
Implements IOEventManager.
void StoreHandMask::gestureInitialize |
( |
EventData & |
param | ) |
|
|
virtual |
gestureInitialize This function is called when the event needs to be started
- Parameters
-
param | data of the frame needed for the event |
In the example of doing a mouse click and drag this would be the function when the button is clicked. In the example of recording a video the file descriptor should be created in this function.
This function should not be called again until IOEventManager::gestureFinalize has been called.
Implements IOEventManager.
void StoreHandMask::gestureInProgressUpdate |
( |
EventData & |
param | ) |
|
|
virtual |
gestureInProgressUpdate This function is called when the event is happening
- Parameters
-
param | data of the frame needed for the event |
This function could be called several times. In the example of doing a mouse click and drag this would be the function that updates the mouse position. In the exmample of recording a video each call to this function would store a frame.
Implements IOEventManager.
string StoreHandMask::getFileHeader |
( |
| ) |
const |
string StoreHandMask::getFolder |
( |
| ) |
const |
int StoreHandMask::getOffset |
( |
| ) |
const |
void StoreHandMask::initData |
( |
| ) |
|
|
virtual |
initData This function initializes the atributes needed for using the event later on
Implements IOEventManager.
void StoreHandMask::setFileHeader |
( |
const string & |
value | ) |
|
void StoreHandMask::setFolder |
( |
const string & |
value | ) |
|
void StoreHandMask::setOffset |
( |
int |
value | ) |
|
void StoreHandMask::storeHands |
( |
EventData & |
param | ) |
|
|
protectedvirtual |
long StoreHandMask::counter |
|
protected |
string StoreHandMask::fileHeader |
|
protected |
string StoreHandMask::folder |
|
protected |
int StoreHandMask::fpNMax |
|
protected |
int StoreHandMask::offset |
|
protected |
int StoreHandMask::waitingFpN |
|
protected |
The documentation for this class was generated from the following files: