⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profile.cs

📁 剖面生成器
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using SuperMapLib;
//using DevComponents.DotNetBar;

namespace ProfileCtrl
{
	/// <summary>
	/// 剖面窗体类
	/// </summary>
	public class Profile : System.Windows.Forms.Form
	{
		#region 变量及窗体设计
		private AxSuperMapLib.AxSuperMap superMap;
		private AxSuperTopoLib.AxSuperTopo superTopo;
		private AxSuperMapLib.AxSuperWorkspace superWorkspace;
		private soFillStyleLib objFill;
		private bool isSum = true;				//默认为概化后剖面图
		private ArrayList arrList;				//存放钻孔统一编号
		private int zkCount;					//参予生成剖面图的钻孔数
		private string caption="剖面图";		//生成的钻孔剖面图名称	
		private Bore[] bore;					//钻孔
		private float scaleX,scaleY;//横、纵比例因子
		private float scaleT = 0.005f;			//文本比例因子
		private float space=500;	
		private ListView listView;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ToolBarButton bNew;
		private System.Windows.Forms.ToolBarButton bSave;
		private System.Windows.Forms.ToolBarButton bClose;
		private System.Windows.Forms.ToolBarButton bProperty;
		private System.Windows.Forms.ToolBarButton bSelect;
		private System.Windows.Forms.ToolBarButton bZoomIn;
		private System.Windows.Forms.ToolBarButton bZoomOut;
		private System.Windows.Forms.ToolBarButton bFree;
		private System.Windows.Forms.ToolBarButton bPan;
		private System.Windows.Forms.ToolBarButton bSmoothA;
		private System.Windows.Forms.ToolBarButton bTopo;
		private System.Windows.Forms.ToolBarButton bRegionJoin;
		private System.Windows.Forms.ToolBarButton bSmoothC;
		private System.Windows.Forms.ToolBarButton bLegend;
		private System.Windows.Forms.ToolBarButton bEditLine;
		private System.Windows.Forms.ToolBarButton bDel;
		private System.Windows.Forms.ToolBarButton bCurver;
		private System.Windows.Forms.ToolBarButton bPolyLine;
		private System.Windows.Forms.ToolBarButton bEditV;
		private System.Windows.Forms.ToolBarButton bAddV;
		private System.Windows.Forms.ToolBarButton bLineJoin;
		private System.Windows.Forms.StatusBar statusBar1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel1;
		private System.Windows.Forms.ToolBarButton bAll;
		private System.Windows.Forms.ImageList imageList;
		private System.ComponentModel.IContainer components;

