コード例 #1
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            SimpleShape simpleShape = (SimpleShape)objectProvider.GetObject();

            m.Add(VisualizerHelper.AssertColor(simpleShape.DebugList));

            form.ShowDialog(windowService);
        }
コード例 #2
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            ICurve2D gc2d = (ICurve2D)objectProvider.GetObject();

            m.Add(VisualizerHelper.AssertColor(gc2d.MakeGeoObject(Plane.XYPlane)));

            form.ShowDialog(windowService);
        }
コード例 #3
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            IGeoObjectImpl go = (IGeoObjectImpl)objectProvider.GetObject();

            m.Add(VisualizerHelper.AssertColor(go));

            form.ShowDialog(windowService);
        }
コード例 #4
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            GeoPoint p   = (GeoPoint)objectProvider.GetObject();
            Point    pnt = Point.Construct();

            pnt.Location = p;
            pnt.Symbol   = PointSymbol.Cross;
            VisualizerHelper.AssertColor(pnt);
            m.Add(pnt);

            form.ShowDialog(windowService);
        }
コード例 #5
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            GeoObjectList list = (GeoObjectList)objectProvider.GetObject();

            for (int i = 0; i < list.Count; ++i)
            {
                IntegerProperty ip = new IntegerProperty(i, "Debug.Hint");
                list[i].UserData.Add("ListIndex", ip);
                m.Add(VisualizerHelper.AssertColor(list[i]));
            }
            m.Add(list);

            form.ShowDialog(windowService);
        }
コード例 #6
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            IDebugForm form = CF.DebugForm;
            Model      m    = form.Model;

            Border bdr = (Border)objectProvider.GetObject();

            for (int i = 0; i < bdr.DebugList.Count; ++i)
            {
                IGeoObject      toAdd = bdr.DebugList[i];
                IntegerProperty ip    = new IntegerProperty(i, "Debug.Hint");
                toAdd.UserData.Add("Debug", ip);
                VisualizerHelper.AssertColor(toAdd);
                m.Add(toAdd);
            }

            form.ShowDialog(windowService);
        }