#include <container_types.h>
Public Member Functions | |
CGrid_sampling (const String name="", const Grid_sampling &grid=NullGrid_sampling) | |
constructor: make null object or top object in tree | |
CGrid_sampling (Container &parent, const String name="", const ftype rate=1.5) | |
constructor: make child object | |
CGrid_sampling (Container &parent, const String name, const Grid_sampling &grid) | |
constructor: make child object with explicit value | |
void | init (const Spacegroup &spacegroup, const Cell &cell, const Resolution &resolution, const ftype rate) |
initialiser: from sampling rate | |
void | init (const Grid_sampling &grid_sampling_) |
initialiser: from Grid_sampling | |
void | update () |
hierarchical update |
CGrid_sampling: This has a name and a grid sampling It overrides the grid sampling for any objects below it.
clipper::CGrid_sampling::CGrid_sampling | ( | const String | name = "" , |
|
const Grid_sampling & | grid = NullGrid_sampling | |||
) |
constructor: make null object or top object in tree
The top object in a tree is initialised from a known grid.
name | The object name. | |
grid | The grid sampling. |
clipper::CGrid_sampling::CGrid_sampling | ( | Container & | parent, | |
const String | name = "" , |
|||
const ftype | rate = 1.5 | |||
) |
constructor: make child object
The normal form for a child object - spacegroup and cell inherited.
parent | The objects parent. | |
name | The object name. | |
rate | The Shannon rate (default 1.5). |
clipper::CGrid_sampling::CGrid_sampling | ( | Container & | parent, | |
const String | name, | |||
const Grid_sampling & | grid | |||
) |
constructor: make child object with explicit value
This is still a child object but is initialised directly.
parent | The objects parent. | |
name | The object name. | |
grid | The grid sampling. |
void clipper::CGrid_sampling::init | ( | const Spacegroup & | spacegroup, | |
const Cell & | cell, | |||
const Resolution & | resolution, | |||
const ftype | rate | |||
) |
initialiser: from sampling rate
The object is initialised if the appropriate parent objects are available, and children are updated.
spacegroup | The spacegroup. | |
cell | The cell. | |
resolution | The resolution. | |
rate_ | The Shannon rate (If <1 previous value is used, default 1.5). |
Reimplemented from clipper::Grid_sampling.
void clipper::CGrid_sampling::init | ( | const Grid_sampling & | grid_sampling_ | ) |
initialiser: from Grid_sampling
The object is initialised, and children are updated.
grid_sampling_ | The value to give to the contained object. |
void clipper::CGrid_sampling::update | ( | ) | [virtual] |
hierarchical update
Hierarchical update. If this object is uninitialised, an attempt is made to initialise the object using information from its parents in the hierarchy. The childen of the object are then updated.
Reimplemented from clipper::Container.