4.7.9 - IPDISP Calculations - JdlIPDispOptions

John W. Campbell

4.7.9.1 Introduction

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:
  1. Measure the image centre
  2. Display resolution circles (/Erase circles)
  3. Calculate the resolution of a spot
  4. Calculate a cell spacing
  5. 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

4.7.9.2 Class Details

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'.

4.7.9.3 Accessible Fields

No fields with public, package or protected access defined.

4.7.9.4 Constructor

4.7.9.4.1 Introduction

A single constructor is available.

Constructor:

Standard Constructor

4.7.9.4.2 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

4.7.9.5 Set Parameter Values

4.7.9.5.1 Introduction

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

4.7.9.5.2 Set detector values - setDetectorParameters

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.

4.7.9.5.3 Set centre - setDetectorCentre

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.

4.7.9.5.4 Set resolution circles - setResolutionCircles

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.

4.7.9.5.5 Set resolution circles - setResolutionCircles

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