NITE 1.5.1 - API Reference

XnVVirtualCoordinates Class Reference

#include <XnVVirtualCoordinates.h>

Inheritance diagram for XnVVirtualCoordinates:
Collaboration diagram for XnVVirtualCoordinates:

List of all members.

Public Member Functions

 XnVVirtualCoordinates (const XnChar *strINI, const XnChar *strName="XnVVirtualCoordintates")
virtual ~XnVVirtualCoordinates ()
void Update (XnVMessage *pMessage)
void Update (const XnVMultipleHands &hands)
void OnPointCreate (const XnVHandPointContext *pContext)
void OnPointUpdate (const XnVHandPointContext *pContext)
void OnPointDestroy (XnUInt32 nID)

Protected Member Functions

void Clear ()
virtual void UpdateVirtualPoint (XnVVirtualCoordinatesInternal *pVC, const XnVHandPointContext *pContext, XnVHandPointContext *pLocalContext)
XnVVirtualCoordinatesInternal * GetLocalContext (XnUInt32 nID)

Protected Attributes

XnVIntVCIHash * m_pVCContexts
XnChar m_strINI [XNV_VC_MAX_FILE_NAME]
XnVMultipleHands m_Hands

Detailed Description

The virtual coordinates filter learns the user's virtual plane, and translates all points to coordinates relative to that plane

Definition at line 23 of file XnVVirtualCoordinates.h.


Constructor & Destructor Documentation

XnVVirtualCoordinates::XnVVirtualCoordinates ( const XnChar *  strINI,
const XnChar *  strName = "XnVVirtualCoordintates" 
)

Constructor: Create a new Virtual Coordinates Filter

Parameters:
[in]strINIInitialization file
[in]strNameName of the control, for log purposes.
virtual XnVVirtualCoordinates::~XnVVirtualCoordinates ( ) [virtual]

Member Function Documentation

void XnVVirtualCoordinates::Clear ( ) [protected]
XnVVirtualCoordinatesInternal* XnVVirtualCoordinates::GetLocalContext ( XnUInt32  nID) [protected]
void XnVVirtualCoordinates::OnPointCreate ( const XnVHandPointContext pContext) [virtual]

Called when a point is created.

Parameters:
[in]pContextThe hand context of the newly created point

Reimplemented from XnVPointControl.

Reimplemented in XnVClickableVirtualPlane.

void XnVVirtualCoordinates::OnPointDestroy ( XnUInt32  nID) [virtual]

Called when a point is destroyed.

Parameters:
[in]nIDthe ID of the destroyed point

Reimplemented from XnVPointControl.

Reimplemented in XnVClickableVirtualPlane.

void XnVVirtualCoordinates::OnPointUpdate ( const XnVHandPointContext pContext) [virtual]

Called when a point is updated.

Parameters:
[in]pContextThe hand context of the point

Reimplemented from XnVPointControl.

void XnVVirtualCoordinates::Update ( const XnVMultipleHands hands) [virtual]

Translate a new batch of points

Parameters:
[in]handsThe current points

Reimplemented from XnVPointControl.

void XnVVirtualCoordinates::Update ( XnVMessage pMessage) [virtual]

Send the receives message as-is, allowing Point based callbacks.

Reimplemented from XnVPointFilter.

virtual void XnVVirtualCoordinates::UpdateVirtualPoint ( XnVVirtualCoordinatesInternal *  pVC,
const XnVHandPointContext pContext,
XnVHandPointContext pLocalContext 
) [protected, virtual]

Reimplemented in XnVClickableVirtualPlane.


Member Data Documentation

XnVIntVCIHash* XnVVirtualCoordinates::m_pVCContexts [protected]

Definition at line 68 of file XnVVirtualCoordinates.h.

XnChar XnVVirtualCoordinates::m_strINI[XNV_VC_MAX_FILE_NAME] [protected]

Definition at line 70 of file XnVVirtualCoordinates.h.


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