| 301 | } |
| 302 | |
| 303 | XnStatus xnConfigureAlternativeViewPoint(XnNodeHandle hNode, const TiXmlElement* pOpcode) |
| 304 | { |
| 305 | XnStatus nRetVal = XN_STATUS_OK; |
| 306 | |
| 307 | if (!xnIsCapabilitySupported(hNode, XN_CAPABILITY_ALTERNATIVE_VIEW_POINT)) |
| 308 | { |
| 309 | return XN_STATUS_INVALID_OPERATION; |
| 310 | } |
| 311 | |
| 312 | XnContext* pContext = hNode->pContext; |
| 313 | XnNodeHandle hOther = NULL; |
| 314 | |
| 315 | nRetVal = xnGetRefNodeHandleByName(pContext, pOpcode->GetText(), &hOther); |
| 316 | XN_IS_STATUS_OK(nRetVal); |
| 317 | |
| 318 | nRetVal = xnSetViewPoint(hNode, hOther); |
| 319 | xnProductionNodeRelease(hOther); |
| 320 | XN_IS_STATUS_OK(nRetVal); |
| 321 | |
| 322 | return (XN_STATUS_OK); |
| 323 | } |
| 324 | |
| 325 | XnStatus xnConfigureRecorderDestination(XnNodeHandle hNode, const TiXmlElement* pOpcode) |
| 326 | { |
no test coverage detected