| 64 | } |
| 65 | |
| 66 | XnStatus xnXmlReadCropping(const TiXmlElement* pOpcode, XnCropping* pCropping) |
| 67 | { |
| 68 | XnStatus nRetVal = XN_STATUS_OK; |
| 69 | |
| 70 | nRetVal = xnXmlReadBoolAttribute(pOpcode, "enabled", &pCropping->bEnabled); |
| 71 | XN_IS_STATUS_OK(nRetVal); |
| 72 | |
| 73 | nRetVal = xnXmlReadUInt16Attribute(pOpcode, "xOffset", &pCropping->nXOffset); |
| 74 | XN_IS_STATUS_OK(nRetVal); |
| 75 | |
| 76 | nRetVal = xnXmlReadUInt16Attribute(pOpcode, "yOffset", &pCropping->nYOffset); |
| 77 | XN_IS_STATUS_OK(nRetVal); |
| 78 | |
| 79 | nRetVal = xnXmlReadUInt16Attribute(pOpcode, "xSize", &pCropping->nXSize); |
| 80 | XN_IS_STATUS_OK(nRetVal); |
| 81 | |
| 82 | nRetVal = xnXmlReadUInt16Attribute(pOpcode, "ySize", &pCropping->nYSize); |
| 83 | XN_IS_STATUS_OK(nRetVal); |
| 84 | |
| 85 | return (XN_STATUS_OK); |
| 86 | } |
| 87 | |
| 88 | XnStatus xnXmlReadVecotr3D(const TiXmlElement* pOpcode, XnVector3D* pVector) |
| 89 | { |
no test coverage detected