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

Method CanFrameSyncWith

Source/Modules/nimMockNodes/MockGenerator.cpp:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380XnBool MockGenerator::CanFrameSyncWith(xn::ProductionNode& other)
381{
382 if (!m_bFrameSyncCap)
383 {
384 return FALSE;
385 }
386
387 if (!other.IsValid())
388 {
389 return XN_STATUS_BAD_PARAM;
390 }
391
392 return (strcmp(other.GetName(), m_strFrameSyncWith) == 0);
393}
394
395XnStatus MockGenerator::FrameSyncWith(xn::ProductionNode& other)
396{

Callers 2

xnCanFrameSyncWithFunction · 0.45
ConfigureGeneratorsFunction · 0.45

Calls 2

GetNameMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected