Changeset 4812 for trunk/GSASIIconstrGUI.py
- Timestamp:
- Feb 12, 2021 1:58:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4809 r4812 3375 3375 G2plt.PlotRigidBody(G2frame,'Residue',AtInfo,rbData,plotDefaults) 3376 3376 3377 def OnCycleXYZ(event): 3378 Obj = event.GetEventObject() 3379 res = Indx[Obj.GetId()] 3380 rbXYZ = rbData['rbXYZ'] 3381 resTable = res.GetTable() 3382 for r in range(res.GetNumberRows()): 3383 rbXYZ[r] = np.roll(rbXYZ[r],1) 3384 row = resTable.GetRowValues(r) 3385 row[2:4] = rbXYZ[r] 3386 resTable.SetRowValues(r,row) 3387 res.ForceRefresh() 3388 G2plt.PlotRigidBody(G2frame,'Residue',AtInfo,rbData,plotDefaults) 3377 3389 3378 3390 Types = 2*[wg.GRID_VALUE_STRING,]+3*[wg.GRID_VALUE_FLOAT+':10,5',] … … 3425 3437 refAtmSizer.Add(refSel,0,WACV) 3426 3438 RefObjs.append(refObj) 3439 cycleXYZ = wx.Button(ResidueRBDisplay,label=' Cycle XYZ?') 3440 cycleXYZ.Bind(wx.EVT_BUTTON,OnCycleXYZ) 3441 Indx[cycleXYZ.GetId()] = resGrid 3442 refAtmSizer.Add(cycleXYZ,0,WACV) 3427 3443 if 'molCent' not in rbData: rbData['molCent'] = False #patch 3428 3444 molcent = wx.Button(ResidueRBDisplay,label=' Center RB?') … … 3437 3453 3438 3454 %%* The origin is at A unless the "Center RB?" button is pressed. 3455 3456 %%* The 'Cycle XYZ' button will permute the rigid body XYZ coordinates so 3457 XYZ --> ZXY. Repeat if needed. 3439 3458 3440 3459 %%* The "Center RB?" button will shift the origin of the
Note: See TracChangeset
for help on using the changeset viewer.