Exemplo n.º 1
0
//---------------------------------------------------------------------------------------
void TableLayouter::prepare_to_start_layout()
{
    Layouter::prepare_to_start_layout();

    determine_grid_size();
    determine_width_for_columns();
    create_sections_layouters();
}
SurfaceShellDensityMap::SurfaceShellDensityMap(const ParticlesTemp &ps,
                                               float voxel_size,
                                               IMP::FloatKey mass_key,
                                               int num_shells)
    : SampledDensityMap() {
  set_kernel();
  set_particles(ps, mass_key);
  // update the grid size to contain all of the particles
  determine_grid_size(header_.get_resolution(), voxel_size, 3.);
  // to make
  update_voxel_size(voxel_size);
  num_shells_ = num_shells;
  set_neighbor_mask();
  IMP_LOG_TERSE("going to resample\n");
  resample();
  // update dmin and dmax
  header_.dmin = get_min_value();
  header_.dmax = get_max_value();
}