#include <XnCppWrapper.h>
Public Member Functions | |
Query () | |
Query (XnNodeQuery *pNodeQuery) | |
~Query () | |
const XnNodeQuery * | GetUnderlyingObject () const |
XnNodeQuery * | GetUnderlyingObject () |
XnStatus | SetVendor (const XnChar *strVendor) |
XnStatus | SetName (const XnChar *strName) |
XnStatus | SetMinVersion (const XnVersion &minVersion) |
XnStatus | SetMinVersion (const Version &minVersion) |
XnStatus | SetMaxVersion (const XnVersion &maxVersion) |
XnStatus | SetMaxVersion (const Version &maxVersion) |
XnStatus | AddSupportedCapability (const XnChar *strNeededCapability) |
XnStatus | AddSupportedMapOutputMode (const XnMapOutputMode &MapOutputMode) |
XnStatus | SetSupportedMinUserPositions (const XnUInt32 nCount) |
XnStatus | SetExistingNodeOnly (XnBool bExistingNode) |
XnStatus | AddNeededNode (const XnChar *strInstanceName) |
XnStatus | SetCreationInfo (const XnChar *strCreationInfo) |
Purpose: Represents a query, containing filters regarding node info objects. Note that the relation between the filters is an AND relation.
Usage: Instantiate a Query object and then use the provided methods to set up the filter conditions.
Remarks: The Query class provides a mechanism for searching and returning NodeInfo objects from a list while filtering them according to a filter argument. The relation between the filters is an AND relationship.
The mechanism works by instantiating a Query object and then using the provided methods to set up the filter conditions. The Query object is then used by a number of methods that search for nodes, e.g., the Create() method.
xn::Query::Query | ( | ) | [inline] |
xn::Query::Query | ( | XnNodeQuery * | pNodeQuery | ) | [inline] |
xn::Query::~Query | ( | ) | [inline] |
XnStatus xn::Query::AddNeededNode | ( | const XnChar * | strInstanceName | ) | [inline] |
Sets in the Query object that a specified node must be a dependant of the named node type.
[in] | strInstanceName | Name of the needed node. |
XnStatus xn::Query::AddSupportedCapability | ( | const XnChar * | strNeededCapability | ) | [inline] |
Sets in the Query object a capability that the Node Alternative must support.
[in] | strNeededCapability | Name of the capability that the Node Alternative must support. |
Remarks
Note that for checking if a capability is supported, the node must be created if it's not an already existing node. This operation might take a bit longer than usual.
XnStatus xn::Query::AddSupportedMapOutputMode | ( | const XnMapOutputMode & | MapOutputMode | ) | [inline] |
Sets in the Query object a MapOutput mode that the Node Alternative must support.
[in] | MapOutputMode | Map output mode. Each field of the mode can be set to (-1), meaning results will not be filtered by this field. |
XnNodeQuery* xn::Query::GetUnderlyingObject | ( | ) | [inline] |
const XnNodeQuery* xn::Query::GetUnderlyingObject | ( | ) | const [inline] |
Gets the underlying C object
XnStatus xn::Query::SetCreationInfo | ( | const XnChar * | strCreationInfo | ) | [inline] |
Sets the creation information field of the Query object. This relates to the creation information of the xn::NodeInfo class.
[in] | strCreationInfo | Creation information to set in the Query object. |
XnStatus xn::Query::SetExistingNodeOnly | ( | XnBool | bExistingNode | ) | [inline] |
Sets in the Query object that the query will return only existing nodes, i.e., nodes that have been created, in other words their Create()
method has been called.
[in] | bExistingNode | TRUE to return only existing nodes, FALSE otherwise. |
Remarks
Note that there are many ways to create nodes, not just by their Create() method.
Sets in the Query object the maximum required version allowed for the node alternative.
Sets in the Query object the maximum required version allowed for the node alternative.
Sets in the Query object the minimum required version allowed for the Node Alternative.
Sets in the Query object the minimum required version allowed for the Node Alternative.
XnStatus xn::Query::SetName | ( | const XnChar * | strName | ) | [inline] |
Sets in the Query object the implementation name to search for. The same vendor might have more than one implementation, for example, two DepthGenerators "SensorV2" and "EEDepthGenerator". This is not the same as the instance name.
[in] | strName | Implementation name. |
XnStatus xn::Query::SetSupportedMinUserPositions | ( | const XnUInt32 | nCount | ) | [inline] |
XnStatus xn::Query::SetVendor | ( | const XnChar * | strVendor | ) | [inline] |
Sets in the Query object the vendor name to search for.
[in] | strVendor | Vendor Name. |