MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnXmlReadCropping

Function xnXmlReadCropping

Source/OpenNI/XnXmlScriptNode.cpp:66–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66XnStatus 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
88XnStatus xnXmlReadVecotr3D(const TiXmlElement* pOpcode, XnVector3D* pVector)
89{

Callers 1

xnConfigureCroppingFunction · 0.85

Calls 2

xnXmlReadBoolAttributeFunction · 0.85
xnXmlReadUInt16AttributeFunction · 0.85

Tested by

no test coverage detected