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

Function xnXmlReadBoundingBox3D

Source/OpenNI/XnXmlScriptNode.cpp:108–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108XnStatus xnXmlReadBoundingBox3D(const TiXmlElement* pElem, XnBoundingBox3D* pBox)
109{
110 XnStatus nRetVal = XN_STATUS_OK;
111
112 const TiXmlElement* pMin;
113 nRetVal = xnXmlGetChildElement(pElem, "Min", &pMin);
114 XN_IS_STATUS_OK(nRetVal);
115
116 nRetVal = xnXmlReadVecotr3D(pMin, &pBox->LeftBottomNear);
117 XN_IS_STATUS_OK(nRetVal);
118
119 const TiXmlElement* pMax;
120 nRetVal = xnXmlGetChildElement(pElem, "Max", &pMax);
121 XN_IS_STATUS_OK(nRetVal);
122
123 nRetVal = xnXmlReadVecotr3D(pMax, &pBox->RightTopFar);
124 XN_IS_STATUS_OK(nRetVal);
125
126 return (XN_STATUS_OK);
127}
128
129XnStatus xnXmlReadUserPosition(const TiXmlElement* pOpcode, XnInt* pnIndex, XnBoundingBox3D* pUserPosition)
130{

Callers 1

xnXmlReadUserPositionFunction · 0.85

Calls 2

xnXmlGetChildElementFunction · 0.85
xnXmlReadVecotr3DFunction · 0.85

Tested by

no test coverage detected