@@ -13504,9 +13504,9 @@ def OnDelShell(event):
1350413504 if not RBObj['nSH'][iSh]:
1350513505 shSizer.Add(wx.StaticText(RigidBodies,
1350613506 label=' Select harmonic order or try different equivalent position'))
13507- elif len(RBObj['SHC'][iSh]) > 12 :
13507+ elif len(RBObj['SHC'][iSh]) > 24 :
1350813508 shSizer.Add(wx.StaticText(RigidBodies,
13509- label=' WARNING: More than 12 terms found; use lower harmonic order'))
13509+ label=' WARNING: More than 24 terms found; use lower harmonic order'))
1351013510 else:
1351113511 shcSizer = wx.FlexGridSizer(0,9,5,5)
1351213512 for item in RBObj['SHC'][iSh]:
@@ -13526,6 +13526,14 @@ def OnHideSh(event):
1352613526 iSh = Indx[Obj.GetId()]
1352713527 RBObj['hide'][iSh] = not RBObj['hide'][iSh]
1352813528 G2plt.PlotStructure(G2frame,data)
13529+
13530+ def OnAtColor(event):
13531+ RBObj['useAtColor'] = not RBObj['useAtColor']
13532+ G2plt.PlotStructure(G2frame,data)
13533+
13534+ def OnFadeShell(event):
13535+ RBObj['fadeSh'] = not RBObj['fadeSh']
13536+ G2plt.PlotStructure(G2frame,data)
1352913537
1353013538 RBObj['hide'] = RBObj.get('hide',[False for i in range(len(RBObj['atType']))])
1353113539 rbId = RBObj['RBId'][0]
@@ -13552,7 +13560,7 @@ def OnHideSh(event):
1355213560 hidesh.Bind(wx.EVT_CHECKBOX,OnHideSh)
1355313561 Indx[hidesh.GetId()] = 0
1355413562 topLine.Add(hidesh,0,WACV)
13555- sprbSizer.Add(topLine )
13563+ sprbSizer.Add(wx.StaticText(RigidBodies,label='Spinning RB orientation parameters for %s:'%RBObj['RBname'][0]) )
1355613564 sprbSizer.Add(LocationSizer(RBObj,'Spin'))
1355713565 choices = [' x ',' y ',' z ','x+y','x+y+z']
1355813566 RBObj['symAxis'] = RBObj.get('symAxis',[0,0,1]) #set default as 'z'
@@ -13562,6 +13570,20 @@ def OnHideSh(event):
1356213570 symRadioSet.Bind(wx.EVT_RADIOBOX, OnSymRadioSet)
1356313571 Indx[symRadioSet.GetId()] = rbId
1356413572 sprbSizer.Add(symRadioSet)
13573+ plotLine = wx.BoxSizer(wx.HORIZONTAL)
13574+ RBObj['useAtColor'] = RBObj.get('useAtColor',True)
13575+ atColor = wx.CheckBox(RigidBodies,label='Use atom color?')
13576+ atColor.SetValue(RBObj['useAtColor'])
13577+ atColor.Bind(wx.EVT_CHECKBOX,OnAtColor)
13578+ plotLine.Add(atColor,0,WACV)
13579+ RBObj['fadeSh'] = RBObj.get('fadeSh',True)
13580+ fadeShell = wx.CheckBox(RigidBodies,label='Fade shells?')
13581+ fadeShell.SetValue(RBObj['fadeSh'])
13582+ fadeShell.Bind(wx.EVT_CHECKBOX,OnFadeShell)
13583+ plotLine.Add(fadeShell,0,WACV)
13584+ sprbSizer.Add(plotLine)
13585+ G2G.HorizontalLine(sprbSizer,RigidBodies)
13586+ sprbSizer.Add(topLine)
1356513587 sprbSizer.Add(SHsizer())
1356613588 return sprbSizer
1356713589
@@ -13901,7 +13923,7 @@ def RepaintRBInfo(rbType,rbIndx,Scroll=0):
1390113923 rbObj = data['RBModels']['Residue'][resId]
1390213924 data['Drawing']['viewPoint'][0] = rbObj['Orig'][0]
1390313925 data['Drawing']['Quaternion'] = rbObj['Orient'][0]
13904- resSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,120 ))
13926+ resSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,80 ))
1390513927 if resId:
1390613928 resSelect.SetSelection(resId)
1390713929 OnResSelect(None)
@@ -13930,7 +13952,7 @@ def RepaintRBInfo(rbType,rbIndx,Scroll=0):
1393013952 rbObj = data['RBModels']['Vector'][vecId]
1393113953 data['Drawing']['viewPoint'][0] = rbObj['Orig'][0]
1393213954 data['Drawing']['Quaternion'] = rbObj['Orient'][0]
13933- vecSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,120 ))
13955+ vecSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,80 ))
1393413956 if vecId is not None:
1393513957 vecSelect.SetSelection(vecId)
1393613958 OnVecSelect(None)
@@ -13955,7 +13977,7 @@ def RepaintRBInfo(rbType,rbIndx,Scroll=0):
1395513977 rbObj = data['RBModels']['Spin'][spnId]
1395613978 data['Drawing']['viewPoint'][0] = data['Atoms'][AtLookUp[RBObj['Ids'][0]]][cx:cx+3]
1395713979 data['Drawing']['Quaternion'] = rbObj['Orient'][0]
13958- spnSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,120 ))
13980+ spnSelect = wx.ListBox(RigidBodies,choices=RBnames,style=wx.LB_SINGLE,size=(-1,80 ))
1395913981 if spnId != -1:
1396013982 spnSelect.SetSelection(spnId)
1396113983 OnSpnSelect(None)
0 commit comments