OpenNI 1.0.0
|
#include <XnCppWrapper.h>
Public Member Functions | |
NodeWrapper (XnNodeHandle hNode) | |
~NodeWrapper () | |
operator XnNodeHandle () const | |
XnBool | operator== (const NodeWrapper &other) |
XnBool | operator!= (const NodeWrapper &other) |
XnBool | IsValid () const |
const XnChar * | GetName () const |
XnStatus | AddRef () |
void | Release () |
XnStatus | Ref () |
void | Unref () |
void | SetHandle (XnNodeHandle hNode) |
Protected Attributes | |
XnNodeHandle | m_hNode |
Friends | |
class | Context |
Base class for all node wrappers
xn::NodeWrapper::NodeWrapper | ( | XnNodeHandle | hNode | ) | [inline] |
Ctor
hNode | [in] A node handle. |
xn::NodeWrapper::~NodeWrapper | ( | ) | [inline] |
XnStatus xn::NodeWrapper::AddRef | ( | ) | [inline] |
References a production node, increasing its reference count by 1.
For full details and usage, see xnProductionNodeAddRefconst XnChar* xn::NodeWrapper::GetName | ( | ) | const [inline] |
Gets the instance name of a node by its handle.
For full details and usage, see xnGetNodeName()XnBool xn::NodeWrapper::IsValid | ( | ) | const [inline] |
TRUE if the object points to an actual node, FALSE otherwise.
xn::NodeWrapper::operator XnNodeHandle | ( | ) | const [inline] |
Gets the underlying C handle.
XnBool xn::NodeWrapper::operator!= | ( | const NodeWrapper & | other | ) | [inline] |
Checks if two node wrappers point to different objects.
other | [in] Another object |
XnBool xn::NodeWrapper::operator== | ( | const NodeWrapper & | other | ) | [inline] |
Checks if two node wrappers point to the same object.
other | [in] Another object |
XnStatus xn::NodeWrapper::Ref | ( | ) | [inline] |
void xn::NodeWrapper::Release | ( | ) | [inline] |
Unreference a production node, decreasing its reference count by 1. If the reference count reaches zero, the node will be destroyed.
For full details and usage, see xnProductionNodeReleasevoid xn::NodeWrapper::SetHandle | ( | XnNodeHandle | hNode | ) | [inline] |
Replaces the object being pointed.
void xn::NodeWrapper::Unref | ( | ) | [inline] |
friend class Context [friend] |
XnNodeHandle xn::NodeWrapper::m_hNode [protected] |