		public Profile()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			listView = new ListView();
			listView.Dock = DockStyle.Fill;
			listView.View = View.Details;
			listView.GridLines = true;
			listView.Columns.Add("名称",80,HorizontalAlignment.Left);
			listView.Columns.Add("属性值",100,HorizontalAlignment.Left);
//			((DockContainerItem)barManager.Bars["dockProperty"].Items["barProperty"]).Control = listView;
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Profile));
			this.superMap = new AxSuperMapLib.AxSuperMap();
			this.superTopo = new AxSuperTopoLib.AxSuperTopo();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.bNew = new System.Windows.Forms.ToolBarButton();
			this.bSave = new System.Windows.Forms.ToolBarButton();
			this.bClose = new System.Windows.Forms.ToolBarButton();
			this.bProperty = new System.Windows.Forms.ToolBarButton();
			this.bSelect = new System.Windows.Forms.ToolBarButton();
			this.bZoomIn = new System.Windows.Forms.ToolBarButton();
			this.bZoomOut = new System.Windows.Forms.ToolBarButton();
			this.bFree = new System.Windows.Forms.ToolBarButton();
			this.bAll = new System.Windows.Forms.ToolBarButton();
			this.bPan = new System.Windows.Forms.ToolBarButton();
			this.bSmoothA = new System.Windows.Forms.ToolBarButton();
			this.bTopo = new System.Windows.Forms.ToolBarButton();
			this.bRegionJoin = new System.Windows.Forms.ToolBarButton();
			this.bSmoothC = new System.Windows.Forms.ToolBarButton();
			this.bLegend = new System.Windows.Forms.ToolBarButton();
			this.bEditLine = new System.Windows.Forms.ToolBarButton();
			this.bDel = new System.Windows.Forms.ToolBarButton();
			this.bCurver = new System.Windows.Forms.ToolBarButton();
			this.bPolyLine = new System.Windows.Forms.ToolBarButton();
			this.bEditV = new System.Windows.Forms.ToolBarButton();
			this.bAddV = new System.Windows.Forms.ToolBarButton();
			this.bLineJoin = new System.Windows.Forms.ToolBarButton();
			this.imageList = new System.Windows.Forms.ImageList(this.components);
			this.statusBar1 = new System.Windows.Forms.StatusBar();
			this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
			((System.ComponentModel.ISupportInitialize)(this.superMap)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.superTopo)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
			this.SuspendLayout();
			// 
			// superMap
			// 
			this.superMap.Enabled = true;
			this.superMap.Location = new System.Drawing.Point(8, 64);
			this.superMap.Name = "superMap";
			this.superMap.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("superMap.OcxState")));
			this.superMap.Size = new System.Drawing.Size(632, 224);
			this.superMap.TabIndex = 2;
			this.superMap.GeometrySelected += new AxSuperMapLib._DSuperMapEvents_GeometrySelectedEventHandler(this.superMap_GeometrySelected);
			this.superMap.DblClick += new System.EventHandler(this.superMap_DblClick);
			this.superMap.MouseUpEvent += new AxSuperMapLib._DSuperMapEvents_MouseUpEventHandler(this.superMap_MouseUpEvent);
			// 
			// superTopo
			// 
			this.superTopo.Enabled = true;
			this.superTopo.Location = new System.Drawing.Point(224, 152);
			this.superTopo.Name = "superTopo";
			this.superTopo.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("superTopo.OcxState")));
			this.superTopo.Size = new System.Drawing.Size(32, 32);
			this.superTopo.TabIndex = 3;
			// 
			// toolBar1
			// 
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.bNew,
																						this.bSave,
																						this.bClose,
																						this.bProperty,
																						this.bSelect,
																						this.bZoomIn,
																						this.bZoomOut,
																						this.bFree,
																						this.bAll,
																						this.bPan,
																						this.bSmoothA,
																						this.bTopo,
																						this.bRegionJoin,
																						this.bSmoothC,
																						this.bLegend,
																						this.bEditLine,
																						this.bDel,
																						this.bCurver,
																						this.bPolyLine,
																						this.bEditV,
																						this.bAddV,
																						this.bLineJoin});
			this.toolBar1.ButtonSize = new System.Drawing.Size(28, 25);
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(688, 31);
			this.toolBar1.TabIndex = 4;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			this.toolBar1.MouseEnter += new System.EventHandler(this.toolBar1_MouseEnter);
			// 
			// bNew
			// 
			this.bNew.ImageIndex = 0;
			this.bNew.Text = "bNew";
			this.bNew.ToolTipText = "新建";
			// 
			// bSave
			// 
			this.bSave.ImageIndex = 1;
			this.bSave.Text = "bSave";
			this.bSave.ToolTipText = "保存";
			// 
			// bClose
			// 
			this.bClose.ImageIndex = 2;
			this.bClose.Text = "bClose";
			this.bClose.ToolTipText = "关闭";
			// 
			// bProperty
			// 
			this.bProperty.ImageIndex = 3;
			this.bProperty.Text = "bProperty";
			this.bProperty.ToolTipText = "查看属性";
			// 
			// bSelect
			// 
			this.bSelect.ImageIndex = 4;
			this.bSelect.Text = "bSelect";
			this.bSelect.ToolTipText = "选择";
			// 
			// bZoomIn
			// 
			this.bZoomIn.ImageIndex = 5;
			this.bZoomIn.Text = "bZoomIn";
			this.bZoomIn.ToolTipText = "放大";
			// 
			// bZoomOut
			// 
			this.bZoomOut.ImageIndex = 6;
			this.bZoomOut.Text = "bZoomOut";
			this.bZoomOut.ToolTipText = "缩小";
			// 
			// bFree
			// 
			this.bFree.ImageIndex = 7;
			this.bFree.Text = "bFree";
			this.bFree.ToolTipText = "自由缩放";
			// 
			// bAll
			// 
			this.bAll.ImageIndex = 9;
			this.bAll.Text = "bAll";
			this.bAll.ToolTipText = "全幅显示";
			// 
			// bPan
			// 
			this.bPan.ImageIndex = 8;
			this.bPan.Text = "bPan";
			this.bPan.ToolTipText = "漫游";
			// 
			// bSmoothA
			// 
			this.bSmoothA.ImageIndex = 18;
			this.bSmoothA.Text = "bSmoothA";
			this.bSmoothA.ToolTipText = "平滑";
			// 
			// bTopo
			// 
			this.bTopo.ImageIndex = 20;
			this.bTopo.Text = "bTopo";
			this.bTopo.ToolTipText = "拓扑";
			// 
			// bRegionJoin
			// 
			this.bRegionJoin.ImageIndex = 17;
			this.bRegionJoin.Text = "bRegionJoin";
			this.bRegionJoin.ToolTipText = "合并区域";
			// 
			// bSmoothC
			// 
			this.bSmoothC.ImageIndex = 21;
			this.bSmoothC.Text = "bSmoothC";
			this.bSmoothC.ToolTipText = "平滑";
			// 
			// bLegend
			// 
			this.bLegend.ImageIndex = 19;
			this.bLegend.Text = "bLegend";
			this.bLegend.ToolTipText = "图例";
			// 
			// bEditLine
			// 
			this.bEditLine.ImageIndex = 16;
			this.bEditLine.Text = "bEditLine";
			this.bEditLine.ToolTipText = "置线可编辑";
			// 
			// bDel
			// 
			this.bDel.ImageIndex = 15;
			this.bDel.Text = "bDel";
			this.bDel.ToolTipText = "删除";
			// 
			// bCurver
			// 
			this.bCurver.ImageIndex = 11;
			this.bCurver.Text = "bCurver";
			this.bCurver.ToolTipText = "画曲线";
			// 
			// bPolyLine
			// 
			this.bPolyLine.ImageIndex = 11;
			this.bPolyLine.Text = "bPolyLine";
			this.bPolyLine.ToolTipText = "画折线";
			// 
			// bEditV
			// 
			this.bEditV.ImageIndex = 13;
			this.bEditV.Text = "bEditV";
			this.bEditV.ToolTipText = "编辑节点";
			// 
			// bAddV
			// 
			this.bAddV.ImageIndex = 14;
			this.bAddV.Text = "bAddV";
			this.bAddV.ToolTipText = "增加节点";
			// 
			// bLineJoin
			// 
			this.bLineJoin.ImageIndex = 22;
			this.bLineJoin.Text = "bLineJoin";
			this.bLineJoin.ToolTipText = "合并线";
			// 
			// imageList
			// 
			this.imageList.ImageSize = new System.Drawing.Size(17, 17);
			this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// statusBar1
			// 
			this.statusBar1.Location = new System.Drawing.Point(0, 309);
			this.statusBar1.Name = "statusBar1";
			this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																						  this.statusBarPanel1});
			this.statusBar1.Size = new System.Drawing.Size(688, 32);
			this.statusBar1.TabIndex = 5;
			this.statusBar1.Text = "statusBar1";
			// 
			// statusBarPanel1
			// 
			this.statusBarPanel1.Text = "statusBarPanel1";
			// 
			// Profile
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(688, 341);
			this.Controls.Add(this.statusBar1);
			this.Controls.Add(this.toolBar1);
			this.Controls.Add(this.superTopo);
			this.Controls.Add(this.superMap);
			this.Name = "Profile";
			this.Text = "Profile";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.Profile_Closing);
			((System.ComponentModel.ISupportInitialize)(this.superMap)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.superTopo)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -