diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/TreeUtils.cs b/TreeUtils.cs
index d394a2d..dde986c 100644
--- a/TreeUtils.cs
+++ b/TreeUtils.cs
@@ -180,16 +180,85 @@
{
managerLayerList.Add(tempNode.Nodes[i].Text);
}
- if (!managerLayerList.Contains(layer.Dataset.Caption))
+ if (managerLayerList.Contains(layer.Dataset.Caption)) return;
+ TreeNode node = new TreeNode();
+ node.Tag = layer;
+ node.Text = layer.Dataset.Caption;
+ node.ImageIndex = 0;
+ node.SelectedImageIndex = 0;
+ node.Checked = layer.Visible;
+ tempNode.Nodes.Insert(0, node);
+ tempNode.Expand();
+ }
+ ///
+ /// 创建features对应的树节点,并挂载到node下。标注管理树形图使用
+ ///
+ /// 父节点
+ /// 要素集合
+ public static void AddNodesMatchFeatures(TreeNode node, GSOFeatures features)
+ {
+ for (int i = 0; i < features.Length; i++)
{
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
- tempNode.Nodes.Insert(0, node);
- tempNode.Expand();
+ GSOFeature feature = features[i];
+ if (feature.Type == EnumFeatureType.FeatureFolder)
+ {
+ TreeNode tempnode = new TreeNode();
+ tempnode.Text = feature.Name;
+ tempnode.ImageIndex = 1;
+ tempnode.SelectedImageIndex = 1;
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature;
+ AddNodesMatchFeatures(tempnode, featureFolder.Features);
+ }
+ else
+ {
+ TreeNode tempnode = new TreeNode { Text = feature.Name };
+ if (feature.Geometry != null)
+ {
+ switch (feature.Geometry.Type)
+ {
+ case EnumGeometryType.GeoPoint3D:
+ case EnumGeometryType.GeoMarker:
+ tempnode.ImageIndex = 3;
+ tempnode.SelectedImageIndex = 3;
+ break;
+ case EnumGeometryType.GeoPolyline3D:
+ tempnode.ImageIndex = 4;
+ tempnode.SelectedImageIndex = 4;
+ break;
+ case EnumGeometryType.GeoPolygon3D:
+ tempnode.ImageIndex = 5;
+ tempnode.SelectedImageIndex = 5;
+ break;
+ case EnumGeometryType.GeoModel:
+ case EnumGeometryType.GeoEntity:
+ case EnumGeometryType.GeoGroupEntity:
+ case EnumGeometryType.GeoSphereEntity:
+ case EnumGeometryType.GeoBoxEntity:
+ case EnumGeometryType.GeoEllipsoidEntity:
+ case EnumGeometryType.GeoCylinderEntity:
+ case EnumGeometryType.GeoFrustumEntity:
+ case EnumGeometryType.GeoEllipCylinderEntity:
+ case EnumGeometryType.GeoEllipFrustumEntity:
+ case EnumGeometryType.GeoRangeEllipsoidEntity:
+ case EnumGeometryType.GeoRangeEllipCylinderEntity:
+ case EnumGeometryType.GeoRangeEllipFrustumEntity:
+ tempnode.ImageIndex = 6;
+ tempnode.SelectedImageIndex = 6;
+ break;
+ case EnumGeometryType.GeoGroundOverlay:
+ tempnode.ImageIndex = 7;
+ tempnode.SelectedImageIndex = 7;
+ break;
+ }
+ }
+
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ }
}
}
}
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/TreeUtils.cs b/TreeUtils.cs
index d394a2d..dde986c 100644
--- a/TreeUtils.cs
+++ b/TreeUtils.cs
@@ -180,16 +180,85 @@
{
managerLayerList.Add(tempNode.Nodes[i].Text);
}
- if (!managerLayerList.Contains(layer.Dataset.Caption))
+ if (managerLayerList.Contains(layer.Dataset.Caption)) return;
+ TreeNode node = new TreeNode();
+ node.Tag = layer;
+ node.Text = layer.Dataset.Caption;
+ node.ImageIndex = 0;
+ node.SelectedImageIndex = 0;
+ node.Checked = layer.Visible;
+ tempNode.Nodes.Insert(0, node);
+ tempNode.Expand();
+ }
+ ///
+ /// 创建features对应的树节点,并挂载到node下。标注管理树形图使用
+ ///
+ /// 父节点
+ /// 要素集合
+ public static void AddNodesMatchFeatures(TreeNode node, GSOFeatures features)
+ {
+ for (int i = 0; i < features.Length; i++)
{
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
- tempNode.Nodes.Insert(0, node);
- tempNode.Expand();
+ GSOFeature feature = features[i];
+ if (feature.Type == EnumFeatureType.FeatureFolder)
+ {
+ TreeNode tempnode = new TreeNode();
+ tempnode.Text = feature.Name;
+ tempnode.ImageIndex = 1;
+ tempnode.SelectedImageIndex = 1;
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature;
+ AddNodesMatchFeatures(tempnode, featureFolder.Features);
+ }
+ else
+ {
+ TreeNode tempnode = new TreeNode { Text = feature.Name };
+ if (feature.Geometry != null)
+ {
+ switch (feature.Geometry.Type)
+ {
+ case EnumGeometryType.GeoPoint3D:
+ case EnumGeometryType.GeoMarker:
+ tempnode.ImageIndex = 3;
+ tempnode.SelectedImageIndex = 3;
+ break;
+ case EnumGeometryType.GeoPolyline3D:
+ tempnode.ImageIndex = 4;
+ tempnode.SelectedImageIndex = 4;
+ break;
+ case EnumGeometryType.GeoPolygon3D:
+ tempnode.ImageIndex = 5;
+ tempnode.SelectedImageIndex = 5;
+ break;
+ case EnumGeometryType.GeoModel:
+ case EnumGeometryType.GeoEntity:
+ case EnumGeometryType.GeoGroupEntity:
+ case EnumGeometryType.GeoSphereEntity:
+ case EnumGeometryType.GeoBoxEntity:
+ case EnumGeometryType.GeoEllipsoidEntity:
+ case EnumGeometryType.GeoCylinderEntity:
+ case EnumGeometryType.GeoFrustumEntity:
+ case EnumGeometryType.GeoEllipCylinderEntity:
+ case EnumGeometryType.GeoEllipFrustumEntity:
+ case EnumGeometryType.GeoRangeEllipsoidEntity:
+ case EnumGeometryType.GeoRangeEllipCylinderEntity:
+ case EnumGeometryType.GeoRangeEllipFrustumEntity:
+ tempnode.ImageIndex = 6;
+ tempnode.SelectedImageIndex = 6;
+ break;
+ case EnumGeometryType.GeoGroundOverlay:
+ tempnode.ImageIndex = 7;
+ tempnode.SelectedImageIndex = 7;
+ break;
+ }
+ }
+
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ }
}
}
}
diff --git a/bin/x86/Debug/LocaLog.txt b/bin/x86/Debug/LocaLog.txt
index 60f5d1d..94fbaab 100644
--- a/bin/x86/Debug/LocaLog.txt
+++ b/bin/x86/Debug/LocaLog.txt
Binary files differ
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/TreeUtils.cs b/TreeUtils.cs
index d394a2d..dde986c 100644
--- a/TreeUtils.cs
+++ b/TreeUtils.cs
@@ -180,16 +180,85 @@
{
managerLayerList.Add(tempNode.Nodes[i].Text);
}
- if (!managerLayerList.Contains(layer.Dataset.Caption))
+ if (managerLayerList.Contains(layer.Dataset.Caption)) return;
+ TreeNode node = new TreeNode();
+ node.Tag = layer;
+ node.Text = layer.Dataset.Caption;
+ node.ImageIndex = 0;
+ node.SelectedImageIndex = 0;
+ node.Checked = layer.Visible;
+ tempNode.Nodes.Insert(0, node);
+ tempNode.Expand();
+ }
+ ///
+ /// 创建features对应的树节点,并挂载到node下。标注管理树形图使用
+ ///
+ /// 父节点
+ /// 要素集合
+ public static void AddNodesMatchFeatures(TreeNode node, GSOFeatures features)
+ {
+ for (int i = 0; i < features.Length; i++)
{
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
- tempNode.Nodes.Insert(0, node);
- tempNode.Expand();
+ GSOFeature feature = features[i];
+ if (feature.Type == EnumFeatureType.FeatureFolder)
+ {
+ TreeNode tempnode = new TreeNode();
+ tempnode.Text = feature.Name;
+ tempnode.ImageIndex = 1;
+ tempnode.SelectedImageIndex = 1;
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature;
+ AddNodesMatchFeatures(tempnode, featureFolder.Features);
+ }
+ else
+ {
+ TreeNode tempnode = new TreeNode { Text = feature.Name };
+ if (feature.Geometry != null)
+ {
+ switch (feature.Geometry.Type)
+ {
+ case EnumGeometryType.GeoPoint3D:
+ case EnumGeometryType.GeoMarker:
+ tempnode.ImageIndex = 3;
+ tempnode.SelectedImageIndex = 3;
+ break;
+ case EnumGeometryType.GeoPolyline3D:
+ tempnode.ImageIndex = 4;
+ tempnode.SelectedImageIndex = 4;
+ break;
+ case EnumGeometryType.GeoPolygon3D:
+ tempnode.ImageIndex = 5;
+ tempnode.SelectedImageIndex = 5;
+ break;
+ case EnumGeometryType.GeoModel:
+ case EnumGeometryType.GeoEntity:
+ case EnumGeometryType.GeoGroupEntity:
+ case EnumGeometryType.GeoSphereEntity:
+ case EnumGeometryType.GeoBoxEntity:
+ case EnumGeometryType.GeoEllipsoidEntity:
+ case EnumGeometryType.GeoCylinderEntity:
+ case EnumGeometryType.GeoFrustumEntity:
+ case EnumGeometryType.GeoEllipCylinderEntity:
+ case EnumGeometryType.GeoEllipFrustumEntity:
+ case EnumGeometryType.GeoRangeEllipsoidEntity:
+ case EnumGeometryType.GeoRangeEllipCylinderEntity:
+ case EnumGeometryType.GeoRangeEllipFrustumEntity:
+ tempnode.ImageIndex = 6;
+ tempnode.SelectedImageIndex = 6;
+ break;
+ case EnumGeometryType.GeoGroundOverlay:
+ tempnode.ImageIndex = 7;
+ tempnode.SelectedImageIndex = 7;
+ break;
+ }
+ }
+
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ }
}
}
}
diff --git a/bin/x86/Debug/LocaLog.txt b/bin/x86/Debug/LocaLog.txt
index 60f5d1d..94fbaab 100644
--- a/bin/x86/Debug/LocaLog.txt
+++ b/bin/x86/Debug/LocaLog.txt
Binary files differ
diff --git a/bin/x86/Debug/glVersion.txt b/bin/x86/Debug/glVersion.txt
index cd82eca..755455e 100644
--- a/bin/x86/Debug/glVersion.txt
+++ b/bin/x86/Debug/glVersion.txt
Binary files differ
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/TreeUtils.cs b/TreeUtils.cs
index d394a2d..dde986c 100644
--- a/TreeUtils.cs
+++ b/TreeUtils.cs
@@ -180,16 +180,85 @@
{
managerLayerList.Add(tempNode.Nodes[i].Text);
}
- if (!managerLayerList.Contains(layer.Dataset.Caption))
+ if (managerLayerList.Contains(layer.Dataset.Caption)) return;
+ TreeNode node = new TreeNode();
+ node.Tag = layer;
+ node.Text = layer.Dataset.Caption;
+ node.ImageIndex = 0;
+ node.SelectedImageIndex = 0;
+ node.Checked = layer.Visible;
+ tempNode.Nodes.Insert(0, node);
+ tempNode.Expand();
+ }
+ ///
+ /// 创建features对应的树节点,并挂载到node下。标注管理树形图使用
+ ///
+ /// 父节点
+ /// 要素集合
+ public static void AddNodesMatchFeatures(TreeNode node, GSOFeatures features)
+ {
+ for (int i = 0; i < features.Length; i++)
{
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
- tempNode.Nodes.Insert(0, node);
- tempNode.Expand();
+ GSOFeature feature = features[i];
+ if (feature.Type == EnumFeatureType.FeatureFolder)
+ {
+ TreeNode tempnode = new TreeNode();
+ tempnode.Text = feature.Name;
+ tempnode.ImageIndex = 1;
+ tempnode.SelectedImageIndex = 1;
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature;
+ AddNodesMatchFeatures(tempnode, featureFolder.Features);
+ }
+ else
+ {
+ TreeNode tempnode = new TreeNode { Text = feature.Name };
+ if (feature.Geometry != null)
+ {
+ switch (feature.Geometry.Type)
+ {
+ case EnumGeometryType.GeoPoint3D:
+ case EnumGeometryType.GeoMarker:
+ tempnode.ImageIndex = 3;
+ tempnode.SelectedImageIndex = 3;
+ break;
+ case EnumGeometryType.GeoPolyline3D:
+ tempnode.ImageIndex = 4;
+ tempnode.SelectedImageIndex = 4;
+ break;
+ case EnumGeometryType.GeoPolygon3D:
+ tempnode.ImageIndex = 5;
+ tempnode.SelectedImageIndex = 5;
+ break;
+ case EnumGeometryType.GeoModel:
+ case EnumGeometryType.GeoEntity:
+ case EnumGeometryType.GeoGroupEntity:
+ case EnumGeometryType.GeoSphereEntity:
+ case EnumGeometryType.GeoBoxEntity:
+ case EnumGeometryType.GeoEllipsoidEntity:
+ case EnumGeometryType.GeoCylinderEntity:
+ case EnumGeometryType.GeoFrustumEntity:
+ case EnumGeometryType.GeoEllipCylinderEntity:
+ case EnumGeometryType.GeoEllipFrustumEntity:
+ case EnumGeometryType.GeoRangeEllipsoidEntity:
+ case EnumGeometryType.GeoRangeEllipCylinderEntity:
+ case EnumGeometryType.GeoRangeEllipFrustumEntity:
+ tempnode.ImageIndex = 6;
+ tempnode.SelectedImageIndex = 6;
+ break;
+ case EnumGeometryType.GeoGroundOverlay:
+ tempnode.ImageIndex = 7;
+ tempnode.SelectedImageIndex = 7;
+ break;
+ }
+ }
+
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ }
}
}
}
diff --git a/bin/x86/Debug/LocaLog.txt b/bin/x86/Debug/LocaLog.txt
index 60f5d1d..94fbaab 100644
--- a/bin/x86/Debug/LocaLog.txt
+++ b/bin/x86/Debug/LocaLog.txt
Binary files differ
diff --git a/bin/x86/Debug/glVersion.txt b/bin/x86/Debug/glVersion.txt
index cd82eca..755455e 100644
--- a/bin/x86/Debug/glVersion.txt
+++ b/bin/x86/Debug/glVersion.txt
Binary files differ
diff --git a/bin/x86/Debug/layerConfig.xml b/bin/x86/Debug/layerConfig.xml
index d3efad1..9266e1f 100644
--- a/bin/x86/Debug/layerConfig.xml
+++ b/bin/x86/Debug/layerConfig.xml
@@ -138,6 +138,11 @@
+
+
+
+
+
diff --git a/Cyberpipe.csproj b/Cyberpipe.csproj
index 9dd7009..da65155 100644
--- a/Cyberpipe.csproj
+++ b/Cyberpipe.csproj
@@ -1809,7 +1809,6 @@
Reference.cs
-
diff --git a/MainFrm.cs b/MainFrm.cs
index d33c5a0..1b6ddee 100644
--- a/MainFrm.cs
+++ b/MainFrm.cs
@@ -40,7 +40,7 @@
GSOBalloon featureTooltip2;
GSOBalloonEx balloonEx2;
- GSOLayer layerTemp; //wxl注释,Globe1的临时图层
+ GSOLayer layerTemp;//wxl注释,Globe1的临时图层
FrmRedlineResult frmredResult = null;
FrmMnModify frmModify;
public bool frmRedlineResult = false;
@@ -877,37 +877,37 @@
double dsw = SW;
if (SW > 1440)
{
- double myScreen = dsw/1440;
- buttonX1.Width = (int) (buttonX1.Width*myScreen);
- buttonX2.Width = (int) (buttonX2.Width*myScreen);
- buttonX4.Width = (int) (buttonX4.Width*myScreen);
- buttonX5.Width = (int) (buttonX5.Width*myScreen);
- buttonX6.Width = (int) (buttonX6.Width*myScreen);
- buttonX7.Width = (int) (buttonX8.Width*myScreen);
- buttonX8.Width = (int) (buttonX8.Width*myScreen);
- buttonX9.Width = (int) (buttonX9.Width*myScreen);
- buttonX12.Width = (int) (buttonX12.Width*myScreen);
- buttonX14.Width = (int) (buttonX14.Width*myScreen);
- buttonX15.Width = (int) (buttonX15.Width*myScreen);
- buttonX16.Width = (int) (buttonX16.Width*myScreen);
- buttonX17.Width = (int) (buttonX17.Width*myScreen);
+ double myScreen = dsw / 1440;
+ buttonX1.Width = (int)(buttonX1.Width * myScreen);
+ buttonX2.Width = (int)(buttonX2.Width * myScreen);
+ buttonX4.Width = (int)(buttonX4.Width * myScreen);
+ buttonX5.Width = (int)(buttonX5.Width * myScreen);
+ buttonX6.Width = (int)(buttonX6.Width * myScreen);
+ buttonX7.Width = (int)(buttonX8.Width * myScreen);
+ buttonX8.Width = (int)(buttonX8.Width * myScreen);
+ buttonX9.Width = (int)(buttonX9.Width * myScreen);
+ buttonX12.Width = (int)(buttonX12.Width * myScreen);
+ buttonX14.Width = (int)(buttonX14.Width * myScreen);
+ buttonX15.Width = (int)(buttonX15.Width * myScreen);
+ buttonX16.Width = (int)(buttonX16.Width * myScreen);
+ buttonX17.Width = (int)(buttonX17.Width * myScreen);
- labelX1.Width = (int) (labelX1.Width*myScreen);
- labelX2.Width = (int) (labelX2.Width*myScreen);
- labelX3.Width = (int) (labelX3.Width*myScreen);
- labelX6.Width = (int) (labelX6.Width*myScreen);
- labelX8.Width = (int) (labelX8.Width*myScreen);
- labelX9.Width = (int) (labelX9.Width*myScreen);
- labelX12.Width = (int) (labelX12.Width*myScreen);
- labelX13.Width = (int) (labelX13.Width*myScreen);
- labelX14.Width = (int) (labelX14.Width*myScreen);
- labelX16.Width = (int) (labelX16.Width*myScreen);
- labelX17.Width = (int) (labelX17.Width*myScreen);
- labelX11.Width = (int) (labelX11.Width*myScreen);
- labelX19.Width = (int) (labelX19.Width*myScreen);
- labelX21.Width = (int) (labelX21.Width*myScreen);
- labelX22.Width = (int) (labelX22.Width*myScreen);
- labelX24.Width = (int) (labelX24.Width*myScreen);
+ labelX1.Width = (int)(labelX1.Width * myScreen);
+ labelX2.Width = (int)(labelX2.Width * myScreen);
+ labelX3.Width = (int)(labelX3.Width * myScreen);
+ labelX6.Width = (int)(labelX6.Width * myScreen);
+ labelX8.Width = (int)(labelX8.Width * myScreen);
+ labelX9.Width = (int)(labelX9.Width * myScreen);
+ labelX12.Width = (int)(labelX12.Width * myScreen);
+ labelX13.Width = (int)(labelX13.Width * myScreen);
+ labelX14.Width = (int)(labelX14.Width * myScreen);
+ labelX16.Width = (int)(labelX16.Width * myScreen);
+ labelX17.Width = (int)(labelX17.Width * myScreen);
+ labelX11.Width = (int)(labelX11.Width * myScreen);
+ labelX19.Width = (int)(labelX19.Width * myScreen);
+ labelX21.Width = (int)(labelX21.Width * myScreen);
+ labelX22.Width = (int)(labelX22.Width * myScreen);
+ labelX24.Width = (int)(labelX24.Width * myScreen);
}
sideBar1.Visible = false;
sideBar1.ExpandedPanel = sideBarPanelItem3;
@@ -1031,7 +1031,7 @@
globeControl1.Globe.UserBackgroundColor = Color.White;
globeControl1.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl1.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed*3;
+ globeControl1.Globe.FlyToPointSpeed = globeControl1.Globe.FlyToPointSpeed * 3;
globeControl1.Globe.EditSnapObject = true;
globeControl1.Globe.IsReleaseMemOutOfView = true;
globeControl1.Globe.ControlPanel.Visible = true;
@@ -1050,7 +1050,7 @@
globeControl2.Globe.UserBackgroundColor = Color.White;
globeControl2.Globe.FlyAlongLineSpeed = m_dFlyAlongLineSpeed;
globeControl2.Globe.FlyAlongLineRotateSpeed = m_dFlyAlongLineRotateSpeed;
- globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed*3;
+ globeControl2.Globe.FlyToPointSpeed = globeControl2.Globe.FlyToPointSpeed * 3;
globeControl2.Globe.EditSnapObject = true;
globeControl2.Globe.IsReleaseMemOutOfView = true;
globeControl2.Globe.ControlPanel.Visible = false;
@@ -1154,7 +1154,6 @@
initLayerTree();
}
-
///
/// 加载地球1、2的图层
///
@@ -1225,7 +1224,7 @@
}
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
connectServer();
});
@@ -1292,7 +1291,7 @@
private void MainFrm_Load(object sender, EventArgs e)
{
- layerTree.Nodes.Add("正在加载,请稍后……"); //树状图加载在图层加载之后,故增加提示
+ layerTree.Nodes.Add("正在加载,请稍后……");//树状图加载在图层加载之后,故增加提示
initGlobalControl();
//initGlobalMap();
// initLayerTree();
@@ -1349,73 +1348,6 @@
}
}
- private void VisitFeature3Ds(GSOFeatures feature3ds, TreeNode node)
- {
- for (int i = 0; i < feature3ds.Length; i++)
- {
- GSOFeature feature = feature3ds[i];
- if (feature.Type == EnumFeatureType.FeatureFolder)
- {
- TreeNode tempnode = new TreeNode();
- tempnode.Text = feature.Name;
- tempnode.ImageIndex = 1;
- tempnode.SelectedImageIndex = 1;
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- GSOFeatureFolder featureFolder = (GSOFeatureFolder) feature;
- VisitFeature3Ds(featureFolder.Features, tempnode);
- }
- else
- {
- TreeNode tempnode = new TreeNode {Text = feature.Name};
- if (feature.Geometry != null)
- {
- switch (feature.Geometry.Type)
- {
- case EnumGeometryType.GeoPoint3D:
- case EnumGeometryType.GeoMarker:
- tempnode.ImageIndex = 3;
- tempnode.SelectedImageIndex = 3;
- break;
- case EnumGeometryType.GeoPolyline3D:
- tempnode.ImageIndex = 4;
- tempnode.SelectedImageIndex = 4;
- break;
- case EnumGeometryType.GeoPolygon3D:
- tempnode.ImageIndex = 5;
- tempnode.SelectedImageIndex = 5;
- break;
- case EnumGeometryType.GeoModel:
- case EnumGeometryType.GeoEntity:
- case EnumGeometryType.GeoGroupEntity:
- case EnumGeometryType.GeoSphereEntity:
- case EnumGeometryType.GeoBoxEntity:
- case EnumGeometryType.GeoEllipsoidEntity:
- case EnumGeometryType.GeoCylinderEntity:
- case EnumGeometryType.GeoFrustumEntity:
- case EnumGeometryType.GeoEllipCylinderEntity:
- case EnumGeometryType.GeoEllipFrustumEntity:
- case EnumGeometryType.GeoRangeEllipsoidEntity:
- case EnumGeometryType.GeoRangeEllipCylinderEntity:
- case EnumGeometryType.GeoRangeEllipFrustumEntity:
- tempnode.ImageIndex = 6;
- tempnode.SelectedImageIndex = 6;
- break;
- case EnumGeometryType.GeoGroundOverlay:
- tempnode.ImageIndex = 7;
- tempnode.SelectedImageIndex = 7;
- break;
- }
- }
-
- tempnode.Checked = node.Checked && feature.Visible;
- tempnode.Tag = feature;
- node.Nodes.Add(tempnode);
- }
- }
- }
-
///
/// 检查数据集是否有坐标系信息(待完善)
///
@@ -1563,7 +1495,6 @@
}
#endregion
-
private void layerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
@@ -1592,7 +1523,6 @@
}
}
-
//wxl Tag更正
///
/// 删除临时添加的本地数据图层
@@ -1621,7 +1551,6 @@
}
}
-
//wxl Tag更正
private void 可编辑ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1633,7 +1562,6 @@
可编辑ToolStripMenuItem.Checked = !可编辑ToolStripMenuItem.Checked;
layer.Editable = 可编辑ToolStripMenuItem.Checked;
}
-
//wxl Tag更正
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1643,7 +1571,6 @@
if (layer == null) return;
layer.Dataset.Save();
}
-
//wxl Tag更正
private void 定位ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1673,8 +1600,7 @@
if (layer == null) return;
if (layer.Caption.Equals("红线"))
{
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50),
- EnumAltitudeMode.Absolute, -4, 50, 1000);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 1000);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
layer.Visible = true;
@@ -1688,7 +1614,6 @@
}
}
}
-
//wxl Tag更正
private void layerTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
@@ -1701,8 +1626,7 @@
GSOFeature feature = layer.GetAt(0);
if (feature != null && feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);
- //, 0, 0, 1000);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute);//, 0, 0, 1000);
}
else
{
@@ -1714,8 +1638,7 @@
GSOFeature feature = node.Tag as GSOFeature;
if (feature.Geometry != null)
{
- globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0,
- 10);
+ globeControl1.Globe.FlyToPosition(feature.Geometry.GeoCenterPoint, EnumAltitudeMode.Absolute, 0, 0, 10);
}
else
{
@@ -1768,7 +1691,6 @@
globeControl1.Globe.Refresh();
}
}
-
void globeControl2_MouseWheel(object sender, MouseEventArgs e)
{
if (globeControl2.Globe.CameraState.Distance > 20000000)
@@ -1781,7 +1703,6 @@
}
#region Fan 横断面
-
///
/// 横断面分析、基线剖面分析、道路断面分析等
///
@@ -1824,7 +1745,6 @@
}
trackPolylineEndMode = EnumTrackPolylineEndMode.Default_Analysis;
}
-
#endregion
///
@@ -1847,16 +1767,14 @@
case "PipelineDistanceStatistics":
- FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm1 = new FrmAllPipelineStatis(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm1.Show(this);
globeControl1.Globe.Action = EnumAction3D.ActionNull;
break;
case "PipelineSpatialQuery":
- FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis.ShowForm(globeControl1, polygon, InitDataGridViewX1, Utility.m_PipelineLayerNames);
globeControl1.Globe.ClearAnalysis();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
@@ -1880,8 +1798,7 @@
geoPit.PitDepth = depth;
geoPit.PitDepthUsing = true;
globeControl1.Globe.AddPit("", geoPit);
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = false;
@@ -1914,7 +1831,6 @@
break;
}
}
-
///
/// 鼠标悬浮提示
///
@@ -1927,12 +1843,11 @@
if (e.Feature == null) return;
if (isFeatureContainsBianhao(e.Feature))
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y,
- e.Feature.GetValue(featureIDFieldName).ToString());
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.GetValue(featureIDFieldName).ToString());
}
else if (e.Feature.Name != "")
{
- featureTooltip.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, e.Feature.Name);
+ featureTooltip.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, e.Feature.Name);
}
}
catch (Exception ex)
@@ -1951,7 +1866,7 @@
if (e.Button != MouseButtons.Left) return;
if (enumDesignMode == EnumDesignMode.AddPipe
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //添加管线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//添加管线
{
GSOLayer layerDest = globeControl1.Globe.DestLayerFeatureAdd;
if (layerDest != null)
@@ -1967,7 +1882,7 @@
}
}
if (enumDesignMode == EnumDesignMode.AddTunnel
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //创建隧道
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//创建隧道
{
GSOLayer tunnel = globeControl1.Globe.Layers.GetLayerByCaption("隧道");
if (tunnel != null && tunnel.GetAllFeatures().Length > 0)
@@ -1979,9 +1894,10 @@
//tunnel.Save();
}
}
+
}
if (enumDesignMode == EnumDesignMode.AddCitySevenLine
- && globeControl1.Globe.Action == EnumAction3D.DrawPolyline) //绘制城市七线
+ && globeControl1.Globe.Action == EnumAction3D.DrawPolyline)//绘制城市七线
{
CitySevenLine citySevenLine = globeControl1.Tag as CitySevenLine;
string lineType = citySevenLine.Type;
@@ -2017,7 +1933,6 @@
mouseDownX1 = e.X;
mouseDownY1 = e.Y;
}
-
///
/// 获取globeControl2中鼠标按下的坐标供区别鼠标右键和滚轮按下事件
///
@@ -2028,7 +1943,6 @@
mouseDownX2 = e.X;
mouseDownY2 = e.Y;
}
-
///
///
///
@@ -2042,7 +1956,6 @@
RightScreenToolMenu.Show(globeControl2, e.X, e.Y);
}
}
-
///
/// (完善)#wxl 待整理
///
@@ -2057,7 +1970,7 @@
通视分析ToolStripMenuItem.Checked = false;
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "vertical") // 垂直净距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2073,15 +1986,13 @@
int idx = dataGridViewX2.Rows.Add();
dataGridViewX2.Rows[idx].Tag = feat;
dataGridViewX2.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX2.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "spacing") // 间距分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2097,9 +2008,7 @@
int idx = dataGridViewLineList.Rows.Add();
dataGridViewLineList.Rows[idx].Tag = feat;
dataGridViewLineList.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewLineList.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2121,15 +2030,13 @@
int idx = dataGridViewX8.Rows.Add();
dataGridViewX8.Rows[idx].Tag = feat;
dataGridViewX8.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX8.Rows[idx].Cells[1].Value = featureName;
}
}
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "collision") // 管线碰撞分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2145,9 +2052,7 @@
int idx = dataGridViewX4.Rows.Add();
dataGridViewX4.Rows[idx].Tag = feat;
dataGridViewX4.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX4.Rows[idx].Cells[1].Value = featureName;
}
@@ -2155,7 +2060,7 @@
return;
}
- if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
+ if (globeControl1.Globe.Action == EnumAction3D.SelectObject && trackflag == "ftAnalysis") // 覆土分析
{
if (globeControl1.Globe.SelObjectCount > 0)
{
@@ -2171,9 +2076,7 @@
int idx = dataGridViewX6.Rows.Add();
dataGridViewX6.Rows[idx].Tag = feat;
dataGridViewX6.Rows[idx].Cells[0].Value = resLayer.Caption;
- var featureName = isFeatureContainsBianhao(feat)
- ? feat.GetValue(featureIDFieldName).ToString()
- : feat.Name;
+ var featureName = isFeatureContainsBianhao(feat) ? feat.GetValue(featureIDFieldName).ToString() : feat.Name;
dataGridViewX6.Rows[idx].Cells[1].Value = featureName;
}
}
@@ -2226,7 +2129,7 @@
layerTemp.AddFeature(feat);
}
}
- else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
+ else if (e.Button == MouseButtons.Right) // 右键取消 高度量算 功能
{
if (e.X == mouseDownX1 && e.Y == mouseDownY1)
{
@@ -2274,8 +2177,7 @@
return result;
}
- string featureIDFieldName = "编号"; //待完善
-
+ string featureIDFieldName = "编号";//待完善
private bool isFeatureContainsBianhao(GSOFeature feature)
{
if (feature.GetFieldDefn("标识器编号") != null)
@@ -2299,13 +2201,12 @@
string str1 = "";
if (feature == null) return;
- if (feature.GetFieldDefn("图片编码") != null) //
+ if (feature.GetFieldDefn("图片编码") != null)//
{
str1 = GetBubbleInfo(feature, globeControl1);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2322,7 +2223,7 @@
balloonEx.HideBalloon();
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2341,8 +2242,7 @@
str1 = GetBubbleInfo(feature, globeControl2);
if (RemoteFileExists(Utility.PicRootURL + feature.GetValue("图片编码")))
{
- str1 += "
";
+ str1 += "
";
}
else if (RemoteFileExists(Utility.PicDefaultURL))
{
@@ -2359,7 +2259,7 @@
balloonEx2.HideBalloon();
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CX, 480);
balloonEx2.SetSize(EnumSizeIndexEx.CONTENT_CY, 420);
- balloonEx2.ShowBalloon((int) e.MousePos.X, (int) e.MousePos.Y, str1);
+ balloonEx2.ShowBalloon((int)e.MousePos.X, (int)e.MousePos.Y, str1);
}
///
@@ -2370,13 +2270,10 @@
private string GetBubbleInfo(GSOFeature feature, GSOGlobeControl globeControl)
{
if (feature == null) return "";
- string str =
- "";
+ string str = "";
var code = feature.GetFieldAsString("编码");
var title = FeatureTools.GetFeatureTypeByCode(code);
- str +=
- "" +
- title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
+ str += "" + title + " " + feature.GetFieldAsString(featureIDFieldName) + " |
";
string layerName = feature.Dataset.Name;
string queryFields = "";
if (Utility.Query_Fields.ContainsKey(layerName))
@@ -2390,30 +2287,28 @@
}
if (queryFields != null)
{
- string[] param = {","};
+ string[] param = { "," };
string[] fieldNames = queryFields.Split(param, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < fieldNames.Length;)
+ for (int j = 0; j < fieldNames.Length; )
{
- int count = 0;
- string tmpStr = "";
- while (count < 2 && j < fieldNames.Length)
+ int count = 0;
+ string tmpStr = "
";
+ while (count<2&&j" +
+ tmpStr += "" +
fieldNames[j] +
" | " +
value +
" | ";
- count++;
+ count ++;
}
j++;
}
if (count == 1)
- {
-//不够两列
+ {//不够两列
tmpStr += " | ";
}
tmpStr += "
";
@@ -2431,7 +2326,6 @@
GSOLayer featureAddLayer = featureAddPipeFitTreenode.Tag as GSOLayer;
return featureAddLayer;
}
-
//遍历最深三层找到目标node.
private TreeNode GetDestLayerFeatureAddTreeNode()
{
@@ -2454,7 +2348,7 @@
{
GSOLayer gsoLayer = node.Tag as GSOLayer;
if (gsoLayer != null && gsoLayer.IsDestLayerFeatureAdd()) return node;
- }
+ }
}
}
else
@@ -2504,7 +2398,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 地下模式 菜单按钮
///
@@ -2541,7 +2434,6 @@
}
globeControl1.Globe.Refresh();
}
-
///
/// 行走模式 菜单按钮
///
@@ -2559,7 +2451,6 @@
globeControl1.Globe.CameraMode = EnumCameraMode.Walk;
}
-
///
/// 地面透明度设置 菜单
///
@@ -2570,12 +2461,11 @@
LogManager.saveLog(Utility.userName, sliderGroundTransSet1.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
layer.Opaque = 100 - sliderGroundTransSet1.Value;
optiValue = sliderGroundTransSet1.Value;
}
-
///
/// 图例 菜单按钮
///
@@ -2590,7 +2480,6 @@
legend.Visible = !legend.Visible;
globeControl1.Refresh();
}
-
///
/// 快速定位 菜单按钮
///
@@ -2603,7 +2492,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1);
fly.Show(this);
}
-
///
/// 图层管理 菜单按钮
///
@@ -2639,7 +2527,6 @@
Refresh();
}
}
-
///
/// 全屏显示 菜单按钮
///
@@ -2661,25 +2548,23 @@
//任务栏
[DllImport("user32.dll", EntryPoint = "FindWindowEx", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
-
int widthOld;
int heightOld;
int xOld;
int yOld;
-
///
/// 全屏显示功能实现(完善)
///
private void FullScreen()
{
- if (!m_bFullScreen) // 启用全屏
+ if (!m_bFullScreen) // 启用全屏
{
xOld = Location.X;
yOld = Location.Y;
widthOld = Width;
heightOld = Height;
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Maximized;
@@ -2713,13 +2598,13 @@
ribbonControl1.Visible = false;
pictureBox1.Visible = false;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = true;
}
- else // 取消全屏
+ else // 取消全屏
{
- SuspendLayout(); //挂起
+ SuspendLayout();//挂起
//////任务栏
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
@@ -2747,7 +2632,7 @@
ribbonControl1.Visible = true;
pictureBox1.Visible = true;
- ResumeLayout(); //重新开始
+ ResumeLayout();//重新开始
m_bFullScreen = false;
Focus();
//初始化隐藏图层管理
@@ -2835,12 +2720,10 @@
}
Image printImage;
-
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(printImage, 10, 10);
}
-
///
/// 输出地图 菜单
///
@@ -2865,7 +2748,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -2885,7 +2768,6 @@
}
}
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 目标图层 菜单
@@ -2901,7 +2783,6 @@
GSOLayer layer = node.Tag as GSOLayer;
globeControl1.Globe.DestLayerFeatureAdd = layer;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可选择 菜单
@@ -2916,7 +2797,6 @@
LayerSelectableMenuItem.Checked = !LayerSelectableMenuItem.Checked;
if (layer != null) layer.Selectable = LayerSelectableMenuItem.Checked;
}
-
//wxl Tag更正
///
/// 图层目录树 右键菜单中的 可编辑 菜单
@@ -2931,7 +2811,6 @@
LayerEditableMenuItem.Checked = !LayerEditableMenuItem.Checked;
if (layer != null) layer.Editable = LayerEditableMenuItem.Checked;
}
-
///
/// 图层目录树 右键菜单中的 保存 菜单
///
@@ -2958,7 +2837,6 @@
panelOfTable.Visible = false;
clearFeatureHighLight();
}
-
///
/// 主窗体关闭事件处理
///
@@ -2973,7 +2851,6 @@
}
#region 完善(各种净距分析)
-
///
/// 垂直净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -2997,7 +2874,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中的 选择图层复选框 选中状态改变事件处理
///
@@ -3005,7 +2881,7 @@
///
private void checkBoxX2_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxEx4.Enabled = checkBoxX8.Checked;
if (checkBoxX8.Checked)
{
@@ -3021,7 +2897,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3047,7 +2922,6 @@
comboBoxEx1.Enabled = true;
}
}
-
///
/// 水平净距分析 功能界面中的 选择管线复选框 选中状态改变事件处理
///
@@ -3055,7 +2929,7 @@
///
private void checkBoxX1_CheckedChanged_shuiping(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxX7.Checked)
{
comboBoxEx4.SelectedItem = null;
@@ -3073,7 +2947,6 @@
comboBoxEx4.Enabled = true;
}
}
-
///
/// 垂直净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3098,7 +2971,6 @@
dataGridViewX2.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 水平净距分析 功能界面中的 选择图层下拉框 选中项改变 事件处理
///
@@ -3123,10 +2995,9 @@
dataGridViewX8.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
Dictionary featCount = new Dictionary();
Dictionary featLenth = new Dictionary();
- Dictionary m_FeaturesWithBianhao = new Dictionary(); //记录编号和对应的标注点的位置
+ Dictionary m_FeaturesWithBianhao = new Dictionary();//记录编号和对应的标注点的位置
///
/// 垂直净距分析 功能界面中的 开始分析按钮 事件处理
@@ -3173,7 +3044,7 @@
GSOFeature selectedFeature = dataGridViewX2.Rows[i].Tag as GSOFeature;
if (selectedFeature == null) continue;
selectState = 1;
- VerticalDistanceAnalysis(selectedFeature, Utility.m_PipelineLayerNames, dJingJuBiaoZhun);
+ VerticalDistanceAnalysis(selectedFeature,Utility.m_PipelineLayerNames,dJingJuBiaoZhun);
}
}
else if (checkBoxX2.Checked) // 选择图层
@@ -3222,8 +3093,7 @@
///
///
///
- private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1,
- GSOPoint3d pntIntersect2, double distance, bool markerVisible)
+ private GSOPoint3d LabelVerticalDistance(GSOLayer markerLayer, GSOPoint3d pntIntersect1, GSOPoint3d pntIntersect2, double distance, bool markerVisible)
{
if (pntIntersect1 == null || pntIntersect2 == null)
{
@@ -3238,9 +3108,9 @@
GSOSimpleLineStyle3D style = new GSOSimpleLineStyle3D(); //创建线的风格
//设置透明度及颜色,FromArgb()中的四个参数分别为alpha、red、green、blue,取值范围为0到255
style.LineColor = Color.GreenYellow;
- style.LineWidth = 3; //设置线的宽度为3
- style.VertexVisible = true; //显示线的节点
- disline.Style = style; //把风格添加到线上
+ style.LineWidth = 3; //设置线的宽度为3
+ style.VertexVisible = true; //显示线的节点
+ disline.Style = style; //把风格添加到线上
disline.AltitudeMode = EnumAltitudeMode.Absolute;
GSOFeature line = new GSOFeature();
@@ -3249,7 +3119,7 @@
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = pntIntersect1.X;
dismarker.Y = pntIntersect1.Y;
- dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z)/2;
+ dismarker.Z = (pntIntersect1.Z + pntIntersect2.Z) / 2;
string disStr = distance.ToString("0.00");
if (disStr != "0.00")
@@ -3279,9 +3149,7 @@
return dismarker.Position;
}
-
#region wxl
-
///
/// wxl重构,碰撞分析
///
@@ -3290,8 +3158,7 @@
///
private void CollisionAnalysis(GSOFeature selectedFeature, List pipelineLayerNames)
{
- List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature,
- pipelineLayerNames);
+ List result = DoublePanelAnalysis.CollisionAnalysis(globeControl1, selectedFeature, pipelineLayerNames);
if (result == null)
{
selectState = 0;
@@ -3311,16 +3178,14 @@
dataGridViewX5.Rows[idx].Cells[3].Value = featureAnalysisInfo.feature.Name;
GSOGeoPolyline3D line2 = featureAnalysisInfo.feature.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
- if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) ==
- false)
+ if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name) == false)
{
GSOGeoMarker dismarker = new GSOGeoMarker();
dismarker.X = featureAnalysisInfo.point1.X;
dismarker.Y = featureAnalysisInfo.point1.Y;
- dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z)/2;
+ dismarker.Z = (featureAnalysisInfo.point1.Z + featureAnalysisInfo.point1.Z) / 2;
dismarker.AltitudeMode = EnumAltitudeMode.Absolute;
- m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name,
- dismarker.Position); //添加飞行位置记录
+ m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + featureAnalysisInfo.feature.Name, dismarker.Position);//添加飞行位置记录
}
if (featCount.ContainsKey(feat2Caption))
{
@@ -3341,19 +3206,16 @@
}
}
-
///
/// wxl重构,垂直净距分析
///
///
///
///
- private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames,
- double verticalDistance)
+ private void VerticalDistanceAnalysis(GSOFeature selectedFeature, List pipelineLayerNames, double verticalDistance)
{
- List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1,
- selectedFeature, pipelineLayerNames,
- verticalDistance);
+ List result = DoublePanelAnalysis.VerticalDistanceAnalysis(globeControl1, selectedFeature, pipelineLayerNames,
+ verticalDistance);
if (result == null)
{
selectState = 0;
@@ -3375,8 +3237,7 @@
GSOGeoPolyline3D line2 = feat2.Geometry as GSOGeoPolyline3D;
if (line2 == null) continue;
string markerInfo = featureAnalysisInfo.distance.ToString("0.00") + "米";
- GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1,
- featureAnalysisInfo.point2, markerInfo, true);
+ GSOPoint3d markerPosition = DoublePanelAnalysis.MakeLabel(layerTemp, featureAnalysisInfo.point1, featureAnalysisInfo.point2, markerInfo, true);
if (m_FeaturesWithBianhao.ContainsKey(selectedFeature.Name + "-" + feat2.Name) == false)
{
m_FeaturesWithBianhao.Add(selectedFeature.Name + "-" + feat2.Name, markerPosition); //添加飞行位置记录
@@ -3414,8 +3275,7 @@
DataGridView.HitTestInfo hittestinfo = dataGridViewX3.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex > -1)
{
- string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX3.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
@@ -3472,7 +3332,7 @@
MessageBox.Show("没有不符合净距标准的管线!", "提示");
}
- for (int i = 0; i < Utility.m_PipelineLayerNames.Count && featCount.Count > 0; i++)
+ for (int i = 0; i < Utility.m_PipelineLayerNames.Count&&featCount.Count>0; i++)
{
if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
@@ -3486,9 +3346,7 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
#region wxl 水平净距分析重构
-
///
/// 计算指定feature对象与除了该feature所在图层之外的 所有管线图层中的所有feature对象 的水平距离 并记录符合要求的管线 功能
///
@@ -3497,9 +3355,8 @@
///
private void HorizontalDistanceAnalysis(GSOFeature selectedFeature, List _pipelineLayerNames, double dis)
{
-
- Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,
- selectedFeature,
+
+ Dictionary featureMap = DoublePanelAnalysis.HorizontalDistanceAnalysis(globeControl1,selectedFeature,
_pipelineLayerNames, dis);
if (featureMap == null)
{
@@ -3539,7 +3396,6 @@
}
}
}
-
#endregion
///
@@ -3559,7 +3415,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3569,7 +3425,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 碰撞分析 功能界面中 开始分析按钮 事件处理
///
@@ -3594,7 +3449,7 @@
m_FeaturesWithBianhao.Clear();
globeControl1.Globe.Action = EnumAction3D.ActionNull;
Cursor = Cursors.WaitCursor;
- if (checkBoxX3.Checked) // 选择管线
+ if (checkBoxX3.Checked) // 选择管线
{
for (int i = 0; i < dataGridViewX4.Rows.Count; i++)
{
@@ -3602,7 +3457,7 @@
if (selectedFeature == null) continue;
selectState = 1;
// VerticalDistanceAnalysis("碰撞分析", selectedFeature, Utility.m_PipelineLayerNames, 0, 0.0);
- CollisionAnalysis(selectedFeature, Utility.m_PipelineLayerNames);
+ CollisionAnalysis(selectedFeature,Utility.m_PipelineLayerNames);
}
}
else if (checkBoxX4.Checked) // 选择图层
@@ -3626,8 +3481,7 @@
{
if (featCount.ContainsKey(pipelineLayer) && featLenth.ContainsKey(pipelineLayer))
{
- listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" +
- featLenth[pipelineLayer].ToString("0.00") + "米");
+ listBox2.Items.Add(pipelineLayer + ":" + featCount[pipelineLayer] + "条,共" + featLenth[pipelineLayer].ToString("0.00") + "米");
}
}
}
@@ -3643,7 +3497,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 碰撞分析功能界面中 表格的 双击定位 功能
///
@@ -3654,14 +3507,12 @@
if (e.Button != MouseButtons.Left) return;
DataGridView.HitTestInfo hittestinfo = dataGridViewX5.HitTest(e.X, e.Y);
if (hittestinfo.RowIndex <= -1) return;
- string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" +
- dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
+ string key = dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[1].Value.ToString().Trim() + "-" + dataGridViewX5.Rows[hittestinfo.RowIndex].Cells[3].Value.ToString().Trim();
if (m_FeaturesWithBianhao.ContainsKey(key))
{
globeControl1.Globe.JumpToPosition(m_FeaturesWithBianhao[key], EnumAltitudeMode.Absolute, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 选择管线 复选框选中状态改变事件处理
///
@@ -3687,7 +3538,6 @@
comboBoxEx3.Enabled = true;
}
}
-
///
/// 覆土分析功能操作界面中的 选择图层 复选框选中状态改变事件处理
///
@@ -3711,7 +3561,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 覆土分析功能操作界面中的 图层下拉框选中项改变事件处理
///
@@ -3737,7 +3586,6 @@
dataGridViewX6.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 覆土分析功能操作界面中的 开始分析 按钮事件处理
///
@@ -3775,9 +3623,7 @@
{
GSOFeature rowFeature = dataGridViewX6.Rows[i].Tag as GSOFeature;
if (rowFeature == null) continue;
- string featureName = isFeatureContainsBianhao(rowFeature)
- ? rowFeature.GetValue(featureIDFieldName).ToString()
- : rowFeature.Name;
+ string featureName = isFeatureContainsBianhao(rowFeature) ? rowFeature.GetValue(featureIDFieldName).ToString() : rowFeature.Name;
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null)
@@ -3802,32 +3648,28 @@
dataGridViewX7.Rows[idx].Tag = rowFeature;
dataGridViewX7.Rows[idx].Cells[0].Value = rowFeature.Dataset.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
}
}
}
- else if (checkBoxX6.Checked) // 覆土分析 选择图层
+ else if (checkBoxX6.Checked) // 覆土分析 选择图层
{
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx3.SelectedItem.ToString());
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
- if (flayer == null) return;
+ if (flayer == null)return;
GSOFeatures feats = flayer.GetAllFeatures();
for (int i = 0; i < feats.Length; i++)
{
GSOFeature f = feats[i];
string featureName = "";
- featureName = isFeatureContainsBianhao(feats[i])
- ? feats[i].GetValue(featureIDFieldName).ToString()
- : feats[i].Name;
+ featureName = isFeatureContainsBianhao(feats[i]) ? feats[i].GetValue(featureIDFieldName).ToString() : feats[i].Name;
GSOGeoPolyline3D line = f.Geometry as GSOGeoPolyline3D;
if (line == null) continue;
GSOPipeLineStyle3D style = line.Style as GSOPipeLineStyle3D;
@@ -3843,14 +3685,12 @@
dataGridViewX7.Rows[idx].Tag = f;
dataGridViewX7.Rows[idx].Cells[0].Value = layer.Caption;
dataGridViewX7.Rows[idx].Cells[1].Value = featureName;
- dataGridViewX7.Rows[idx].Cells[2].Value =
- Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
+ dataGridViewX7.Rows[idx].Cells[2].Value = Math.Abs((pts[m].Z + (style.Radius))).ToString("0.00");
pt.X = pts[m].X;
pt.Y = pts[m].Y;
pt.Z = 0;
- LabelVerticalDistance(layerTemp, pts[m], pt,
- Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
+ LabelVerticalDistance(layerTemp, pts[m], pt, Convert.ToDouble(dataGridViewX7.Rows[idx].Cells[2].Value), true);
break;
}
@@ -3869,7 +3709,6 @@
}
Cursor = Cursors.Default;
}
-
///
/// 覆土分析中 表格的 双击定位 功能
///
@@ -3887,7 +3726,7 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
GSOPoint3d point3D = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3D, EnumAltitudeMode.Absolute, 5);
@@ -3897,7 +3736,6 @@
globeControl1.Globe.JumpToFeature(rowFeature, 5);
}
}
-
///
/// 覆土分析功能操作界面中的 导出Excel按钮 事件处理
///
@@ -3914,7 +3752,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 覆土分析功能操作界面底部的 关闭 按钮事件处理
///
@@ -3946,7 +3783,6 @@
//Refresh();
}
-
///
/// 垂直净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3969,7 +3805,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 水平净距分析 功能界面中 清除分析结果按钮 事件处理
///
@@ -3992,7 +3827,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 垂直净距分析功能界面中 关闭按钮 事件处理
///
@@ -4025,7 +3859,6 @@
Refresh();
}
-
///
/// 水平净距分析功能界面中 删除缓冲区按钮 事件处理
///
@@ -4054,7 +3887,6 @@
Refresh();
}
-
///
/// 导出指定DataGridView控件中的内容
///
@@ -4141,7 +3973,6 @@
}
}
}
-
///
/// 垂直净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4158,7 +3989,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 水平净距分析功能界面中 导出Excel按钮 事件处理
///
@@ -4174,8 +4004,7 @@
{
MessageBox.Show("表格内容为空!", "提示");
}
- }
-
+ }
///
/// 碰撞分析功能界面中 选择管线复选框 选中状态改变事件处理
///
@@ -4201,7 +4030,6 @@
comboBoxEx2.Enabled = true;
}
}
-
///
/// 碰撞分析功能界面中 选择图层复选框 选中状态改变事件处理
///
@@ -4225,7 +4053,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 选择图层下拉框 选中项改变事件处理
///
@@ -4238,7 +4065,7 @@
dataGridViewX4.Rows.Clear();
dataGridViewX5.Rows.Clear();
GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(comboBoxEx2.SelectedItem.ToString());
-
+
GSOFeatureLayer flayer = layer as GSOFeatureLayer;
if (flayer == null) return;
GSOFeatures feats = flayer.GetAllFeatures();
@@ -4249,7 +4076,6 @@
dataGridViewX4.Rows[idx].Cells[1].Value = feats[i].Name;
}
}
-
///
/// 清除所有图层中的所有feature对象的高亮状态 功能
///
@@ -4287,7 +4113,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
}
-
///
/// 碰撞分析功能界面中 清除分析结果按钮 事件处理
///
@@ -4309,7 +4134,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 碰撞分析功能界面中 导出Excel按钮 事件处理
///
@@ -4326,7 +4150,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 碰撞分析 功能界面中 关闭按钮 事件处理
///
@@ -4349,7 +4172,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 覆土分析 功能界面中的 清除分析结果 按钮事件处理
///
@@ -4371,7 +4193,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 开始分析按钮 分析绘制的七线和管线的距离是否符合标准
///
@@ -4464,13 +4285,9 @@
{
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
- if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) &&
- featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
+ if (featCount.ContainsKey(Utility.m_PipelineLayerNames[i]) && featLenth.ContainsKey(Utility.m_PipelineLayerNames[i]))
{
- listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" +
- featCount[Utility.m_PipelineLayerNames[i]] + "条,共" +
- featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") +
- "米");
+ listBoxStasticsResult.Items.Add(Utility.m_PipelineLayerNames[i] + ":" + featCount[Utility.m_PipelineLayerNames[i]] + "条,共" + featLenth[Utility.m_PipelineLayerNames[i]].ToString("0.00") + "米");
}
}
}
@@ -4486,7 +4303,6 @@
globeControl1.Refresh();
Cursor = Cursors.Default;
}
-
///
/// 间距分析 清除分析结果
///
@@ -4508,7 +4324,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 导出Excel按钮 将间距分析的结果以Excel表格的形式导出
///
@@ -4525,7 +4340,6 @@
MessageBox.Show("表格内容为空!", "提示");
}
}
-
///
/// 间距分析 关闭按钮
///
@@ -4547,7 +4361,6 @@
sideBar1.Visible = false;
Refresh();
}
-
///
/// 间距分析 分析结果表格双击定位
///
@@ -4565,9 +4378,8 @@
GSOGeoPolyline3D line = rowFeature.Geometry as GSOGeoPolyline3D;
if (line == null) return;
double length = line.GetSpaceLength(true, 6378137);
- GSOGeoPolyline3D lineLine = line.GetSegment(0, length/2);
- GSOPoint3d point3d =
- lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
+ GSOGeoPolyline3D lineLine = line.GetSegment(0, length / 2);
+ GSOPoint3d point3d = lineLine[lineLine.PartCount - 1][lineLine[lineLine.PartCount - 1].Count - 1];
globeControl1.Globe.JumpToPosition(point3d, EnumAltitudeMode.Absolute, 5);
}
@@ -4576,7 +4388,6 @@
}
}
}
-
///
/// 间距分析 选择管线复选框
///
@@ -4584,7 +4395,7 @@
///
private void checkBoxSelectPipeline_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
if (checkBoxSelectPipeline.Checked)
{
comboBoxLayer.SelectedItem = null;
@@ -4602,7 +4413,6 @@
comboBoxLayer.Enabled = true;
}
}
-
///
/// 间距分析 选择图层复选框
///
@@ -4610,7 +4420,7 @@
///
private void checkBoxSelectLayer_CheckedChanged(object sender, EventArgs e)
{
- clearFeatureHighLight(); //清除高亮
+ clearFeatureHighLight();//清除高亮
comboBoxLayer.Enabled = checkBoxSelectLayer.Checked;
if (checkBoxSelectLayer.Checked)
{
@@ -4625,7 +4435,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 间距分析 选择图层下拉框
///
@@ -4653,7 +4462,6 @@
}
}
}
-
///
/// 碰撞分析
///
@@ -4684,7 +4492,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 覆土分析
///
@@ -4714,7 +4521,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 间距分析
///
@@ -4748,7 +4554,6 @@
Refresh();
}
-
///
/// 垂直净距分析
///
@@ -4779,7 +4584,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距分析
///
@@ -4810,7 +4614,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 碰撞审查
///
@@ -4843,7 +4646,6 @@
Refresh();
}
-
///
/// 覆土审查
///
@@ -4874,7 +4676,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 水平净距审查
///
@@ -4905,7 +4706,6 @@
sideBar1.Refresh();
Refresh();
}
-
///
/// 垂直净距审查
///
@@ -4944,7 +4744,6 @@
sideBar1.Refresh();
Refresh();
}
-
#endregion
///
@@ -4991,14 +4790,14 @@
objRes = layer;
if (layer == null) return objRes;
CheckDatasetGeoReference(layer.Dataset, strDataPath);
- CheckDatasetGeoReference(layer.Dataset, strDataPath);
+// CheckDatasetGeoReference(layer.Dataset, strDataPath);
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
node.ImageIndex = 0;
node.SelectedImageIndex = 0;
node.Checked = layer.Visible;
- layerManagerNode.Nodes.Insert(0, node);
+ layerManagerNode.Nodes.Insert(0, node);
newlayername = layer.Caption;
}
else
@@ -5023,7 +4822,6 @@
}
return objRes;
}
-
///
/// 连接数据库 菜单事件处理
///
@@ -5041,7 +4839,6 @@
}
}
}
-
///
/// 根据指定图层创建图层节点并将节点添加到图层管理节点的子节点集合中
///
@@ -5050,17 +4847,17 @@
{
if (layer == null) return;
CheckDatasetGeoReference(layer.Dataset, "");
-
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
-
- if (layerManagerNode.Nodes.Contains(node)) return;
- layerManagerNode.Nodes.Insert(0, node);
- layerManagerNode.Expand();
+ TreeUtils.AddNodeToManagerNode(layerManagerNode,layer);
+// TreeNode node = new TreeNode();
+// node.Tag = layer;
+// node.Text = layer.Dataset.Caption;
+// node.ImageIndex = 0;
+// node.SelectedImageIndex = 0;
+// node.Checked = layer.Visible;
+//
+// if (layerManagerNode.Nodes.Contains(node)) return;
+// layerManagerNode.Nodes.Insert(0, node);
+// layerManagerNode.Expand();
}
///
@@ -5070,8 +4867,8 @@
///
private void layerMarkerTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
- if (e.Button != MouseButtons.Right || e.Node.Parent == null) return;
- if (e.Node.Parent.Text.Equals("标注管理"))
+ if (e.Button != MouseButtons.Right||e.Node.Parent==null) return;
+ if (e.Node.Parent.Text.Equals("标注管理") )
{
layerMarkerTree.SelectedNode = e.Node;
contextMenuStrip2.Show(layerMarkerTree, e.X, e.Y);
@@ -5085,7 +4882,7 @@
}
else
{
- if (!(e.Node.Tag is GSOFeature) || e.Node.Parent.Parent == null) return;
+ if (!(e.Node.Tag is GSOFeature)||e.Node.Parent.Parent==null) return;
if (e.Node.Parent.Parent.Text.Equals("标注管理"))
{
layerMarkerTree.SelectedNode = e.Node;
@@ -5100,7 +4897,6 @@
}
}
}
-
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 刷新列表 菜单
///
@@ -5114,25 +4910,16 @@
if (parentNode.Text.Equals("标注管理") || parentNode.Text.Equals("传感器管理"))
{
- RefreshTreeNodeLayerFeatureList(node);
+ node.Nodes.Clear();
+ GSOLayer layer = (GSOLayer)node.Tag;
+ // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
+ if (layer.Dataset is GSOFeatureDataset)
+ {
+ TreeUtils.AddNodesMatchFeatures(node,layer.GetAllFeatures());
+ }
}
}
-
- ///
- /// 给指定的图层节点添加代表feature对象的子节点
- ///
- ///
- private void RefreshTreeNodeLayerFeatureList(TreeNode layerTreeNode)
- {
- layerTreeNode.Nodes.Clear();
- GSOLayer layer = (GSOLayer) layerTreeNode.Tag;
- // 只将类型为内存数据集的图层列出,如果是其它类型的数据集可能数据量太大,没发显示在树控件中
- if (layer.Dataset is GSOFeatureDataset)
- {
- VisitFeature3Ds(layer.GetAllFeatures(), layerTreeNode);
- }
- }
-
+
///
/// 标注管理、传感器管理 图层目录树的右键菜单中的 移除所有 菜单
///
@@ -5148,7 +4935,6 @@
globeControl1.Globe.Refresh();
node.Remove();
}
-
///
/// 图层目录树的 节点对应的复选框选中状态改变事件处理
///
@@ -5159,10 +4945,10 @@
if (e.Action != TreeViewAction.Unknown)
{
//wxl优化标注管理树形结构
- TreeUtils.TreeNodeCheckedChange(globeControl1, e.Node);
+ TreeUtils.TreeNodeCheckedChange(globeControl1,e.Node);
}
}
-
+
///
/// 标注管理、传感器管理 目录树中的feature节点的右键菜单中的 删除 菜单
///
@@ -5177,7 +4963,6 @@
node.Nodes.Clear();
globeControl1.Refresh();
}
-
///
/// 一键审核---导入数据
///
@@ -5210,7 +4995,6 @@
MessageBox.Show("内存过载请清理内存,并重新启动规划分析!", "提示");
}
}
-
///
///自动导出图片
///
@@ -5219,7 +5003,7 @@
private void buttonItem130_Click_1(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "导出审核图");
-
+
Point pt1 = new Point(Convert.ToInt32(0), Convert.ToInt32(0));
Point pt2 = new Point(Convert.ToInt32(panelEx5.Width), Convert.ToInt32(panelEx5.Height));
@@ -5236,7 +5020,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -5256,7 +5040,6 @@
}
}
}
-
///
/// 一键审核功能
///
@@ -5266,12 +5049,11 @@
{
LogManager.saveLog(Utility.userName, buttonItem128.Text);
if (boolfrmShResult)
- {
-//关闭等待窗口,否则会一直存在下去
+ {//关闭等待窗口,否则会一直存在下去
MessageBox.Show("正在审核或关闭上次审核结果才能进行审核");
return;
}
- frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree); //layerManagerNode
+ frmSh = new FrmYJSHTC(globeControl1, globeControl2, layerTree);//layerManagerNode
if (frmSh.ShowDialog() == DialogResult.OK)
{
boolfrmShResult = true;
@@ -5291,7 +5073,7 @@
{
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
TreeUtils.AddNodeToManagerNode(layerManagerNode, frmSh.rukuLayer);
});
@@ -5312,7 +5094,7 @@
try
{
- this.Invoke((EventHandler) delegate
+ this.Invoke((EventHandler)delegate
{
frmShResult.Show();
returnShTap();
@@ -5340,7 +5122,6 @@
if (redLayer != null)
redLayer.Visible = false;
}
-
///
/// 清除渲染结果
///
@@ -5358,7 +5139,6 @@
layerTemp.RemoveAllFeature();
globeControl1.Refresh();
}
-
///
/// 审核入库
///
@@ -5370,7 +5150,6 @@
FrmShRK frmShrk = new FrmShRK(globeControl1);
frmShrk.Show();
}
-
///
/// 模拟设计修改
///
@@ -5388,7 +5167,6 @@
frmModify.Show();
boolfrmModify = true;
}
-
///
/// 一键审核中调节透明度
///
@@ -5405,7 +5183,6 @@
layer.Opaque = 100 - sliderItem1.Value;
optiValue = sliderItem1.Value;
}
-
///
/// 红线审核中的透明度分析
///
@@ -5421,12 +5198,9 @@
layer.Opaque = 100 - sliderItem3.Value;
optiValue = sliderItem3.Value;
}
-
#region yanxiaowei
-
//初始化DataGridViewX1控件
public delegate void DataGridViewDelegate(DataTable dt, string strLable, string strLayer, bool initDataGrid);
-
///
/// 代理函数,操作DatgridViewX1
///
@@ -5451,9 +5225,7 @@
globeControl1.Globe.MemoryLayer.RemoveAllFeature(); //清除双击产生的标注
}
}
-
FrmAnalysisGuiHuaResult from;
-
///
/// 主窗体下方属性表格 双击定位 功能
///
@@ -5523,7 +5295,6 @@
}
}
}
-
///
/// 空间查询
///
@@ -5537,19 +5308,17 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 关键字查询
///
///
///
private void 关键字查询ToolStripMenuItem_Click(object sender, EventArgs e)
- {
+ {
LogManager.saveLog(Utility.userName, "关键字查询");
FrmKeywordQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 编号查询
///
@@ -5561,7 +5330,6 @@
FrmCodingQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 坐标查询
///
@@ -5573,7 +5341,6 @@
FrmSetLatLonPos.ShowForm(globeControl1);
}
-
///
/// 附属物查询
///
@@ -5585,7 +5352,6 @@
FrmFittingQuery.ShowForm(globeControl1, Utility.instrumenLayerNames, InitDataGridViewX1);
}
-
///
/// 管径查询
///
@@ -5597,7 +5363,6 @@
FrmDiameterQuery.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 材质查询
///
@@ -5609,7 +5374,6 @@
FrmMaterialSel.ShowForm(globeControl1, Utility.m_PipelineLayerNames, InitDataGridViewX1);
}
-
///
/// 基本查询
///
@@ -5621,7 +5385,6 @@
FrmBasicQuery.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 复合查询
///
@@ -5633,7 +5396,6 @@
FrmQuerySQL.ShowForm(globeControl1, InitDataGridViewX1);
}
-
///
/// 关联查询
///
@@ -5656,19 +5418,14 @@
GSOLayer layer = null;
globeControl1.Globe.GetSelectObject(j, out feature, out layer);
- if (feature == null && feature.Geometry == null ||
- (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
- || feature.Geometry.Type == EnumGeometryType.GeoWater))
+ if (feature == null && feature.Geometry == null || (feature.Geometry.Type == EnumGeometryType.GeoPolygon3D
+ || feature.Geometry.Type == EnumGeometryType.GeoWater))
return;
- ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames,
- Utility.workwellLayerNames,
- Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames,
- valueAllowance);
+ ClassSearchAnalysis.ResultRelationAnalysis(globeControl1, feature, Utility.valueLayerNames, Utility.workwellLayerNames,
+ Utility.instrumenLayerNames, Utility.pipefittingLayerNames, Utility.m_PipelineLayerNames, valueAllowance);
}
}
-
#endregion
-
///
/// 清除分析(完善)
///
@@ -5698,14 +5455,14 @@
NetworkAnalysisTool.ClearAllTopAnalysis(globeControl1);
- globeControl1.Globe.UnderGroundFloor.Visible = false; //隐藏地下网格线
+ globeControl1.Globe.UnderGroundFloor.Visible = false;//隐藏地下网格线
// ClearUpDownTraceAnalysis(); //清除上下游分析
- globeControl1.Globe.RemoveAllPits(); //清除所有坑
- MarkTools.removeAllMarker(globeControl1); //清除所有标注
- clearFeatureHighLight(); //取消管线高亮
+ globeControl1.Globe.RemoveAllPits();//清除所有坑
+ MarkTools.removeAllMarker(globeControl1);//清除所有标注
+ clearFeatureHighLight();//取消管线高亮
- GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layerGround = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layerGround != null)
{
layerGround.Visible = true;
@@ -5716,7 +5473,6 @@
globeControl1.Refresh();
globeControl2.Refresh();
}
-
///
/// 管线长度全区域统计
///
@@ -5725,11 +5481,9 @@
private void 管线长度统计ToolStripMenuItem_Click(object sender, EventArgs e)
{
LogManager.saveLog(Utility.userName, "管线长度统计");
- FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1,
- Utility.m_PipelineLayerNames);
+ FrmAllPipelineStatis frm = new FrmAllPipelineStatis(globeControl1, null, InitDataGridViewX1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 管线长度绘制区域统计
///
@@ -5743,7 +5497,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 阀门数量全区域统计
///
@@ -5757,7 +5510,6 @@
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
-
///
/// 阀门数量绘制区域统计
///
@@ -5771,7 +5523,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 井盖数量全区域统计
///
@@ -5782,7 +5533,6 @@
FrmAllWorkWellStatis frm = new FrmAllWorkWellStatis(globeControl1, null, InitDataGridViewX1);
frm.Show(this);
}
-
///
/// 井盖数量绘制区域统计
///
@@ -5796,7 +5546,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 管径分段统计全区域统计
///
@@ -5808,7 +5557,6 @@
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分段统计绘制区域统计
///
@@ -5821,7 +5569,6 @@
trackflag = null;
Frmpipediameterstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 埋深分段统计全区域统计
///
@@ -5832,7 +5579,6 @@
LogManager.saveLog(Utility.userName, "埋深分段统计");
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 埋深分段统计绘制区域统计
///
@@ -5844,7 +5590,6 @@
trackflag = null;
FrmpipeDeepstatis.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 管径分类统计全区域统计
///
@@ -5856,7 +5601,6 @@
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 管径分类统计绘制区域统计
///
@@ -5869,7 +5613,6 @@
trackflag = null;
FrmpipeDiametergather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 材质分类统计全区域统计
///
@@ -5881,7 +5624,6 @@
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 0);
}
-
///
/// 材质分类统计绘制区域统计
///
@@ -5894,7 +5636,6 @@
trackflag = null;
FrmpipeMaterialGather.ShowForm(globeControl1, Utility.m_PipelineLayerNames, 1);
}
-
///
/// 附属物分类统计全区域统计
///
@@ -5906,7 +5647,6 @@
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 0);
}
-
///
/// 附属物分类统计绘制区域统计
///
@@ -5919,9 +5659,7 @@
trackflag = null;
FrmAccessoriesgather.ShowForm(globeControl1, Utility.instrumenLayerNames, 1);
}
-
#region Predaotr,断面分析
-
///
/// 横断面分析
///
@@ -5934,7 +5672,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.HDM_Analysis;
}
-
///
/// 纵断面分析
///
@@ -5954,8 +5691,7 @@
GSOFeature feature;
GSOLayer layer;
globeControl1.Globe.GetSelectObject(i, out feature, out layer);
- if (feature != null && feature.Geometry != null &&
- feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
+ if (feature != null && feature.Geometry != null && feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
selectFeatures.Add(feature);
}
@@ -5965,7 +5701,6 @@
FrmProfileAnalysis frm = new FrmProfileAnalysis(globeControl1, feats);
frm.Show(this);
}
-
///
/// 道路断面分析
///
@@ -5978,7 +5713,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.DLDM_Analysis;
}
-
///
/// 基线剖面分析
///
@@ -5991,9 +5725,7 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.JXPM_Analysis;
}
-
#endregion
-
///
/// 创建拓扑
///
@@ -6007,9 +5739,7 @@
FrmGenAndFaMenTopu frm = new FrmGenAndFaMenTopu(globeControl1);
frm.Show(this);
}
-
#region Predator :拓扑分析
-
///
/// 上游分析
///
@@ -6021,7 +5751,6 @@
LogManager.saveLog(Utility.userName, "上游分析");
NetworkTraceUpDown(true);
}
-
///
/// 下游分析
///
@@ -6033,7 +5762,6 @@
LogManager.saveLog(Utility.userName, "下游分析");
NetworkTraceUpDown(false);
}
-
///
/// 上下游追踪 功能
///
@@ -6041,8 +5769,7 @@
private void NetworkTraceUpDown(Boolean bTraceUp)
{
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6050,9 +5777,8 @@
GSOLayer selLayer = globeControl1.Globe.SelectedObjectLayer;
NetworkAnalysisTool.TraceUpDownAnalysis(bTraceUp,
- selLineFeature, selLayer);
+ selLineFeature, selLayer);
}
-
///
/// 流向分析
///
@@ -6066,7 +5792,6 @@
FrmFlow frm = new FrmFlow(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 关阀分析
///
@@ -6106,7 +5831,6 @@
MessageBox.Show("未找到关闭阀门");
}
}
-
///
/// 连通分析
///
@@ -6133,7 +5857,6 @@
}
NetworkAnalysisTool.ConnexityAnalysis(selFeat0, selFeat1, layer0);
}
-
///
/// 爆管分析
///
@@ -6141,11 +5864,10 @@
///
private void 爆管分析ToolStripMenuItem_Click(object sender, EventArgs e)
{
- NetworkTraceUpDown(true); //上游追踪:
+ NetworkTraceUpDown(true); //上游追踪:
GSOFeature selLineFeature = globeControl1.Globe.SelectedObject;
- if (selLineFeature == null || selLineFeature.Geometry == null ||
- selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
+ if (selLineFeature == null || selLineFeature.Geometry == null || selLineFeature.Geometry.Type != EnumGeometryType.GeoPolyline3D)
{
MessageBox.Show("请点击“编辑”—“选中对象”选择一条线!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
@@ -6156,9 +5878,7 @@
关阀分析ToolStripMenuItem_Click(sender, e); //关阀分析:
}
-
#endregion
-
///
/// 多边形开挖
///
@@ -6172,7 +5892,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack; //是这个么?是的,在模型上
}
-
///
/// 挖方量分析
///
@@ -6186,7 +5905,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
globeControl1.Globe.TrackPolygonTool.TrackMode = EnumTrackMode.SpaceTrack;
}
-
///
/// 沿线开挖
///
@@ -6200,7 +5918,6 @@
globeControl1.Globe.TrackPolylineTool.TrackMode = EnumTrackMode.SpaceTrack;
trackPolylineEndMode = EnumTrackPolylineEndMode.YXKW_Analysis;
}
-
///
/// 创建隧道
///
@@ -6219,9 +5936,9 @@
globeControl1.Globe.DestLayerFeatureAdd = tunnel;
tunnel.Editable = true;
enumDesignMode = EnumDesignMode.AddTunnel;
+
}
}
-
///
/// 隐藏隧道
///
@@ -6237,7 +5954,6 @@
layer.Visible = !layer.Visible;
}
}
-
///
/// 删除隧道
///
@@ -6274,7 +5990,6 @@
MessageBox.Show("请选中要删除的隧道!", "提示");
}
}
-
///
/// 通视分析
///
@@ -6285,11 +6000,8 @@
//日志记录
LogManager.saveLog(Utility.userName, "通视分析");
- globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis
- ? EnumAction3D.VisibilityAnalysis
- : EnumAction3D.ActionNull;
+ globeControl1.Globe.Action = globeControl1.Globe.Action != EnumAction3D.VisibilityAnalysis ? EnumAction3D.VisibilityAnalysis : EnumAction3D.ActionNull;
}
-
///
/// 可视域分析
///
@@ -6301,7 +6013,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewshedAnalysis;
}
-
///
/// 可视包络分析
///
@@ -6313,7 +6024,6 @@
globeControl1.Globe.Action = EnumAction3D.ViewEnvelopeAnalysis;
}
-
///
/// 缓冲区分析
///
@@ -6348,7 +6058,6 @@
}
}
-
///
/// 附属物分析
///
@@ -6362,7 +6071,6 @@
FrmAccessoryAnalysis dlg = new FrmAccessoryAnalysis(globeControl1, layerTemp);
dlg.Show(this);
}
-
///
/// 无源淹没分析
///
@@ -6375,7 +6083,6 @@
globeControl1.Globe.Action = EnumAction3D.TrackPolygon;
trackflag = "FloodAnalysis";
}
-
///
/// 水平距离
///
@@ -6390,7 +6097,6 @@
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
高度量算ToolStripMenuItem1.Checked = false;
}
-
///
/// 垂直距离
///
@@ -6405,7 +6111,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureHeight;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 空间距离
///
@@ -6420,7 +6125,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = true;
}
-
///
/// 地表距离
///
@@ -6435,7 +6139,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureDistance;
globeControl1.Globe.DistanceRuler.SpaceMeasure = false;
}
-
///
/// 高度量算
///
@@ -6451,7 +6154,6 @@
if (!高度量算ToolStripMenuItem1.Checked) return;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 水平面积
///
@@ -6466,7 +6168,6 @@
globeControl1.Globe.Action = EnumAction3D.MeasureArea;
globeControl1.Globe.AreaRuler.SpaceMeasure = true;
}
-
///
/// 地表面积
///
@@ -6484,7 +6185,6 @@
}
# region Fan 重构标注代码
-
///
/// 标高标注
///
@@ -6507,7 +6207,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Altitude, "");
}
-
///
/// 管径标注
///
@@ -6527,9 +6226,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Diameter, "");
+ globeControl1, EnumMarkLayer.Mark_Diameter, "");
}
-
///
/// 埋深标注
///
@@ -6553,7 +6251,6 @@
globeControl1, EnumMarkLayer.Mark_Depth, "");
}
-
///
/// 坐标标注
///
@@ -6575,7 +6272,6 @@
MarkTools.getInstance().showMarker(resFeature,
globeControl1, EnumMarkLayer.Mark_Location, "");
}
-
///
/// 距离标注
///
@@ -6589,7 +6285,6 @@
trackPolylineEndMode = EnumTrackPolylineEndMode.JLBZ_Analysis;
}
-
///
/// 自定义标注
///
@@ -6605,7 +6300,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Custom, frm.labelText);
}
}
-
///
/// 扯旗标注
///
@@ -6621,7 +6315,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Flag, frm.markerContent);
}
}
-
///
/// 坡度标注
///
@@ -6642,9 +6335,8 @@
}
MarkTools.getInstance().showMarker(resFeature,
- globeControl1, EnumMarkLayer.Mark_Slope, "");
+ globeControl1, EnumMarkLayer.Mark_Slope, "");
}
-
///
/// 属性标注
///
@@ -6660,7 +6352,6 @@
MarkTools.getInstance().showMarker(f, globeControl1, EnumMarkLayer.Mark_Property, frm.labelText);
}
}
-
///
/// 标注管理
///
@@ -6723,7 +6414,6 @@
}
#endregion
-
///
/// 飞行到目标点
///
@@ -6736,7 +6426,6 @@
FrmSetFlytoPos.ShowForm(globeControl1);
}
-
///
/// 自定义飞行
///
@@ -6774,7 +6463,6 @@
globeControl1.Globe.FlyEyeAlongWithLine(line, m_dFlyAboveLine, 85, true, 0, false);
}
}
-
///
/// 绕中心点飞行
///
@@ -6788,7 +6476,6 @@
globeControl1.Globe.FlyAroundCenter(10000, EnumFlyRepeatValueType.MiliSeconds);
globeControl1.Globe.CurFlyID = 1;
}
-
///
/// 绕眼睛飞行
///
@@ -6802,7 +6489,6 @@
globeControl1.Globe.FlyAroundEye(720, EnumFlyRepeatValueType.Degrees);
globeControl1.Globe.CurFlyID = 2;
}
-
///
/// 权限管理
///
@@ -6816,7 +6502,6 @@
FrmUserRoleMgr frm = new FrmUserRoleMgr();
frm.ShowDialog();
}
-
///
/// 数据库管理
///
@@ -6831,7 +6516,6 @@
FrmDbManager frm = new FrmDbManager();
frm.ShowDialog();
}
-
///
/// 用户列表
///
@@ -6845,7 +6529,6 @@
FrmUserManager frm = new FrmUserManager();
frm.ShowDialog();
}
-
///
/// 创建新用户
///
@@ -6859,7 +6542,6 @@
FrmUserAdd frm = new FrmUserAdd(-1);
frm.ShowDialog();
}
-
///
/// 人员修改
///
@@ -6873,7 +6555,6 @@
FrmAppUSER appUser = new FrmAppUSER();
appUser.ShowDialog();
}
-
///
/// 增加人员
///
@@ -6887,7 +6568,6 @@
FrmAppUSERRESET appUserReset = new FrmAppUSERRESET();
appUserReset.ShowDialog();
}
-
///
/// 热点功能统计
///
@@ -6982,7 +6662,6 @@
FrmAPPregion appregion = new FrmAPPregion("拷贝审核");
appregion.Show();
}
-
private void buttonItemSPSZ_Click(object sender, EventArgs e)
{
//日志记录
@@ -6991,7 +6670,6 @@
FrmLayerControl frm = new FrmLayerControl(globeControl1, globeControl2);
frm.Show(this);
}
-
///
/// 综合规划区域审查
///
@@ -7004,7 +6682,6 @@
FrmCityServerLineAnalysis frm = new FrmCityServerLineAnalysis(globeControl1, Utility.m_PipelineLayerNames);
frm.Show(this);
}
-
///
/// 数据质量检查
///
@@ -7017,7 +6694,6 @@
FrmValiData frm = new FrmValiData(globeControl1);
frm.ShowDialog();
}
-
///
/// 数据预处理
///
@@ -7031,7 +6707,6 @@
FrmEditShapeFile frm = new FrmEditShapeFile(globeControl1);
frm.ShowDialog(this);
}
-
///
/// 连接数据库
///
@@ -7052,7 +6727,6 @@
}
}
}
-
///
/// 管线入库
///
@@ -7077,7 +6751,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 附属物入库
///
@@ -7103,7 +6776,6 @@
addNodeToLayerManagerNode(frm.rukuLayer);
}
}
-
///
/// 坐标转换
///
@@ -7117,7 +6789,6 @@
FrmProject frm = new FrmProject();
frm.ShowDialog();
}
-
///
/// 元数据基本管理
///
@@ -7131,7 +6802,6 @@
FrmMetadata frmmd = new FrmMetadata();
frmmd.ShowDialog();
}
-
///
/// 元数据查询管理
///
@@ -7145,7 +6815,6 @@
FrmMetadataStat frmmds = new FrmMetadataStat();
frmmds.ShowDialog();
}
-
///
/// 操作日志管理
///
@@ -7159,7 +6828,6 @@
FrmLogOper frmlo = new FrmLogOper();
frmlo.ShowDialog();
}
-
///
/// 数据字典管理
///
@@ -7173,7 +6841,6 @@
FrmMDDictory frmmdd = new FrmMDDictory();
frmmdd.ShowDialog();
}
-
///
/// 数据库备份
///
@@ -7188,9 +6855,7 @@
FrmBACKORACLE backOracle = new FrmBACKORACLE();
backOracle.Show();
}
-
#region 模拟规划:Fan
-
///
/// 创建管段
///
@@ -7208,7 +6873,6 @@
globeControl1.Globe.Action = EnumAction3D.DrawPolyline;
}
}
-
///
/// 创建附属物
///
@@ -7228,7 +6892,6 @@
dlg.Show(this);
}
}
-
///
/// 创建特征管点
///
@@ -7248,7 +6911,6 @@
dlg.Show(this);
}
}
-
///
/// 绘制城市七线
///
@@ -7275,9 +6937,7 @@
layer.Editable = true;
}
}
-
#endregion
-
///
/// 选中对象
///
@@ -7290,7 +6950,6 @@
globeControl1.Globe.Action = EnumAction3D.SelectObject;
}
-
///
/// 平移对象
///
@@ -7303,7 +6962,6 @@
globeControl1.Globe.Action = EnumAction3D.MoveObject;
}
-
///
/// 升降对象
///
@@ -7316,7 +6974,6 @@
globeControl1.Globe.Action = EnumAction3D.ElevateObject;
}
-
///
/// 旋转对象
///
@@ -7329,7 +6986,6 @@
globeControl1.Globe.Action = EnumAction3D.RotateObject;
}
-
///
/// 连接管段
///
@@ -7347,7 +7003,6 @@
}
globeControl1.Globe.InsertJointPipeline(false);
}
-
///
/// 后退
///
@@ -7358,7 +7013,6 @@
LogManager.saveLog(Utility.userName, "后退");
globeControl1.Globe.UnDoEdit();
}
-
///
/// 前进
///
@@ -7370,7 +7024,6 @@
globeControl1.Globe.ReDoEdit();
}
-
///
/// 导出CAD
///
@@ -7382,14 +7035,13 @@
LogManager.saveLog(Utility.userName, "导出CAD");
#region 导出成dxf格式
-
List listVectorNames = new List();
for (int i = 0; i < Utility.m_PipelineLayerNames.Count; i++)
{
if (Utility.m_PipelineLayerNames[i] == "移动" || Utility.m_PipelineLayerNames[i] == "联通"
- || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
- || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
- || Utility.m_PipelineLayerNames[i] == "供电")
+ || Utility.m_PipelineLayerNames[i] == "电信" || Utility.m_PipelineLayerNames[i] == "共通"
+ || Utility.m_PipelineLayerNames[i] == "有线电视" || Utility.m_PipelineLayerNames[i] == "交通信号"
+ || Utility.m_PipelineLayerNames[i] == "供电")
{
continue;
}
@@ -7427,12 +7079,10 @@
}
}
- FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames); //Utility.m_PipelineLayerNames);
+ FrmExportCADS frm = new FrmExportCADS(globeControl1, listVectorNames);//Utility.m_PipelineLayerNames);
frm.ShowDialog();
-
#endregion
}
-
///
/// 导出矢量
///
@@ -7505,14 +7155,14 @@
globeControl1.Globe.GetSelectObject(i, out f, out layer);
if (layer != null)
globeControl1.Globe.AddToEditHistroy(layer, f, EnumEditType.Delete);
- bool result = FeatureTools.DeleteFeature(f);
+ bool result = FeatureTools.DeleteFeature(f);
if (result) delSuccessCount++;
globeControl1.Refresh();
-
+
}
- MessageBox.Show("成功删除" + delSuccessCount + "个模型!", "提示");
+ MessageBox.Show("成功删除"+delSuccessCount+"个模型!", "提示");
globeControl1.Globe.Action = EnumAction3D.ActionNull;
}
@@ -7553,7 +7203,6 @@
LogHelper.WriteLog(typeof(MainFrm), ex);
}
}
-
void addRedLineDataToDataGridView(List dt, DataGridView dataGridView)
{
DataTable table = new DataTable();
@@ -7620,12 +7269,12 @@
LogManager.saveLog(Utility.userName, sliderItem2.Text);
globeControl1.Globe.GroundOpaque = 100 - sliderItem2.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
}
- layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
+ layer = globeControl2.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);//("180fd");
if (layer != null)
{
layer.Opaque = 100 - sliderItem2.Value;
@@ -7634,7 +7283,6 @@
optiValue = sliderItem2.Value;
}
-
///
/// 数据管理导入文件
///
@@ -7646,8 +7294,7 @@
LogManager.saveLog(Utility.userName, buttonItemSJGL1.Text);
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|栅格数据(*.lrp)|*.lrp|栅格缓存(*.lrc)|*.lrc|KML数据(*.kml)|*.kml|矢量数据(*.lgd)|*.lgd|矢量缓存(*.gft)|*.gft|CAD文件(*.dxf)|*.dxf|全部支持格式(*.lrp,*.tif,*.img,*.lrc,*.kml,*.lgd,*.shp,*.gft,*.dxf)|*.lrp;*.tif;*.img;*.lrc;*.kml;*.lgd;*.shp;*.gft;*.dxf";
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
@@ -7679,7 +7326,6 @@
}
}
}
-
///
/// 导入红线(完善)
///
@@ -7689,19 +7335,14 @@
{
LogManager.saveLog(Utility.userName, buttonItemHX1.Text);
- GSODataSource dataSpace =
- globeControl1.Globe.DataManager.OpenOracleDataSource(
- Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID,
- Utility.DBPassword);
+ GSODataSource dataSpace = globeControl1.Globe.DataManager.OpenOracleDataSource(Utility.DBServer.Trim() + "/" + Utility.dbdatabase.Trim(), "", "", Utility.userID, Utility.DBPassword);
string filepath = "";
//日志记录
OpenFileDialog dlg = new OpenFileDialog();
- dlg.Filter =
- "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
+ dlg.Filter = "矢量数据(*.shp)|*.shp|矢量数据(*.lgd)|*.lgd|CAD数据(*.dxf)|*.dxf|全部支持格式(*.lgd,*.shp,*.dxf)|*.lgd;*.shp;*.dxf;";
dlg.Multiselect = true;
#region 临时图层显示
-
if (dlg.ShowDialog() == DialogResult.OK)
{
#region
@@ -7712,8 +7353,7 @@
GSOLayer layer = globeControl1.Globe.Layers.Add(strDataPath);
if (layer == null)
- {
-//wxl
+ {//wxl
LogHelper.WriteLog(typeof(MainFrm), "buttonItemHX1_Click操作中," + strDataPath + "的layer为空");
continue;
}
@@ -7722,7 +7362,7 @@
layerRedRegion = layer;
// CheckDatasetGeoReference(layer.Dataset, strDataPath);
bool checkresult = CheckDatasetGeoReference(layer.Dataset, strDataPath);
- if (!checkresult) continue; //wxl 没通过检查,跳过此次循环
+ if (!checkresult) continue;//wxl 没通过检查,跳过此次循环
TreeNode node = new TreeNode();
node.Tag = layer;
node.Text = layer.Dataset.Caption;
@@ -7766,8 +7406,7 @@
globeControl1.Globe.GroundOpaque = 100 - sliderGroundTransSet1.Value;
- GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- //("180fd");
+ GSOLayer roadlayer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName); //("180fd");
if (roadlayer != null)
{
roadlayer.Opaque = 100 - sliderGroundTransSet1.Value;
@@ -7787,10 +7426,8 @@
#endregion
}
-
#endregion
}
-
///
/// 定位
///
@@ -7803,7 +7440,6 @@
FrmFlyToPosition fly = new FrmFlyToPosition(globeControl1, globeControl2);
fly.Show(this);
}
-
///
/// 红线审核
///
@@ -7817,8 +7453,7 @@
globeControl1.BeforeSceneRenderEvent -= globeControl1_BeforeSceneRenderEvent;
globeControl2.BeforeSceneRenderEvent -= globeControl2_BeforeSceneRenderEvent;
- globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute,
- -4, 50, 800);
+ globeControl1.Globe.FlyToPosition(new GSOPoint3d(120.610963, 31.188121, 50), EnumAltitudeMode.Absolute, -4, 50, 800);
globeControl1.Globe.FlyToPointSpeed = 10000000;
globeControl1.Globe.Action = EnumAction3D.SelectObject;
globeControl1.Refresh();
@@ -7840,7 +7475,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础工具
///
@@ -7872,7 +7506,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 一键审核
///
@@ -7904,7 +7537,7 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
+
///
/// 双屏对比
///
@@ -7938,7 +7571,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 文档管理
///
@@ -7970,7 +7602,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 基础管理
///
@@ -8002,7 +7633,6 @@
//MessageBox.Show("系统运行错误:" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-
///
/// 权限管理
///
@@ -8048,7 +7678,6 @@
int width = Width;
FrmCompareFeature.ShowForm(globeControl1, globeControl2, width);
}
-
///
/// 红线审核导出图片
///
@@ -8074,7 +7703,7 @@
dlg.Filter = "输出JPEG(*.jpg)|*.jpg|输出PNG(*.png)|*.png|输出BMP(*.bmp)|*.bmp|输出BMP(*.gif)|*.gif";
if (dlg.ShowDialog() == DialogResult.OK)
{
- string extension = Path.GetExtension(dlg.FileName); //扩展名
+ string extension = Path.GetExtension(dlg.FileName);//扩展名
switch (extension)
{
case ".jpg":
@@ -8094,7 +7723,6 @@
}
}
}
-
///
/// 标识器全区域统计
///
@@ -8106,7 +7734,6 @@
FrmBSQStatis bsqStatis = new FrmBSQStatis(globeControl1, null);
bsqStatis.Show(this);
}
-
///
/// 标识器绘制区域统计
///
@@ -8141,7 +7768,6 @@
globeControl1.Refresh();
}
}
-
///
/// 规划数据入库
///
@@ -8203,7 +7829,7 @@
frm.ShowDialog();
}
}
-
+
//文档管理 操作
private void btn_document_info_Click(object sender, EventArgs e)
{
@@ -8243,8 +7869,7 @@
GSORect2d rd = lyr.LatLonBounds;
GSOPoint2d rdcenter = rd.Center;
- globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute,
- 100);
+ globeControl1.Globe.JumpToPosition(new GSOPoint3d(rdcenter.X, rdcenter.Y, 0), EnumAltitudeMode.Absolute, 100);
globeControl1.Refresh();
}
@@ -8315,7 +7940,6 @@
}
#region 右屏管纵数据控制
-
private void 五十米主干道ToolStripMenuItem_Click(object sender, EventArgs e)
{
lendendGZ50.Visible = true;
@@ -8408,7 +8032,6 @@
lendendGZ24_2.Visible = false;
lendendGZ24_3.Visible = false;
}
-
#endregion
private void buttonItemPasswordReset_Click(object sender, EventArgs e)
@@ -8418,32 +8041,10 @@
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
- {
+ {
string welcomeUser = "欢迎您:" + Utility.userName;
e.Graphics.DrawString(welcomeUser, new Font("宋体", 12), new SolidBrush(Color.Black), Width - 180, 50);
}
- //电子标识系统合并
- private void btn_flag_Click(object sender, EventArgs e)
- {
- if (FrmFlagManagers.IS_OPEN)
- {
- return;
- }
- FrmFlagManagers frm = new FrmFlagManagers(globeControl1);
- frm.Show(this);
- }
-
- private void slider4ground_ValueChanged(object sender, EventArgs e)
- {
- LogManager.saveLog(Utility.userName, slider4ground.Text);
-
- globeControl1.Globe.GroundOpaque = 100 - slider4ground.Value;
- GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(Utility.roadLayerName);
- if (layer != null)
- layer.Opaque = 100 - slider4ground.Value;
- optiValue = slider4ground.Value;
- }
-
}
}
\ No newline at end of file
diff --git a/MainFrm.designer.cs b/MainFrm.designer.cs
index b086c69..a58c89b 100644
--- a/MainFrm.designer.cs
+++ b/MainFrm.designer.cs
@@ -244,43 +244,6 @@
this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.定位ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
- this.ribbonPanel3 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar4 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_flag = new DevComponents.DotNetBar.ButtonItem();
- this.slider4ground = new DevComponents.DotNetBar.SliderItem();
- this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
- this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
- this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
- this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
- this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
- this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
- this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
- this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
- this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
- this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
- this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
- this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
- this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
- this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel15 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar20 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSH = new DevComponents.DotNetBar.ButtonItem();
@@ -336,6 +299,18 @@
this.buttonItemXT4 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_1 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemXT4_2 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_user_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_resc_info = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_role_resc = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_user_role = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_password_edit = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItemPasswordReset = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel4 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
+ this.btn_document_info = new DevComponents.DotNetBar.ButtonItem();
this.ribbonPanel6 = new DevComponents.DotNetBar.RibbonPanel();
this.ribbonBar6 = new DevComponents.DotNetBar.RibbonBar();
this.buttonItemSPSZ = new DevComponents.DotNetBar.ButtonItem();
@@ -349,6 +324,27 @@
this.buttonItemHX2 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItemDCTP = new DevComponents.DotNetBar.ButtonItem();
this.sliderItem3 = new DevComponents.DotNetBar.SliderItem();
+ this.ribbonPanel12 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar18 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem133 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem132 = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonBar13 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem127 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem128 = new DevComponents.DotNetBar.ButtonItem();
+ this.sliderItem1 = new DevComponents.DotNetBar.SliderItem();
+ this.buttonItem134 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem130 = new DevComponents.DotNetBar.ButtonItem();
+ this.btn_check_history = new DevComponents.DotNetBar.ButtonItem();
+ this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
+ this.ribbonBar21 = new DevComponents.DotNetBar.RibbonBar();
+ this.buttonItem87 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem88 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem91 = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnlegendSet = new DevComponents.DotNetBar.ButtonItem();
+ this.buttonItem89 = new DevComponents.DotNetBar.ButtonItem();
+ this.btnOutputJPG = new DevComponents.DotNetBar.ButtonItem();
this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem11 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem6 = new DevComponents.DotNetBar.RibbonTabItem();
@@ -356,7 +352,6 @@
this.ribbonTabItem4 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem14 = new DevComponents.DotNetBar.RibbonTabItem();
this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem();
- this.ribbonTabItemBSQ = new DevComponents.DotNetBar.RibbonTabItem();
this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem101 = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem90 = new DevComponents.DotNetBar.ButtonItem();
@@ -544,14 +539,13 @@
this.contextMenuStrip3.SuspendLayout();
this.contextMenuStripDeleteLayerNode.SuspendLayout();
this.ribbonControl1.SuspendLayout();
- this.ribbonPanel3.SuspendLayout();
- this.ribbonPanel4.SuspendLayout();
- this.ribbonPanel1.SuspendLayout();
- this.ribbonPanel12.SuspendLayout();
- this.ribbonPanel2.SuspendLayout();
this.ribbonPanel15.SuspendLayout();
+ this.ribbonPanel2.SuspendLayout();
+ this.ribbonPanel4.SuspendLayout();
this.ribbonPanel6.SuspendLayout();
this.ribbonPanel5.SuspendLayout();
+ this.ribbonPanel12.SuspendLayout();
+ this.ribbonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panelOfTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
@@ -2176,14 +2170,13 @@
//
this.ribbonControl1.BackgroundStyle.Class = "";
this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonControl1.Controls.Add(this.ribbonPanel3);
- this.ribbonControl1.Controls.Add(this.ribbonPanel4);
- this.ribbonControl1.Controls.Add(this.ribbonPanel1);
- this.ribbonControl1.Controls.Add(this.ribbonPanel12);
- this.ribbonControl1.Controls.Add(this.ribbonPanel2);
this.ribbonControl1.Controls.Add(this.ribbonPanel15);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel2);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel4);
this.ribbonControl1.Controls.Add(this.ribbonPanel6);
this.ribbonControl1.Controls.Add(this.ribbonPanel5);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel12);
+ this.ribbonControl1.Controls.Add(this.ribbonPanel1);
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -2193,8 +2186,7 @@
this.ribbonTabItem9,
this.ribbonTabItem4,
this.ribbonTabItem14,
- this.ribbonTabItem2,
- this.ribbonTabItemBSQ});
+ this.ribbonTabItem2});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
this.ribbonControl1.Location = new System.Drawing.Point(0, 82);
this.ribbonControl1.MdiSystemItemVisible = false;
@@ -2226,612 +2218,15 @@
this.ribbonControl1.Text = "ribbonControl1";
this.ribbonControl1.UseCustomizeDialog = false;
//
- // ribbonPanel3
- //
- this.ribbonPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel3.Controls.Add(this.ribbonBar4);
- this.ribbonPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel3.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel3.Name = "ribbonPanel3";
- this.ribbonPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel3.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel3.Style.Class = "";
- this.ribbonPanel3.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseDown.Class = "";
- this.ribbonPanel3.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel3.StyleMouseOver.Class = "";
- this.ribbonPanel3.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel3.TabIndex = 40;
- //
- // ribbonBar4
- //
- this.ribbonBar4.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar4.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar4.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.BackgroundStyle.Class = "";
- this.ribbonBar4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.ContainerControlProcessDialogKey = true;
- this.ribbonBar4.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar4.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_flag,
- this.slider4ground});
- this.ribbonBar4.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar4.Name = "ribbonBar4";
- this.ribbonBar4.Size = new System.Drawing.Size(304, 59);
- this.ribbonBar4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar4.TabIndex = 0;
- //
- //
- //
- this.ribbonBar4.TitleStyle.Class = "";
- this.ribbonBar4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar4.TitleStyleMouseOver.Class = "";
- this.ribbonBar4.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar4.TitleVisible = false;
- //
- // btn_flag
- //
- this.btn_flag.Image = global::Cyberpipe.Properties.Resources._24x24icon_03_hover;
- this.btn_flag.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_flag.Name = "btn_flag";
- this.btn_flag.SubItemsExpandWidth = 14;
- this.btn_flag.Text = "标识器管理";
- this.btn_flag.Click += new System.EventHandler(this.btn_flag_Click);
- //
- // slider4ground
- //
- this.slider4ground.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.slider4ground.LabelWidth = 50;
- this.slider4ground.Name = "slider4ground";
- this.slider4ground.Text = "地面透明度";
- this.slider4ground.TextColor = System.Drawing.Color.Black;
- this.slider4ground.Value = 0;
- this.slider4ground.ValueChanged += new System.EventHandler(this.slider4ground_ValueChanged);
- //
- // ribbonPanel4
- //
- this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel4.Controls.Add(this.ribbonBar1);
- this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel4.Name = "ribbonPanel4";
- this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel4.Style.Class = "";
- this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseDown.Class = "";
- this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel4.StyleMouseOver.Class = "";
- this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel4.TabIndex = 36;
- this.ribbonPanel4.Visible = false;
- //
- // ribbonBar1
- //
- this.ribbonBar1.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.BackgroundStyle.Class = "";
- this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.ContainerControlProcessDialogKey = true;
- this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_document_info});
- this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar1.Name = "ribbonBar1";
- this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
- this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar1.TabIndex = 0;
- //
- //
- //
- this.ribbonBar1.TitleStyle.Class = "";
- this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar1.TitleStyleMouseOver.Class = "";
- this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar1.TitleVisible = false;
- //
- // btn_document_info
- //
- this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
- this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_document_info.Name = "btn_document_info";
- this.btn_document_info.SubItemsExpandWidth = 14;
- this.btn_document_info.Text = "文档管理";
- this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
- //
- // ribbonPanel1
- //
- this.ribbonPanel1.AutoSize = true;
- this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
- this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel1.Controls.Add(this.ribbonBar21);
- this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel1.Location = new System.Drawing.Point(0, 33);
- this.ribbonPanel1.Name = "ribbonPanel1";
- this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel1.Size = new System.Drawing.Size(1328, 62);
- //
- //
- //
- this.ribbonPanel1.Style.Class = "";
- this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseDown.Class = "";
- this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel1.StyleMouseOver.Class = "";
- this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel1.TabIndex = 1;
- this.ribbonPanel1.Visible = false;
- //
- // ribbonBar21
- //
- this.ribbonBar21.AutoOverflowEnabled = true;
- this.ribbonBar21.BackColor = System.Drawing.Color.White;
- //
- //
- //
- this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.BackgroundStyle.Class = "";
- this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.ContainerControlProcessDialogKey = true;
- this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem87,
- this.buttonItem88,
- this.buttonItem27,
- this.sliderGroundTransSet1,
- this.buttonItem91,
- this.buttonItem1,
- this.btnlegendSet,
- this.buttonItem89,
- this.btnOutputJPG});
- this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar21.Name = "ribbonBar21";
- this.ribbonBar21.Size = new System.Drawing.Size(649, 59);
- this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar21.TabIndex = 2;
- this.ribbonBar21.Text = "浏览模式";
- //
- //
- //
- this.ribbonBar21.TitleStyle.Class = "";
- this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar21.TitleStyleMouseOver.Class = "";
- this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar21.TitleVisible = false;
- //
- // buttonItem87
- //
- this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
- this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem87.Name = "buttonItem87";
- this.buttonItem87.SubItemsExpandWidth = 14;
- this.buttonItem87.Text = "地上模式";
- this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
- //
- // buttonItem88
- //
- this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
- this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem88.Name = "buttonItem88";
- this.buttonItem88.SubItemsExpandWidth = 14;
- this.buttonItem88.Text = "地下模式";
- this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
- //
- // buttonItem27
- //
- this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
- this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem27.Name = "buttonItem27";
- this.buttonItem27.SubItemsExpandWidth = 14;
- this.buttonItem27.Text = "行走模式";
- this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
- //
- // buttonItem91
- //
- this.buttonItem91.ForeColor = System.Drawing.Color.Black;
- this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
- this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem91.Name = "buttonItem91";
- this.buttonItem91.SubItemsExpandWidth = 14;
- this.buttonItem91.Text = "快速定位";
- this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
- //
- // buttonItem1
- //
- this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
- this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem1.Name = "buttonItem1";
- this.buttonItem1.SubItemsExpandWidth = 14;
- this.buttonItem1.Text = "图层管理";
- this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
- //
- // btnlegendSet
- //
- this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
- this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnlegendSet.Name = "btnlegendSet";
- this.btnlegendSet.SubItemsExpandWidth = 14;
- this.btnlegendSet.Text = "图例";
- this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
- //
- // buttonItem89
- //
- this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
- this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem89.Name = "buttonItem89";
- this.buttonItem89.SubItemsExpandWidth = 14;
- this.buttonItem89.Text = "全屏显示";
- this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
- //
- // btnOutputJPG
- //
- this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
- this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btnOutputJPG.Name = "btnOutputJPG";
- this.btnOutputJPG.SubItemsExpandWidth = 14;
- this.btnOutputJPG.Text = "导出图片";
- this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
- //
- // ribbonPanel12
- //
- this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel12.Controls.Add(this.ribbonBar18);
- this.ribbonPanel12.Controls.Add(this.ribbonBar13);
- this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel12.Name = "ribbonPanel12";
- this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel12.Style.Class = "";
- this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseDown.Class = "";
- this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel12.StyleMouseOver.Class = "";
- this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel12.TabIndex = 34;
- this.ribbonPanel12.Visible = false;
- //
- // ribbonBar18
- //
- this.ribbonBar18.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.BackgroundStyle.Class = "";
- this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.ContainerControlProcessDialogKey = true;
- this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem133,
- this.buttonItem132});
- this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
- this.ribbonBar18.Name = "ribbonBar18";
- this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
- this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar18.TabIndex = 1;
- //
- //
- //
- this.ribbonBar18.TitleStyle.Class = "";
- this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar18.TitleStyleMouseOver.Class = "";
- this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar18.TitleVisible = false;
- //
- // buttonItem133
- //
- this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
- this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem133.Name = "buttonItem133";
- this.buttonItem133.SubItemsExpandWidth = 14;
- this.buttonItem133.Text = "审核入库";
- this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
- //
- // buttonItem132
- //
- this.buttonItem132.Name = "buttonItem132";
- //
- // ribbonBar13
- //
- this.ribbonBar13.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.BackgroundStyle.Class = "";
- this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.ContainerControlProcessDialogKey = true;
- this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.buttonItem127,
- this.buttonItem128,
- this.sliderItem1,
- this.buttonItem134,
- this.buttonItem130,
- this.btn_check_history});
- this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar13.Name = "ribbonBar13";
- this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
- this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar13.TabIndex = 0;
- //
- //
- //
- this.ribbonBar13.TitleStyle.Class = "";
- this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar13.TitleStyleMouseOver.Class = "";
- this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar13.TitleVisible = false;
- //
- // buttonItem127
- //
- this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
- this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem127.Name = "buttonItem127";
- this.buttonItem127.SubItemsExpandWidth = 14;
- this.buttonItem127.Text = "打开数据";
- this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
- //
- // buttonItem128
- //
- this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
- this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem128.Name = "buttonItem128";
- this.buttonItem128.SubItemsExpandWidth = 14;
- this.buttonItem128.Text = "一键审核";
- this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
- //
- // sliderItem1
- //
- this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
- this.sliderItem1.LabelWidth = 50;
- this.sliderItem1.Name = "sliderItem1";
- this.sliderItem1.Text = "地面透明度";
- this.sliderItem1.TextColor = System.Drawing.Color.Black;
- this.sliderItem1.Value = 0;
- this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
- //
- // buttonItem134
- //
- this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
- this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem134.Name = "buttonItem134";
- this.buttonItem134.SubItemsExpandWidth = 14;
- this.buttonItem134.Text = "模拟设计修改";
- this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
- //
- // buttonItem130
- //
- this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
- this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItem130.Name = "buttonItem130";
- this.buttonItem130.SubItemsExpandWidth = 14;
- this.buttonItem130.Text = "导出审核图";
- this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
- //
- // btn_check_history
- //
- this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
- this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_check_history.Name = "btn_check_history";
- this.btn_check_history.SubItemsExpandWidth = 14;
- this.btn_check_history.Text = "审核历史";
- this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
- //
- // ribbonPanel2
- //
- this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonPanel2.Controls.Add(this.ribbonBar3);
- this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel2.Location = new System.Drawing.Point(0, 0);
- this.ribbonPanel2.Name = "ribbonPanel2";
- this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel2.Size = new System.Drawing.Size(1328, 95);
- //
- //
- //
- this.ribbonPanel2.Style.Class = "";
- this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseDown.Class = "";
- this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonPanel2.StyleMouseOver.Class = "";
- this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonPanel2.TabIndex = 39;
- this.ribbonPanel2.Visible = false;
- //
- // ribbonBar3
- //
- this.ribbonBar3.AutoOverflowEnabled = true;
- //
- //
- //
- this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
- this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.BackgroundStyle.Class = "";
- this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.ContainerControlProcessDialogKey = true;
- this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
- this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.btn_user_info,
- this.btn_role_info,
- this.btn_resc_info,
- this.btn_role_resc,
- this.btn_user_role,
- this.btn_password_edit,
- this.buttonItemPasswordReset});
- this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
- this.ribbonBar3.Name = "ribbonBar3";
- this.ribbonBar3.Size = new System.Drawing.Size(551, 92);
- this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.ribbonBar3.TabIndex = 1;
- //
- //
- //
- this.ribbonBar3.TitleStyle.Class = "";
- this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- //
- //
- //
- this.ribbonBar3.TitleStyleMouseOver.Class = "";
- this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.ribbonBar3.TitleVisible = false;
- //
- // btn_user_info
- //
- this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
- this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_info.Name = "btn_user_info";
- this.btn_user_info.SubItemsExpandWidth = 14;
- this.btn_user_info.Text = "用户管理";
- this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
- //
- // btn_role_info
- //
- this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
- this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_info.Name = "btn_role_info";
- this.btn_role_info.SubItemsExpandWidth = 14;
- this.btn_role_info.Text = "角色管理";
- this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
- //
- // btn_resc_info
- //
- this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
- this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_resc_info.Name = "btn_resc_info";
- this.btn_resc_info.SubItemsExpandWidth = 14;
- this.btn_resc_info.Text = "资源管理";
- this.btn_resc_info.Visible = false;
- this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
- //
- // btn_role_resc
- //
- this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
- this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_role_resc.Name = "btn_role_resc";
- this.btn_role_resc.SubItemsExpandWidth = 14;
- this.btn_role_resc.Text = "角色授权";
- this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
- //
- // btn_user_role
- //
- this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
- this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_user_role.Name = "btn_user_role";
- this.btn_user_role.SubItemsExpandWidth = 14;
- this.btn_user_role.Text = "用户授权";
- this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
- //
- // btn_password_edit
- //
- this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
- this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.btn_password_edit.Name = "btn_password_edit";
- this.btn_password_edit.SubItemsExpandWidth = 14;
- this.btn_password_edit.Text = "密码修改";
- this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
- //
- // buttonItemPasswordReset
- //
- this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
- this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
- this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
- this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
- this.buttonItemPasswordReset.Text = "重置密码";
- this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
- //
// ribbonPanel15
//
this.ribbonPanel15.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonPanel15.Controls.Add(this.ribbonBar20);
this.ribbonPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ribbonPanel15.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel15.Location = new System.Drawing.Point(0, 33);
this.ribbonPanel15.Name = "ribbonPanel15";
this.ribbonPanel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
- this.ribbonPanel15.Size = new System.Drawing.Size(1328, 95);
+ this.ribbonPanel15.Size = new System.Drawing.Size(1328, 62);
//
//
//
@@ -2848,7 +2243,6 @@
this.ribbonPanel15.StyleMouseOver.Class = "";
this.ribbonPanel15.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.ribbonPanel15.TabIndex = 35;
- this.ribbonPanel15.Visible = false;
//
// ribbonBar20
//
@@ -2872,7 +2266,7 @@
this.buttonItemXTGL});
this.ribbonBar20.Location = new System.Drawing.Point(3, 0);
this.ribbonBar20.Name = "ribbonBar20";
- this.ribbonBar20.Size = new System.Drawing.Size(283, 92);
+ this.ribbonBar20.Size = new System.Drawing.Size(283, 59);
this.ribbonBar20.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.ribbonBar20.TabIndex = 0;
//
@@ -3303,6 +2697,207 @@
this.buttonItemXT4_2.Text = "人员修改";
this.buttonItemXT4_2.Click += new System.EventHandler(this.buttonItemXT4_2_Click);
//
+ // ribbonPanel2
+ //
+ this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel2.Controls.Add(this.ribbonBar3);
+ this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel2.Location = new System.Drawing.Point(0, 33);
+ this.ribbonPanel2.Name = "ribbonPanel2";
+ this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel2.Size = new System.Drawing.Size(1328, 62);
+ //
+ //
+ //
+ this.ribbonPanel2.Style.Class = "";
+ this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseDown.Class = "";
+ this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel2.StyleMouseOver.Class = "";
+ this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel2.TabIndex = 39;
+ this.ribbonPanel2.Visible = false;
+ //
+ // ribbonBar3
+ //
+ this.ribbonBar3.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.BackgroundStyle.Class = "";
+ this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.ContainerControlProcessDialogKey = true;
+ this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_user_info,
+ this.btn_role_info,
+ this.btn_resc_info,
+ this.btn_role_resc,
+ this.btn_user_role,
+ this.btn_password_edit,
+ this.buttonItemPasswordReset});
+ this.ribbonBar3.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar3.Name = "ribbonBar3";
+ this.ribbonBar3.Size = new System.Drawing.Size(551, 59);
+ this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar3.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyle.Class = "";
+ this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar3.TitleStyleMouseOver.Class = "";
+ this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar3.TitleVisible = false;
+ //
+ // btn_user_info
+ //
+ this.btn_user_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_info.Image")));
+ this.btn_user_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_info.Name = "btn_user_info";
+ this.btn_user_info.SubItemsExpandWidth = 14;
+ this.btn_user_info.Text = "用户管理";
+ this.btn_user_info.Click += new System.EventHandler(this.btn_user_info_Click);
+ //
+ // btn_role_info
+ //
+ this.btn_role_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_info.Image")));
+ this.btn_role_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_info.Name = "btn_role_info";
+ this.btn_role_info.SubItemsExpandWidth = 14;
+ this.btn_role_info.Text = "角色管理";
+ this.btn_role_info.Click += new System.EventHandler(this.btn_role_info_Click);
+ //
+ // btn_resc_info
+ //
+ this.btn_resc_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_resc_info.Image")));
+ this.btn_resc_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_resc_info.Name = "btn_resc_info";
+ this.btn_resc_info.SubItemsExpandWidth = 14;
+ this.btn_resc_info.Text = "资源管理";
+ this.btn_resc_info.Visible = false;
+ this.btn_resc_info.Click += new System.EventHandler(this.btn_resc_info_Click);
+ //
+ // btn_role_resc
+ //
+ this.btn_role_resc.Image = ((System.Drawing.Image)(resources.GetObject("btn_role_resc.Image")));
+ this.btn_role_resc.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_role_resc.Name = "btn_role_resc";
+ this.btn_role_resc.SubItemsExpandWidth = 14;
+ this.btn_role_resc.Text = "角色授权";
+ this.btn_role_resc.Click += new System.EventHandler(this.btn_role_resc_Click);
+ //
+ // btn_user_role
+ //
+ this.btn_user_role.Image = ((System.Drawing.Image)(resources.GetObject("btn_user_role.Image")));
+ this.btn_user_role.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_user_role.Name = "btn_user_role";
+ this.btn_user_role.SubItemsExpandWidth = 14;
+ this.btn_user_role.Text = "用户授权";
+ this.btn_user_role.Click += new System.EventHandler(this.btn_user_role_Click);
+ //
+ // btn_password_edit
+ //
+ this.btn_password_edit.Image = ((System.Drawing.Image)(resources.GetObject("btn_password_edit.Image")));
+ this.btn_password_edit.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_password_edit.Name = "btn_password_edit";
+ this.btn_password_edit.SubItemsExpandWidth = 14;
+ this.btn_password_edit.Text = "密码修改";
+ this.btn_password_edit.Click += new System.EventHandler(this.btn_password_edit_Click);
+ //
+ // buttonItemPasswordReset
+ //
+ this.buttonItemPasswordReset.Image = ((System.Drawing.Image)(resources.GetObject("buttonItemPasswordReset.Image")));
+ this.buttonItemPasswordReset.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItemPasswordReset.Name = "buttonItemPasswordReset";
+ this.buttonItemPasswordReset.SubItemsExpandWidth = 14;
+ this.buttonItemPasswordReset.Text = "重置密码";
+ this.buttonItemPasswordReset.Click += new System.EventHandler(this.buttonItemPasswordReset_Click);
+ //
+ // ribbonPanel4
+ //
+ this.ribbonPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel4.Controls.Add(this.ribbonBar1);
+ this.ribbonPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel4.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel4.Name = "ribbonPanel4";
+ this.ribbonPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel4.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel4.Style.Class = "";
+ this.ribbonPanel4.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseDown.Class = "";
+ this.ribbonPanel4.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel4.StyleMouseOver.Class = "";
+ this.ribbonPanel4.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel4.TabIndex = 36;
+ this.ribbonPanel4.Visible = false;
+ //
+ // ribbonBar1
+ //
+ this.ribbonBar1.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar1.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.BackgroundStyle.Class = "";
+ this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.ContainerControlProcessDialogKey = true;
+ this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.btn_document_info});
+ this.ribbonBar1.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar1.Name = "ribbonBar1";
+ this.ribbonBar1.Size = new System.Drawing.Size(88, 92);
+ this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar1.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyle.Class = "";
+ this.ribbonBar1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar1.TitleStyleMouseOver.Class = "";
+ this.ribbonBar1.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar1.TitleVisible = false;
+ //
+ // btn_document_info
+ //
+ this.btn_document_info.Image = ((System.Drawing.Image)(resources.GetObject("btn_document_info.Image")));
+ this.btn_document_info.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_document_info.Name = "btn_document_info";
+ this.btn_document_info.SubItemsExpandWidth = 14;
+ this.btn_document_info.Text = "文档管理";
+ this.btn_document_info.Click += new System.EventHandler(this.btn_document_info_Click);
+ //
// ribbonPanel6
//
this.ribbonPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
@@ -3516,6 +3111,322 @@
this.sliderItem3.Value = 0;
this.sliderItem3.ValueChanged += new System.EventHandler(this.sliderItem3_ValueChanged);
//
+ // ribbonPanel12
+ //
+ this.ribbonPanel12.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel12.Controls.Add(this.ribbonBar18);
+ this.ribbonPanel12.Controls.Add(this.ribbonBar13);
+ this.ribbonPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel12.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel12.Name = "ribbonPanel12";
+ this.ribbonPanel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel12.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel12.Style.Class = "";
+ this.ribbonPanel12.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseDown.Class = "";
+ this.ribbonPanel12.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel12.StyleMouseOver.Class = "";
+ this.ribbonPanel12.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel12.TabIndex = 34;
+ this.ribbonPanel12.Visible = false;
+ //
+ // ribbonBar18
+ //
+ this.ribbonBar18.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar18.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.BackgroundStyle.Class = "";
+ this.ribbonBar18.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.ContainerControlProcessDialogKey = true;
+ this.ribbonBar18.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar18.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem133,
+ this.buttonItem132});
+ this.ribbonBar18.Location = new System.Drawing.Point(508, 0);
+ this.ribbonBar18.Name = "ribbonBar18";
+ this.ribbonBar18.Size = new System.Drawing.Size(75, 92);
+ this.ribbonBar18.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar18.TabIndex = 1;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyle.Class = "";
+ this.ribbonBar18.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar18.TitleStyleMouseOver.Class = "";
+ this.ribbonBar18.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar18.TitleVisible = false;
+ //
+ // buttonItem133
+ //
+ this.buttonItem133.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem133.Image")));
+ this.buttonItem133.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem133.Name = "buttonItem133";
+ this.buttonItem133.SubItemsExpandWidth = 14;
+ this.buttonItem133.Text = "审核入库";
+ this.buttonItem133.Click += new System.EventHandler(this.buttonItem133_Click_1);
+ //
+ // buttonItem132
+ //
+ this.buttonItem132.Name = "buttonItem132";
+ //
+ // ribbonBar13
+ //
+ this.ribbonBar13.AutoOverflowEnabled = true;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar13.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.BackgroundStyle.Class = "";
+ this.ribbonBar13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.ContainerControlProcessDialogKey = true;
+ this.ribbonBar13.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar13.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem127,
+ this.buttonItem128,
+ this.sliderItem1,
+ this.buttonItem134,
+ this.buttonItem130,
+ this.btn_check_history});
+ this.ribbonBar13.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar13.Name = "ribbonBar13";
+ this.ribbonBar13.Size = new System.Drawing.Size(505, 92);
+ this.ribbonBar13.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar13.TabIndex = 0;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyle.Class = "";
+ this.ribbonBar13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar13.TitleStyleMouseOver.Class = "";
+ this.ribbonBar13.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar13.TitleVisible = false;
+ //
+ // buttonItem127
+ //
+ this.buttonItem127.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem127.Image")));
+ this.buttonItem127.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem127.Name = "buttonItem127";
+ this.buttonItem127.SubItemsExpandWidth = 14;
+ this.buttonItem127.Text = "打开数据";
+ this.buttonItem127.Click += new System.EventHandler(this.buttonItem127_Click_2);
+ //
+ // buttonItem128
+ //
+ this.buttonItem128.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem128.Image")));
+ this.buttonItem128.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem128.Name = "buttonItem128";
+ this.buttonItem128.SubItemsExpandWidth = 14;
+ this.buttonItem128.Text = "一键审核";
+ this.buttonItem128.Click += new System.EventHandler(this.buttonItem128_Click);
+ //
+ // sliderItem1
+ //
+ this.sliderItem1.LabelPosition = DevComponents.DotNetBar.eSliderLabelPosition.Top;
+ this.sliderItem1.LabelWidth = 50;
+ this.sliderItem1.Name = "sliderItem1";
+ this.sliderItem1.Text = "地面透明度";
+ this.sliderItem1.TextColor = System.Drawing.Color.Black;
+ this.sliderItem1.Value = 0;
+ this.sliderItem1.ValueChanged += new System.EventHandler(this.sliderItem1_ValueChanged);
+ //
+ // buttonItem134
+ //
+ this.buttonItem134.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem134.Image")));
+ this.buttonItem134.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem134.Name = "buttonItem134";
+ this.buttonItem134.SubItemsExpandWidth = 14;
+ this.buttonItem134.Text = "模拟设计修改";
+ this.buttonItem134.Click += new System.EventHandler(this.buttonItem134_Click_1);
+ //
+ // buttonItem130
+ //
+ this.buttonItem130.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem130.Image")));
+ this.buttonItem130.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem130.Name = "buttonItem130";
+ this.buttonItem130.SubItemsExpandWidth = 14;
+ this.buttonItem130.Text = "导出审核图";
+ this.buttonItem130.Click += new System.EventHandler(this.buttonItem130_Click_1);
+ //
+ // btn_check_history
+ //
+ this.btn_check_history.Image = ((System.Drawing.Image)(resources.GetObject("btn_check_history.Image")));
+ this.btn_check_history.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btn_check_history.Name = "btn_check_history";
+ this.btn_check_history.SubItemsExpandWidth = 14;
+ this.btn_check_history.Text = "审核历史";
+ this.btn_check_history.Click += new System.EventHandler(this.btn_check_history_Click);
+ //
+ // ribbonPanel1
+ //
+ this.ribbonPanel1.AutoSize = true;
+ this.ribbonPanel1.CanvasColor = System.Drawing.Color.Gray;
+ this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonPanel1.Controls.Add(this.ribbonBar21);
+ this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.ribbonPanel1.Location = new System.Drawing.Point(0, 0);
+ this.ribbonPanel1.Name = "ribbonPanel1";
+ this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3);
+ this.ribbonPanel1.Size = new System.Drawing.Size(1328, 95);
+ //
+ //
+ //
+ this.ribbonPanel1.Style.Class = "";
+ this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseDown.Class = "";
+ this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonPanel1.StyleMouseOver.Class = "";
+ this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonPanel1.TabIndex = 1;
+ this.ribbonPanel1.Visible = false;
+ //
+ // ribbonBar21
+ //
+ this.ribbonBar21.AutoOverflowEnabled = true;
+ this.ribbonBar21.BackColor = System.Drawing.Color.White;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundMouseOverStyle.Class = "";
+ this.ribbonBar21.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.BackgroundStyle.Class = "";
+ this.ribbonBar21.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.ContainerControlProcessDialogKey = true;
+ this.ribbonBar21.Dock = System.Windows.Forms.DockStyle.Left;
+ this.ribbonBar21.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
+ this.buttonItem87,
+ this.buttonItem88,
+ this.buttonItem27,
+ this.sliderGroundTransSet1,
+ this.buttonItem91,
+ this.buttonItem1,
+ this.btnlegendSet,
+ this.buttonItem89,
+ this.btnOutputJPG});
+ this.ribbonBar21.Location = new System.Drawing.Point(3, 0);
+ this.ribbonBar21.Name = "ribbonBar21";
+ this.ribbonBar21.Size = new System.Drawing.Size(649, 92);
+ this.ribbonBar21.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.ribbonBar21.TabIndex = 2;
+ this.ribbonBar21.Text = "浏览模式";
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyle.Class = "";
+ this.ribbonBar21.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ //
+ //
+ //
+ this.ribbonBar21.TitleStyleMouseOver.Class = "";
+ this.ribbonBar21.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.ribbonBar21.TitleVisible = false;
+ //
+ // buttonItem87
+ //
+ this.buttonItem87.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem87.Image")));
+ this.buttonItem87.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem87.Name = "buttonItem87";
+ this.buttonItem87.SubItemsExpandWidth = 14;
+ this.buttonItem87.Text = "地上模式";
+ this.buttonItem87.Click += new System.EventHandler(this.buttonItem87_Click);
+ //
+ // buttonItem88
+ //
+ this.buttonItem88.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem88.Image")));
+ this.buttonItem88.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem88.Name = "buttonItem88";
+ this.buttonItem88.SubItemsExpandWidth = 14;
+ this.buttonItem88.Text = "地下模式";
+ this.buttonItem88.Click += new System.EventHandler(this.buttonItem88_Click);
+ //
+ // buttonItem27
+ //
+ this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
+ this.buttonItem27.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem27.Name = "buttonItem27";
+ this.buttonItem27.SubItemsExpandWidth = 14;
+ this.buttonItem27.Text = "行走模式";
+ this.buttonItem27.Click += new System.EventHandler(this.buttonItem27_Click);
+ //
+ // buttonItem91
+ //
+ this.buttonItem91.ForeColor = System.Drawing.Color.Black;
+ this.buttonItem91.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem91.Image")));
+ this.buttonItem91.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem91.Name = "buttonItem91";
+ this.buttonItem91.SubItemsExpandWidth = 14;
+ this.buttonItem91.Text = "快速定位";
+ this.buttonItem91.Click += new System.EventHandler(this.buttonItem91_Click);
+ //
+ // buttonItem1
+ //
+ this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
+ this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem1.Name = "buttonItem1";
+ this.buttonItem1.SubItemsExpandWidth = 14;
+ this.buttonItem1.Text = "图层管理";
+ this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
+ //
+ // btnlegendSet
+ //
+ this.btnlegendSet.Image = ((System.Drawing.Image)(resources.GetObject("btnlegendSet.Image")));
+ this.btnlegendSet.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnlegendSet.Name = "btnlegendSet";
+ this.btnlegendSet.SubItemsExpandWidth = 14;
+ this.btnlegendSet.Text = "图例";
+ this.btnlegendSet.Click += new System.EventHandler(this.btnlegendSet_Click);
+ //
+ // buttonItem89
+ //
+ this.buttonItem89.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem89.Image")));
+ this.buttonItem89.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.buttonItem89.Name = "buttonItem89";
+ this.buttonItem89.SubItemsExpandWidth = 14;
+ this.buttonItem89.Text = "全屏显示";
+ this.buttonItem89.Click += new System.EventHandler(this.buttonItem89_Click);
+ //
+ // btnOutputJPG
+ //
+ this.btnOutputJPG.Image = ((System.Drawing.Image)(resources.GetObject("btnOutputJPG.Image")));
+ this.btnOutputJPG.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnOutputJPG.Name = "btnOutputJPG";
+ this.btnOutputJPG.SubItemsExpandWidth = 14;
+ this.btnOutputJPG.Text = "导出图片";
+ this.btnOutputJPG.Click += new System.EventHandler(this.btnOutputJPG_Click);
+ //
// ribbonTabItem1
//
this.ribbonTabItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
@@ -3569,6 +3480,7 @@
// ribbonTabItem14
//
this.ribbonTabItem14.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
+ this.ribbonTabItem14.Checked = true;
this.ribbonTabItem14.HoverImage = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.HoverImage")));
this.ribbonTabItem14.Image = ((System.Drawing.Image)(resources.GetObject("ribbonTabItem14.Image")));
this.ribbonTabItem14.Name = "ribbonTabItem14";
@@ -3586,13 +3498,6 @@
this.ribbonTabItem2.Text = "权限管理";
this.ribbonTabItem2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ribbonTabItem2_MouseDown);
//
- // ribbonTabItemBSQ
- //
- this.ribbonTabItemBSQ.Checked = true;
- this.ribbonTabItemBSQ.Name = "ribbonTabItemBSQ";
- this.ribbonTabItemBSQ.Panel = this.ribbonPanel3;
- this.ribbonTabItemBSQ.Text = "标识器管理";
- //
// buttonItem19
//
this.buttonItem19.Name = "buttonItem19";
@@ -4570,7 +4475,7 @@
this.dataGridViewX2.ReadOnly = true;
this.dataGridViewX2.RowHeadersVisible = false;
this.dataGridViewX2.RowTemplate.Height = 23;
- this.dataGridViewX2.Size = new System.Drawing.Size(30190, 92);
+ this.dataGridViewX2.Size = new System.Drawing.Size(29002, 92);
this.dataGridViewX2.TabIndex = 11;
//
// dataGridViewTextBoxColumn10
@@ -4664,7 +4569,7 @@
this.dataGridViewX3.ReadOnly = true;
this.dataGridViewX3.RowHeadersVisible = false;
this.dataGridViewX3.RowTemplate.Height = 23;
- this.dataGridViewX3.Size = new System.Drawing.Size(30189, 127);
+ this.dataGridViewX3.Size = new System.Drawing.Size(29001, 127);
this.dataGridViewX3.TabIndex = 5;
this.dataGridViewX3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dataGridViewX3_MouseDoubleClick);
//
@@ -5881,14 +5786,13 @@
this.contextMenuStripDeleteLayerNode.ResumeLayout(false);
this.ribbonControl1.ResumeLayout(false);
this.ribbonControl1.PerformLayout();
- this.ribbonPanel3.ResumeLayout(false);
- this.ribbonPanel4.ResumeLayout(false);
- this.ribbonPanel1.ResumeLayout(false);
- this.ribbonPanel12.ResumeLayout(false);
- this.ribbonPanel2.ResumeLayout(false);
this.ribbonPanel15.ResumeLayout(false);
+ this.ribbonPanel2.ResumeLayout(false);
+ this.ribbonPanel4.ResumeLayout(false);
this.ribbonPanel6.ResumeLayout(false);
this.ribbonPanel5.ResumeLayout(false);
+ this.ribbonPanel12.ResumeLayout(false);
+ this.ribbonPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panelOfTable.ResumeLayout(false);
this.panelOfTable.PerformLayout();
@@ -6411,11 +6315,6 @@
private LabelX labelX16;
private LabelX labelX17;
private PanelEx panelEx4;
- private RibbonPanel ribbonPanel3;
- private RibbonBar ribbonBar4;
- private ButtonItem btn_flag;
- private RibbonTabItem ribbonTabItemBSQ;
- private SliderItem slider4ground;
}
}
diff --git a/TreeUtils.cs b/TreeUtils.cs
index d394a2d..dde986c 100644
--- a/TreeUtils.cs
+++ b/TreeUtils.cs
@@ -180,16 +180,85 @@
{
managerLayerList.Add(tempNode.Nodes[i].Text);
}
- if (!managerLayerList.Contains(layer.Dataset.Caption))
+ if (managerLayerList.Contains(layer.Dataset.Caption)) return;
+ TreeNode node = new TreeNode();
+ node.Tag = layer;
+ node.Text = layer.Dataset.Caption;
+ node.ImageIndex = 0;
+ node.SelectedImageIndex = 0;
+ node.Checked = layer.Visible;
+ tempNode.Nodes.Insert(0, node);
+ tempNode.Expand();
+ }
+ ///
+ /// 创建features对应的树节点,并挂载到node下。标注管理树形图使用
+ ///
+ /// 父节点
+ /// 要素集合
+ public static void AddNodesMatchFeatures(TreeNode node, GSOFeatures features)
+ {
+ for (int i = 0; i < features.Length; i++)
{
- TreeNode node = new TreeNode();
- node.Tag = layer;
- node.Text = layer.Dataset.Caption;
- node.ImageIndex = 0;
- node.SelectedImageIndex = 0;
- node.Checked = layer.Visible;
- tempNode.Nodes.Insert(0, node);
- tempNode.Expand();
+ GSOFeature feature = features[i];
+ if (feature.Type == EnumFeatureType.FeatureFolder)
+ {
+ TreeNode tempnode = new TreeNode();
+ tempnode.Text = feature.Name;
+ tempnode.ImageIndex = 1;
+ tempnode.SelectedImageIndex = 1;
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ GSOFeatureFolder featureFolder = (GSOFeatureFolder)feature;
+ AddNodesMatchFeatures(tempnode, featureFolder.Features);
+ }
+ else
+ {
+ TreeNode tempnode = new TreeNode { Text = feature.Name };
+ if (feature.Geometry != null)
+ {
+ switch (feature.Geometry.Type)
+ {
+ case EnumGeometryType.GeoPoint3D:
+ case EnumGeometryType.GeoMarker:
+ tempnode.ImageIndex = 3;
+ tempnode.SelectedImageIndex = 3;
+ break;
+ case EnumGeometryType.GeoPolyline3D:
+ tempnode.ImageIndex = 4;
+ tempnode.SelectedImageIndex = 4;
+ break;
+ case EnumGeometryType.GeoPolygon3D:
+ tempnode.ImageIndex = 5;
+ tempnode.SelectedImageIndex = 5;
+ break;
+ case EnumGeometryType.GeoModel:
+ case EnumGeometryType.GeoEntity:
+ case EnumGeometryType.GeoGroupEntity:
+ case EnumGeometryType.GeoSphereEntity:
+ case EnumGeometryType.GeoBoxEntity:
+ case EnumGeometryType.GeoEllipsoidEntity:
+ case EnumGeometryType.GeoCylinderEntity:
+ case EnumGeometryType.GeoFrustumEntity:
+ case EnumGeometryType.GeoEllipCylinderEntity:
+ case EnumGeometryType.GeoEllipFrustumEntity:
+ case EnumGeometryType.GeoRangeEllipsoidEntity:
+ case EnumGeometryType.GeoRangeEllipCylinderEntity:
+ case EnumGeometryType.GeoRangeEllipFrustumEntity:
+ tempnode.ImageIndex = 6;
+ tempnode.SelectedImageIndex = 6;
+ break;
+ case EnumGeometryType.GeoGroundOverlay:
+ tempnode.ImageIndex = 7;
+ tempnode.SelectedImageIndex = 7;
+ break;
+ }
+ }
+
+ tempnode.Checked = node.Checked && feature.Visible;
+ tempnode.Tag = feature;
+ node.Nodes.Add(tempnode);
+ }
}
}
}
diff --git a/bin/x86/Debug/LocaLog.txt b/bin/x86/Debug/LocaLog.txt
index 60f5d1d..94fbaab 100644
--- a/bin/x86/Debug/LocaLog.txt
+++ b/bin/x86/Debug/LocaLog.txt
Binary files differ
diff --git a/bin/x86/Debug/glVersion.txt b/bin/x86/Debug/glVersion.txt
index cd82eca..755455e 100644
--- a/bin/x86/Debug/glVersion.txt
+++ b/bin/x86/Debug/glVersion.txt
Binary files differ
diff --git a/bin/x86/Debug/layerConfig.xml b/bin/x86/Debug/layerConfig.xml
index d3efad1..9266e1f 100644
--- a/bin/x86/Debug/layerConfig.xml
+++ b/bin/x86/Debug/layerConfig.xml
@@ -138,6 +138,11 @@
+
+
+
+
+
diff --git "a/\345\211\257\346\234\254 app.config" "b/\345\211\257\346\234\254 app.config"
deleted file mode 100644
index f4cbe66..0000000
--- "a/\345\211\257\346\234\254 app.config"
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-