void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Rect2d)) { LogError("owner is not initialized. Add Action \"newRect2d\"."); return; } OpenCVForUnity.CoreModule.Rect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(owner); if (!(width.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("width is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_width = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(width); if (!(height.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("height is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_height = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(height); wrapped_owner.inflate(wrapped_width, wrapped_height); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Rect2d)) { LogError("owner is not initialized. Add Action \"newRect2d\"."); return; } OpenCVForUnity.CoreModule.Rect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(owner); wrapped_owner.inflate((float)width.Value, (float)height.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Rect2d)) { LogError("owner is not initialized. Add Action \"newRect2d\"."); return; } OpenCVForUnity.CoreModule.Rect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(owner); if (!(size.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("size is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_size = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(size); wrapped_owner.inflate(wrapped_size); }