Changeset 4812
- Timestamp:
- Feb 12, 2021 1:58:06 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 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 -
trunk/GSASIIphsGUI.py
r4811 r4812 10366 10366 x,y,z = line[2:5] 10367 10367 AtomAdd(x,y,z,El=elem,Name=lbl,update=False) 10368 atomData[nextNum][6] = Mult/maxMult10369 10368 Ids.append(atomData[nextNum][-1]) 10370 10369 updateNeeded = True 10371 10370 else: 10372 10371 atomData[line[5]][cx:cx+3] = line[2:5] 10373 atomData[line[5]][6] = Mult/maxMult10374 10372 Ids.append(line[11]) 10375 10373 if updateNeeded: -
trunk/GSASIIplot.py
r4807 r4812 8941 8941 GL.glVertex3fv(line) 8942 8942 # arrows on line ends, colored by planes 8943 for i in range(3):8944 for j in (1,-1):8945 GL.glColor3ubv(colors[(i+1)%3])8946 GL.glVertex3fv(lines[i])8947 GL.glVertex3fv(0.7*lines[i]+ j*0.2*lines[(i+1)%3])8948 GL.glColor3ubv(colors[(i+2)%3])8949 GL.glVertex3fv(lines[i])8950 GL.glVertex3fv(0.7*lines[i]+ j*0.2*lines[(i+2)%3])8943 # for i in range(3): 8944 # for j in (1,-1): 8945 # GL.glColor3ubv(colors[(i+1)%3]) 8946 # GL.glVertex3fv(lines[i]) 8947 # GL.glVertex3fv(0.7*lines[i]+ j*0.2*lines[(i+1)%3]) 8948 # GL.glColor3ubv(colors[(i+2)%3]) 8949 # GL.glVertex3fv(lines[i]) 8950 # GL.glVertex3fv(0.7*lines[i]+ j*0.2*lines[(i+2)%3]) 8951 8951 # draw vector part of Q in white 8952 8952 A,V = G2mth.Q2AVdeg(Q)
Note: See TracChangeset
for help on using the changeset viewer.