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

Method SetIntProperty

Source/Modules/nimMockNodes/MockProductionNode.cpp:61–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61XnStatus MockProductionNode::SetIntProperty(const XnChar* strName, XnUInt64 nValue)
62{
63 if (strcmp(strName, XN_CAPABILITY_EXTENDED_SERIALIZATION) == 0)
64 {
65 m_bExtendedSerializationCap = (XnBool)nValue;
66 }
67 else if (strcmp(strName, XN_PROP_STATE_READY) == 0)
68 {
69 return OnStateReady();
70 }
71 else
72 {
73 XnStatus nRetVal = m_intProps.Set(strName, nValue);
74 XN_IS_STATUS_OK(nRetVal);
75
76 if (m_pNotifications != NULL)
77 {
78 nRetVal = m_pNotifications->OnNodeIntPropChanged(m_pNotificationsCookie, m_strName, strName, nValue);
79 XN_IS_STATUS_OK(nRetVal);
80 }
81 }
82
83 return XN_STATUS_OK;
84}
85
86XnStatus MockProductionNode::SetRealProperty(const XnChar* strName, XnDouble dValue)
87{

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
OnNodeIntPropChangedMethod · 0.45

Tested by

no test coverage detected