Ignore:
Timestamp:
Feb 12, 2021 1:58:06 PM (3 years ago)
Author:
vondreele
Message:

Add Cycle XYZ button on residue RB GUI & add description to help text
Set atom fractions to 1.0 for inserted RB atoms.
Comment out "decorations" on RB triplet axes - found them confusing clutter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4809 r4812  
    33753375                    G2plt.PlotRigidBody(G2frame,'Residue',AtInfo,rbData,plotDefaults)
    33763376                   
     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)
    33773389               
    33783390            Types = 2*[wg.GRID_VALUE_STRING,]+3*[wg.GRID_VALUE_FLOAT+':10,5',]
     
    34253437                    refAtmSizer.Add(refSel,0,WACV)
    34263438                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)
    34273443                if 'molCent' not in rbData: rbData['molCent'] = False           #patch
    34283444                molcent = wx.Button(ResidueRBDisplay,label=' Center RB?')
     
    34373453 
    34383454%%* 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
     3457XYZ --> ZXY. Repeat if needed.
    34393458
    34403459%%* The "Center RB?" button will shift the origin of the
Note: See TracChangeset for help on using the changeset viewer.