John W. Campbell
This class provides some user options for a JdlPXImage object based
on options which were available in the CCP4 image display program
IPDISP (Phil Evans). The following options are available:
- Measure the image centre
- Display resolution circles (/Erase circles)
- Calculate the resolution of a spot
- Calculate a cell spacing
- Fit a circle to a set of selected points
When the IPDISP user options are selected, a window is displayed which
contains a menu, a parameter table and an I/O window.
Class, constructors and methods:
Class Details
Accessible Fields
Constructor
Set Parameter Values
- Package:
- Jdl.JdlPX;
- Class name:
- JdlIPDispOptions
- Class definition:
- public class JdlIPDispOptions
- Extends:
- Object
- Implements:
- JdlPXImageUserOptions
ActionListener
- Actions:
- An action event will be generated when the 'Close' menu item is
selected. The associated object is the String object 'done'.
No fields with public, package or protected access defined.
A single constructor is available.
Constructor:
Standard Constructor
Constructs a JdlIPDispOptions object with initialised parameter values. Note
that the construction of the window and the handling of the calculations
are done in the interface routines.
- Constructor Definition:
- public JdlIPDispOptions()
- Parameters List:
- none
This section has methods to set initial values for the parameters required
in the calculations. These values may be reset (or input for the first
time) via the parameter table which is displayed when the IPDISP user
options are selected. The values may be set or reset at any stage and
the parameter table, if already constructed, will have its values updated.
If the centre parameters x_cen, y_cen have not been set when the IPDISP
options window is first displayed, the image mid-point will be chosen.
Methods:
Set detector values - setDetectorParameters
Set centre - setDetectorCentre
Set resolution circles - setResolutionCircles
Set resolution circles - setResolutionCircles
Set detector related parameter starting values.
- Method Definition:
- public void setDetectorParameters (double ctod, double wavelength, double theta, double x_cen, double y_cen)
- Parameters List:
- ctod
- The crystal to detector distance in mm.
- wavelength
- The wavelength in Angstroms.
- theta
- The detector tilt angle in degrees.
- x_cen
- The image x-centre position in pixel units.
- y_cen
- The image y-centre position in pixel units.
Set detector centre starting values.
- Method Definition:
- public void setDetectorCentre (double x_cen, double y_cen)
- Parameters List:
- x_cen
- The image x-centre position in pixel units.
- y_cen
- The image y-centre position in pixel units.
This method sets the resolutions for a set of four resolution circles
based on the given value of the resolution for the outer circle.
The resolutions for the other circles are 1.5, 2.0 and 4.0 times this
given value.
- Method Definition:
- public void setResolutionCircles (double outer)
- Parameters List:
- outer
- The resolution, in Angstroms, for the outermost resolution
circle to be displayed.
This method allows individual resolution values to be set for four
resolution circles.
- Method Definition:
- public void setResolutionCircles (double[] resol)
- Parameters List:
- resol
- 4 element array containing the four resolution values in
Angstroms.
⇑ Up 2
⇑ Up 1
⇑ Top of this