31 ConfigureBodyTracking::SubClassRegistry
45 std::stringstream warn;
47 AzureKinectPointCloudProviderInterfacePrx ak = getAzureKinectPointCloudProvider();
49 if (in.isMaxDepthInMillimetersSet())
51 ak->setMaxDepthBodyTracking(in.getMaxDepthInMillimeters());
54 const bool isMinSet = in.isWidthMinPixelSet();
55 const bool isMaxSet = in.isWidthMinPixelSet();
56 if (isMinSet and isMaxSet)
58 ak->setWidthBodyTracking(in.getWidthMinPixel(), in.getWidthMaxPixel());
60 else if (isMinSet != isMaxSet)
62 if (isMinSet and not isMaxSet)
64 warn <<
"WidthMinPixel is set, but WidthMaxPixel is not.";
70 warn <<
"WidthMaxPixel is set, but WidthMinPixel is not.";
72 warn <<
"\nThese parameters only have an effect if set together.";
75 if (not warn.str().empty())