|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
#include <IMP/algebra/grid_embeddings.h>
Embedding of a grid as log-evenly spaced axis aligned grid.
Definition at line 186 of file grid_embeddings.h.
Public Member Functions | |
| LogEmbeddingD (const BoundingBoxD< D > &bb, const VectorD< D > &bases, const Ints &counts, bool bound_centers=false) | |
| LogEmbeddingD (const VectorD< D > &, const VectorD< D > &) | |
| LogEmbeddingD (const VectorD< D > &origin, const VectorD< D > &cell, const VectorD< D > &base) | |
| unsigned int | get_dimension () const |
| ExtendedGridIndexD< D > | get_extended_index (const VectorD< D > &o) const |
| Return the index that would contain the voxel if the grid extended there. | |
| GridIndexD< D > | get_index (const VectorD< D > &o) const |
| const VectorD< D > | get_origin () const |
| const VectorD< D > & | get_unit_cell () const |
| Return the unit cell, relative to the origin. | |
| void | set_origin (const VectorD< D > &o) |
| void | set_unit_cell (const VectorD< D > &o) |
| void | set_unit_cell (const VectorD< D > &o, const VectorD< D > &base) |
| void | show (std::ostream &out=std::cout) const |
Center | |
Return the coordinates of the center of the voxel. | |
| VectorD< D > | get_center (const ExtendedGridIndexD< D > &ei) const |
| VectorD< D > | get_center (const GridIndexD< D > &ei) const |
Bounding box | |
Return the bounding box of the voxel. | |
| BoundingBoxD< D > | get_bounding_box (const ExtendedGridIndexD< D > &ei) const |
| BoundingBoxD< D > | get_bounding_box (const GridIndexD< D > &ei) const |
| IMP::algebra::LogEmbeddingD< D >::LogEmbeddingD | ( | const VectorD< D > & | origin, |
| const VectorD< D > & | cell, | ||
| const VectorD< D > & | base ) |
Definition at line 233 of file grid_embeddings.h.
| IMP::algebra::LogEmbeddingD< D >::LogEmbeddingD | ( | const BoundingBoxD< D > & | bb, |
| const VectorD< D > & | bases, | ||
| const Ints & | counts, | ||
| bool | bound_centers = false ) |
Embedding of a grid as a log-evenly distributed axis-aligned grid over the bounding box bb.
| bb | the bounding box in which the grid is embedded |
| bases | bases[i] is a positive log base used for the grid spacing in dimension i. Set base[i] to 1 in order to create a standard evenly spaced grid along dimension i. |
| counts | counts[i] is the number of discrete points in dimension i |
| bound_centers | if true, then the bounding box tightly bounds the centers of the voxels, not their extents. |
Definition at line 250 of file grid_embeddings.h.
| IMP::algebra::LogEmbeddingD< D >::LogEmbeddingD | ( | const VectorD< D > & | , |
| const VectorD< D > & | ) |
Definition at line 296 of file grid_embeddings.h.
| IMP::algebra::LogEmbeddingD< D >::LogEmbeddingD | ( | ) |
Definition at line 299 of file grid_embeddings.h.
| BoundingBoxD< D > IMP::algebra::LogEmbeddingD< D >::get_bounding_box | ( | const ExtendedGridIndexD< D > & | ei | ) | const |
Definition at line 371 of file grid_embeddings.h.
| BoundingBoxD< D > IMP::algebra::LogEmbeddingD< D >::get_bounding_box | ( | const GridIndexD< D > & | ei | ) | const |
Definition at line 375 of file grid_embeddings.h.
| VectorD< D > IMP::algebra::LogEmbeddingD< D >::get_center | ( | const ExtendedGridIndexD< D > & | ei | ) | const |
Definition at line 359 of file grid_embeddings.h.
| VectorD< D > IMP::algebra::LogEmbeddingD< D >::get_center | ( | const GridIndexD< D > & | ei | ) | const |
Definition at line 362 of file grid_embeddings.h.
| unsigned int IMP::algebra::LogEmbeddingD< D >::get_dimension | ( | ) | const |
Definition at line 302 of file grid_embeddings.h.
| ExtendedGridIndexD< D > IMP::algebra::LogEmbeddingD< D >::get_extended_index | ( | const VectorD< D > & | o | ) | const |
Return the index that would contain the voxel if the grid extended there.
For example vectors below the "lower left" corner of the grid have indexes with all negative components. This operation will always succeed.
Definition at line 320 of file grid_embeddings.h.
| GridIndexD< D > IMP::algebra::LogEmbeddingD< D >::get_index | ( | const VectorD< D > & | o | ) | const |
Definition at line 351 of file grid_embeddings.h.
| const VectorD< D > IMP::algebra::LogEmbeddingD< D >::get_origin | ( | ) | const |
Definition at line 301 of file grid_embeddings.h.
| const VectorD< D > & IMP::algebra::LogEmbeddingD< D >::get_unit_cell | ( | ) | const |
Return the unit cell, relative to the origin.
That is, the unit cell is
Definition at line 314 of file grid_embeddings.h.
| void IMP::algebra::LogEmbeddingD< D >::set_origin | ( | const VectorD< D > & | o | ) |
Definition at line 300 of file grid_embeddings.h.
| void IMP::algebra::LogEmbeddingD< D >::set_unit_cell | ( | const VectorD< D > & | o | ) |
Definition at line 307 of file grid_embeddings.h.
| void IMP::algebra::LogEmbeddingD< D >::set_unit_cell | ( | const VectorD< D > & | o, |
| const VectorD< D > & | base ) |
Definition at line 303 of file grid_embeddings.h.