Example #1
0
        public void DoExecuteWork(SharedObjects shared, Vector start, Vector vec, RgbaColor rgba, string str, double scale, bool show, double width, KOSDelegate colorUpdater, KOSDelegate vecUpdater, KOSDelegate startUpdater)
        {
            var vRend = new VectorRenderer(shared.UpdateHandler, shared)
            {
                Vector = vec,
                Start  = start,
                Color  = rgba,
                Scale  = scale,
                Width  = width
            };

            vRend.SetLabel(str);
            vRend.SetShow(show);

            if (colorUpdater != null)
            {
                vRend.SetSuffix("COLORUPDATER", colorUpdater);
            }

            if (vecUpdater != null)
            {
                vRend.SetSuffix("VECUPDATER", vecUpdater);
            }

            if (startUpdater != null)
            {
                vRend.SetSuffix("STARTUPDATER", startUpdater);
            }

            ReturnValue = vRend;
        }