@@ -210,12 +210,16 @@ def buttonClicked(self, index):
210
210
reply = QMessageBox .information (aw , '错误' , '请补充完整的端点名称!' )
211
211
# 面积:查询
212
212
elif index == 5 :
213
- a = ord (aw .dataLineEdits [6 ].text ()) - 65
214
- b = ord (aw .dataLineEdits [7 ].text ()) - 65
215
- c = ord (aw .dataLineEdits [8 ].text ()) - 65
216
-
217
- if aw .vpMainView .certainPlane .count ({a , b , c }) > 0 :
218
- i = aw .vpMainView .certainPlane .index ({a , b , c })
213
+ # a = ord(aw.dataLineEdits[6].text()) - 65
214
+ # b = ord(aw.dataLineEdits[7].text()) - 65
215
+ # c = ord(aw.dataLineEdits[8].text()) - 65
216
+ p = []
217
+ for i in aw .dataLineEdits [6 ].text ():
218
+ p .append (ord (i ) - 65 )
219
+ p = set (p )
220
+
221
+ if aw .vpMainView .certainPlane .count (p ) > 0 :
222
+ i = aw .vpMainView .certainPlane .index (p )
219
223
aw .areaLabel .setText (str (round (aw .vpMainView .areaForPlane [i ], 3 )))
220
224
else :
221
225
reply = QMessageBox .information (aw , '错误' , '指定面不存在!' )
@@ -1804,7 +1808,7 @@ def __init__(self):
1804
1808
propLabel .setFixedHeight (20 )
1805
1809
propLabels .append (propLabel )
1806
1810
self .dataLineEdits = []
1807
- for n in range (9 ):
1811
+ for n in range (7 ):
1808
1812
temp = QLineEdit ()
1809
1813
self .dataLineEdits .append (temp )
1810
1814
@@ -1840,7 +1844,7 @@ def __init__(self):
1840
1844
dataLayout .addWidget (self .dataLineEdits [5 ], line , 3 )
1841
1845
line += 1
1842
1846
dataLayout .addWidget (QLabel ('长度' ), line , 0 )
1843
- self .lengthLabel = QLabel ('10 ' )
1847
+ self .lengthLabel = QLabel ('- ' )
1844
1848
self .lengthLabel .setFixedHeight (30 )
1845
1849
dataLayout .addWidget (self .lengthLabel , line , 1 , 1 , 6 )
1846
1850
line += 1
@@ -1854,13 +1858,13 @@ def __init__(self):
1854
1858
line += 1
1855
1859
dataLayout .addWidget (QLabel ('端点' ), line , 0 )
1856
1860
dataLayout .addWidget (self .dataLineEdits [6 ], line , 1 )
1857
- dataLayout .addWidget (QLabel ('-' ), line , 2 )
1858
- dataLayout .addWidget (self .dataLineEdits [7 ], line , 3 )
1859
- dataLayout .addWidget (QLabel ('-' ), line , 4 )
1860
- dataLayout .addWidget (self .dataLineEdits [8 ], line , 5 )
1861
+ # dataLayout.addWidget(QLabel('-'), line, 2)
1862
+ # dataLayout.addWidget(self.dataLineEdits[7], line, 3)
1863
+ # dataLayout.addWidget(QLabel('-'), line, 4)
1864
+ # dataLayout.addWidget(self.dataLineEdits[8], line, 5)
1861
1865
line += 1
1862
1866
dataLayout .addWidget (QLabel ('面积' ), line , 0 )
1863
- self .areaLabel = QLabel ('10 ' )
1867
+ self .areaLabel = QLabel ('- ' )
1864
1868
self .areaLabel .setFixedHeight (30 )
1865
1869
# self.areaLabel.setFixedSize(30, 20)
1866
1870
dataLayout .addWidget (self .areaLabel , line , 1 , 1 , 6 )
@@ -2005,9 +2009,21 @@ def about(self):
2005
2009
"""
2006
2010
1. 平面图转3D主要功能如下:
2007
2011
a) 提供三视图生成对应立体图
2008
- b) 拖动三视图点实时改变立体图
2009
- c) 拖动立体图点实时改变三视图
2010
- d) 计算立体表面积
2012
+ b) 拖动三视图点改变立体图
2013
+ C) 计算立体表面积
2014
+
2015
+ 2. 按键功能说明:
2016
+ Ctrl + O: 打开数据文件
2017
+ Ctrl + D: 清空当前数据
2018
+ Ctrl + S: 保存当前数据
2019
+ (模板数据文件保存在model文件夹下)
2020
+
2021
+ 3. 右侧面板说明:
2022
+ (点区域与线区域需要选择当前视图或点击该视图进行修改)
2023
+ 点区域支持三视图中点的新增,修改与删除
2024
+ 线区域支持三视图中线的新增,删除与查询,包括主视图中线的查询
2025
+ 面区域支持主视图中面积查询
2026
+ 几何体区域包含对数据的检验,生成以及生成几何体的数据报告
2011
2027
"""
2012
2028
)
2013
2029
0 commit comments