[ Lib_General64 | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
public: | |
// Constructors | |
template< class MoleculeT> | BaseGrid(const MoleculeT& mol, const float inDelta, const float maxRadius); |
void | clear(); |
int | getIndexForPoint( const Vector3& point) const ; |
Vector3 | getPointForIndex(int index) const ; |
bool | isValidIndex(int index) const ; |
int | getIntGridRadius( float radius ) const ; |
protected: | |
float | delta ; |
vector < int > | neigbor; |
vector < float > | neigborDist; |
vector < DataT > | grid; |
Copyright: SAMBA group, Tel-Aviv Univ. Israel, 2003.
Space Complexity of the Grid: The density of the grid: delta, is specified by the user. Assume that the width of the molecule along each of the axis is: x_width, y_width, z_width. The space used by the grid will be: x_width*y_width*z_width/(delta^3).
The BaseGrid class uses any set of points given by the user (Surface, Molecule ...) to generate the grid object.
Surface msSurface; // ... read msSurface // initialization of grid BaseGrid* grid = new BaseGrid(msSurface, delta, maxDist) ;
template< class MoleculeT> BaseGrid(const MoleculeT& mol, const float inDelta, const float maxRadius);
The BaseGrid constructor receives Connoly MS Surface, delta - grid
density and maxRadius - maximum radius for distance function calculation.
template< class MoleculeT> BaseGrid(const MoleculeT& mol, const float inDelta, const float maxRadius);
void clear();
clears object (grid becomes empty)
void clear();
int getIndexForPoint( const Vector3& point) const ;
computes index in grid for a point.
int getIndexForPoint( const Vector3& point) const ;
Function is currently defined inline.
Vector3 getPointForIndex(int index) const ;
computes a point corresponding to an index.
Vector3 getPointForIndex(int index) const ;
Function is currently defined inline.
bool isValidIndex(int index) const ;
checks if the index is valid for the grid
bool isValidIndex(int index) const ;
Function is currently defined inline.
int getIntGridRadius( float radius ) const ;
convert radius to grid valid radius (number of voxels)
int getIntGridRadius( float radius ) const ;
Function is currently defined inline.
float delta ;
grid resolution
float delta ;
vector < int > neigbor;
cube neighbors
there are 26 neighbors for each voxel
vector < int > neigbor;
vector < float > neigborDist;
cube neighbors' distances
vector < float > neigborDist;
vector < DataT > grid;
distances grid
vector < DataT > grid;
public: | ||
---|---|---|
// Constructors | ||
template< class MoleculeT> | BaseGrid(const MoleculeT& mol, const float inDelta, const float maxRadius); | |
void | clear(); | |
int | getIndexForPoint( const Vector3& point) const ; | |
Vector3 | getPointForIndex(int index) const ; | |
bool | isValidIndex(int index) const ; | |
int | getIntGridRadius( float radius ) const ; | |
protected: | ||
float | delta ; | |
vector < int > | neigbor; | |
vector < float > | neigborDist; | |
vector < DataT > | grid; |
Report problems to jkotula@unimax.com