IMP  2.2.0
The Integrative Modeling Platform
grid_utility.h File Reference

A class to represent a voxel grid. More...

#include <IMP/algebra/algebra_config.h>
#include "GridD.h"
#include "internal/grid_interpolation.h"
#include "grid_indexes.h"
#include "internal/grid_3d_impl.h"
+ Include dependency graph for grid_utility.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 All IMP::kernel code is brought into the IMP namespace.
 
 IMP::algebra
 See IMP.algebra for more information.
 

Macros

#define IMP_GRID3D_FOREACH_SMALLER_EXTENDED_INDEX_RANGE(grid, center, lower_corner, upper_corner, action)
 
#define IMP_GRID3D_FOREACH_VOXEL(g, action)
 

Functions

template<int D, class Storage , class Value , class Embedding >
Value IMP::algebra::get_linearly_interpolated (const GridD< D, Storage, Value, Embedding > &g, const VectorD< D > &pt)
 
template<class Storage , class Embedding >
const Storage::Value IMP::algebra::get_trilinearly_interpolated (const GridD< 3, Storage, typename Storage::Value, Embedding > &g, const Vector3D &v, const typename Storage::Value &outside=0)
 Use trilinear interpolation to compute a smoothed value at v. More...
 

Detailed Description

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file grid_utility.h.

Macro Definition Documentation

#define IMP_GRID3D_FOREACH_SMALLER_EXTENDED_INDEX_RANGE (   grid,
  center,
  lower_corner,
  upper_corner,
  action 
)

Iterate over each voxel in a subset of the grid that are less than center. The voxel index is unsigned int voxel_index[3]. Use this if, for example you want to find nearby pairs of voxels once each. See Grid3D

Definition at line 120 of file grid_utility.h.

#define IMP_GRID3D_FOREACH_VOXEL (   g,
  action 
)

Iterate over each voxel in grid. The voxel index is GridIndexD<3> voxel_index and the coordinates of the center is Vector3D voxel_center and the index of the voxel is loop_voxel_index. See Grid3D

Definition at line 81 of file grid_utility.h.