void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost))
            {
                LogError("owner is not initialized. Add Action \"newBoost\".");
                return;
            }
            OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner);

            wrapped_owner.setWeightTrimRate((float)val.Value);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost))
            {
                LogError("owner is not initialized. Add Action \"newBoost\".");
                return;
            }
            OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner);

            storeResult.Value = wrapped_owner.getBoostType();
        }
Example #3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost))
            {
                LogError("owner is not initialized. Add Action \"newBoost\".");
                return;
            }
            OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Double();
            }
            ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.getWeightTrimRate();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost))
            {
                LogError("owner is not initialized. Add Action \"newBoost\".");
                return;
            }
            OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner);

            if (!(val.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("val is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped_val = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(val);

            wrapped_owner.setWeightTrimRate(wrapped_val);
        }
 public Boost(OpenCVForUnity.MlModule.Boost nativeObj) : base(nativeObj)
 {
 }