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

Method SetViewAngle

Samples/NiSampleExtensionModule/SampleRotatingDevice.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40XnStatus SampleRotatingDevice::SetViewAngle(XnDouble dAngle)
41{
42 if (dAngle < 0 || dAngle > 3.14)
43 {
44 return XN_STATUS_BAD_PARAM;
45 }
46
47 m_dAngle = dAngle;
48
49 m_angleEvent.Raise();
50
51 return XN_STATUS_OK;
52}
53
54XnDouble SampleRotatingDevice::GetViewAngle()
55{

Callers 2

mainFunction · 0.45
xnSetViewAngleFunction · 0.45

Calls 1

RaiseMethod · 0.45

Tested by

no test coverage detected