Beispiel #1
0
        /// <summary>
        /// Overrides <see cref="CADability.Actions.ConstructAction.OnSetAction ()"/>
        /// </summary>
        public override void OnSetAction()
        {
            // die Titel Ids müssen sich unterscheiden, auch wg. der Hilfe
            string resSubId = "";

            switch (mode)
            {
            case HatchMode.simple:
                resSubId = "InnerPoint";
                break;

            case HatchMode.hull:
                resSubId = "Hull";
                break;

            case HatchMode.excludeHoles:
                resSubId = "ExcludeHoles";
                break;
            }
            base.TitleId = "Constr.Hatch." + resSubId;
            ConstructAction.GeoPointInput gpi = new GeoPointInput("Constr.Hatch.InnerPoint.Point");
            gpi.SetGeoPointEvent += new CADability.Actions.ConstructAction.GeoPointInput.SetGeoPointDelegate(OnPoint);
            gpi.MouseClickEvent  += new MouseClickDelegate(OnMouseClick);
            base.UseFilter        = true;
            base.ShowAttributes   = true;
            base.ShowActiveObject = false;
            base.ActiveObject     = Hatch.Construct();
            base.SetInput(gpi);
            base.OnSetAction();
        }