コード例 #1
0
        public override void OnCreate(object hook)
        {
            _context        = hook as IAppContext;
            base.m_caption  = "三点矩形工具";
            base.m_category = "Editor";
            base.m_bitmap   = Properties.Resources.icon_sketch_rectangle;
            m_cursor        = new Cursor(new MemoryStream(Resource.Digitise));
            base.m_name     = "Editor_Sketch_Rectangle2";
            base._key       = "Editor_Sketch_Rectangle2";
            base.m_toolTip  = "三点矩形工具";
            base._itemType  = RibbonItemType.Tool;
            this.simpleMarkerSymbol.Style   = esriSimpleMarkerStyle.esriSMSCircle;
            this.simpleMarkerSymbol.Size    = 8;
            this.simpleMarkerSymbol.Outline = true;
            this.simpleMarkerSymbol.Color   = ColorManage.GetRGBColor(0, 255, 255);

            simpleFillSymbol.Style   = esriSimpleFillStyle.esriSFSSolid;
            simpleFillSymbol.Color   = ColorManage.GetRGBColor(0, 255, 255);
            simpleFillSymbol.Outline = new SimpleLineSymbol()
            {
                Width = 1,
                Color = ColorManage.GetRGBColor(255, 0, 0)
            };
            simpleLineSymbol.Style = esriSimpleLineStyle.esriSLSSolid;
            simpleLineSymbol.Width = 1;
            simpleLineSymbol.Color = ColorManage.GetRGBColor(255, 0, 0);
        }
コード例 #2
0
ファイル: CmdRotateFeature.cs プロジェクト: secondii/Yutai
        public override void OnCreate(object hook)
        {
            _context        = hook as IAppContext;
            this.m_caption  = "旋转要素";
            this.m_category = "编辑器";
            this.m_name     = "Edit_RotateFeature";
            this._key       = "Edit_RotateFeature";
            this.m_message  = "旋转要素";
            this.m_toolTip  = "旋转要素";
            this.m_bitmap   = Properties.Resources.icon_edit_rotate;
            this.m_cursor   = new System.Windows.Forms.Cursor(new MemoryStream(Resource.Digitise));
            this.bool_2     = false;

            this.cursor_0 =
                new System.Windows.Forms.Cursor(
                    base.GetType()
                    .Assembly.GetManifestResourceStream("Yutai.Plugins.Editor.Resources.Cursor.RotateFeature.cur"));

            this.isimpleMarkerSymbol_0.Style   = esriSimpleMarkerStyle.esriSMSCircle;
            this.isimpleMarkerSymbol_0.Size    = 8.0;
            this.isimpleMarkerSymbol_0.Outline = true;
            this.isimpleMarkerSymbol_0.Color   = ColorManage.GetRGBColor(0, 255, 255);
            this.cursor_1 =
                new System.Windows.Forms.Cursor(
                    base.GetType()
                    .Assembly.GetManifestResourceStream("Yutai.Plugins.Editor.Resources.Cursor.VertexEdit.cur"));
            this.m_cursor = this.cursor_0;

            DisplayStyleYT                   = DisplayStyleYT.Image;
            base.TextImageRelationYT         = TextImageRelationYT.ImageAboveText;
            base.ToolStripItemImageScalingYT = ToolStripItemImageScalingYT.None;
            _itemType         = RibbonItemType.Button;
            this.snapHelper_0 = new SnapHelper(_context.FocusMap as IActiveView,
                                               _context.Config.EngineSnapEnvironment);
        }
コード例 #3
0
 public static void Init()
 {
     SketchToolAssist.SysGrants      = new SysGrants(AppConfigInfo.UserID);
     SketchToolAssist.LineType       = enumLineType.LTLine;
     SketchToolAssist.m_pSym.Style   = esriSimpleMarkerStyle.esriSMSCircle;
     SketchToolAssist.m_pSym.Size    = 8;
     SketchToolAssist.m_pSym.Outline = true;
     SketchToolAssist.m_pSym.Color   = ColorManage.GetRGBColor(0, 255, 255);
 }
コード例 #4
0
 public override void OnCreate(object hook)
 {
     _context        = hook as IAppContext;
     base.m_caption  = "沿线建点工具";
     base.m_category = "Editor";
     base.m_bitmap   = Properties.Resources.icon_along_line;
     m_cursor        = new Cursor(new MemoryStream(Resource.Digitise));
     base.m_name     = "Editor_Sketch_AlongLinePoint";
     base._key       = "Editor_Sketch_AlongLinePoint";
     base.m_toolTip  = "沿线建点工具";
     base._itemType  = RibbonItemType.Tool;
     this.simpleMarkerSymbol.Style   = esriSimpleMarkerStyle.esriSMSCircle;
     this.simpleMarkerSymbol.Size    = 8;
     this.simpleMarkerSymbol.Outline = true;
     this.simpleMarkerSymbol.Color   = ColorManage.GetRGBColor(0, 255, 255);
 }
コード例 #5
0
ファイル: SketchShareEx.cs プロジェクト: secondii/Yutai
 private static void old_acctor_mc()
 {
     SketchShareEx.m_psnaper            = new PointSnapper();
     SketchShareEx.m_CurrentStep        = 0;
     SketchShareEx.m_SysGrants          = new SysGrants(AppConfigInfo.UserID);
     SketchShareEx.m_pSketchCommandFolw = new SketchCommandFlow();
     SketchShareEx.IsFixLength          = false;
     SketchShareEx.IsFixDirection       = false;
     SketchShareEx.FixLength            = 0;
     SketchShareEx.FixDirection         = 0;
     SketchShareEx.StartPoint           = null;
     SketchShareEx.LastPoint            = null;
     SketchShareEx.IsCreateParrel       = false;
     SketchShareEx.m_offset             = 1;
     SketchShareEx.ConstructOffset      = 5;
     SketchShareEx.PointCount           = 0;
     SketchShareEx.m_pAnchorPoint       = null;
     SketchShareEx.m_bInUse             = false;
     SketchShareEx.m_pPointCollection   = null;
     SketchShareEx.m_pLastPoint1        = null;
     SketchShareEx.m_pEndPoint1         = null;
     SketchShareEx.m_bShowVlaue         = true;
     SketchShareEx.m_totalLength        = 0;
     SketchShareEx.m_bSnapSuccessful    = false;
     SketchShareEx.m_pSym             = new SimpleMarkerSymbol();
     SketchShareEx.m_pPoint           = null;
     SketchShareEx.m_HasLicense       = false;
     SketchShareEx.m_LastPartGeometry = null;
     SketchShareEx.m_bInStreaming     = false;
     SketchShareEx.m_MinDis           = 0;
     SketchShareEx.m_HasLicense       = EditorLicenseProviderCheck.Check();
     SketchShareEx.m_pSym.Style       = esriSimpleMarkerStyle.esriSMSCircle;
     SketchShareEx.m_pSym.Size        = 8;
     SketchShareEx.m_pSym.Outline     = true;
     SketchShareEx.m_pSym.Color       = ColorManage.GetRGBColor(0, 255, 255);
 }