void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d)) { LogError("owner is not initialized. Add Action \"newPlot2d\"."); return; } OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner); wrapped_owner.setPlotLineColor(new OpenCVForUnity.CoreModule.Scalar((double)_plotLineColor_v0.Value, (double)_plotLineColor_v1.Value, (double)_plotLineColor_v2.Value, (double)_plotLineColor_v3.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d)) { LogError("owner is not initialized. Add Action \"newPlot2d\"."); return; } OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner); if (!(_plotLineColor.Value is OpenCVForUnityPlayMakerActions.Scalar)) { LogError("_plotLineColor is not initialized. Add Action \"newScalar\"."); return; } OpenCVForUnity.CoreModule.Scalar wrapped__plotLineColor = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(_plotLineColor); wrapped_owner.setPlotLineColor(wrapped__plotLineColor); }