Changeset 752 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Sep 6, 2012 12:05:03 PM (10 years ago)
Author:
vondreele
Message:

add peak distance, view point selection & distance options
allow modification of view direction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r748 r752  
    4141[ wxID_FOURCALC, wxID_FOURSEARCH, wxID_FOURCLEAR, wxID_PEAKSMOVE, wxID_PEAKSCLEAR,
    4242    wxID_CHARGEFLIP, wxID_PEAKSUNIQUE, wxID_PEAKSDELETE, wxID_PEAKSDA,
    43 ] = [wx.NewId() for item in range(9)]
     43    wxID_PEAKSDISTVP, wxID_PEAKSVIEWPT,
     44] = [wx.NewId() for item in range(11)]
    4445
    4546[ wxID_PWDRADD, wxID_HKLFADD, wxID_DATADELETE,
     
    5455    wxID_DRAWVIEWPOINT, wxID_DRAWTRANSFORM, wxID_DRAWDELETE, wxID_DRAWFILLCELL,
    5556    wxID_DRAWADDEQUIV, wxID_DRAWFILLCOORD, wxID_DRAWDISAGLTOR,  wxID_DRAWPLANE,
    56 ] = [wx.NewId() for item in range(12)]
     57    wxID_DRAWDISTVP,
     58] = [wx.NewId() for item in range(13)]
    5759
    5860[ wxID_DRAWRESTRBOND, wxID_DRAWRESTRANGLE, wxID_DRAWRESTRPLANE, wxID_DRAWRESTRCHIRAL,
     
    576578        self.DrawAtomEdit.Append(id=wxID_DRAWDELETE, kind=wx.ITEM_NORMAL,text='Delete atoms',
    577579            help='Delete atoms from drawing set')
     580        self.DrawAtomCompute.Append(id=wxID_DRAWDISTVP, kind=wx.ITEM_NORMAL,text='View pt. dist.',
     581            help='Compute distance of selected atoms from view point')   
    578582        self.DrawAtomCompute.Append(id=wxID_DRAWDISAGLTOR, kind=wx.ITEM_NORMAL,text='Dist. Ang. Tors.',
    579583            help='Compute distance, angle or torsion for 2-4 selected atoms')   
     
    620624        self.MapPeaksEdit.Append(id=wxID_PEAKSMOVE, kind=wx.ITEM_NORMAL,text='Move peaks',
    621625            help='Move selected peaks to atom list')
     626        self.MapPeaksEdit.Append(id=wxID_PEAKSVIEWPT, kind=wx.ITEM_NORMAL,text='View point',
     627            help='View point is 1st peak selected')
     628        self.MapPeaksEdit.Append(id=wxID_PEAKSDISTVP, kind=wx.ITEM_NORMAL,text='View pt. dist.',
     629            help='Compute distance of selected peaks from view point')   
    622630        self.MapPeaksEdit.Append(id=wxID_PEAKSDA, kind=wx.ITEM_NORMAL,text='Calc dist/ang',
    623631            help='Calculate distance or angle for selection')
Note: See TracChangeset for help on using the changeset viewer.