IMP Reference Guide
develop.d97d4ead1f,2024/11/21
The Integrative Modeling Platform
|
#include <IMP/bff/PathMapHeader.h>
Definition at line 33 of file PathMapHeader.h.
Public Member Functions | |
PathMapHeader (double max_path_length=10.0, double grid_spacing=1.0, double neighbor_radius=2, double obstacle_threshold=std::numeric_limits< double >::epsilon()) | |
const IMP::em::DensityHeader * | get_density_header () const |
Returns a read-only pointer to the header of the map. More... | |
IMP::em::DensityHeader * | get_density_header_writable () |
Returns a pointer to the header of the map in a writable version. More... | |
double | get_grid_edge_length () |
Get the edge length of the grid. More... | |
double | get_max_path_length () |
Get the maximum linker/path length from origin. More... | |
int | get_neighbor_box_size () const |
Get the size of the neighbor box. More... | |
double | get_neighbor_radius () const |
Get the neighbor radius. More... | |
double | get_obstacle_threshold () const |
Get the obstacle threshold. More... | |
IMP::algebra::Vector3D | get_origin () const |
Get origin on the PathMap (the corner of the grid) More... | |
IMP::algebra::Vector3D | get_path_origin () const |
Returns position of the labeling site. More... | |
double | get_simulation_grid_resolution () |
Get the simulation grid resolution. More... | |
void | set_neighbor_radius (double neighbor_radius) |
Set the neighbor radius. More... | |
void | set_obstacle_threshold (double obstacle_threshold) |
Set the obstacle threshold. More... | |
void | set_origin (float x, float y, float z) |
Set origin on the PathMap (the corner of the grid) More... | |
void | set_path_origin (const IMP::algebra::Vector3D &v) |
Sets the origin of the path. More... | |
void | show (std::ostream &out=std::cout) const |
void | update_map_dimensions (int nx=-1, int ny=-1, int nz=-1) |
Protected Attributes | |
IMP::algebra::Vector3D | path_origin_ |
IMP::bff::PathMapHeader::PathMapHeader | ( | double | max_path_length = 10.0 , |
double | grid_spacing = 1.0 , |
||
double | neighbor_radius = 2 , |
||
double | obstacle_threshold = std::numeric_limits< double >::epsilon() |
||
) |
max_path_length | maximum length of path (defines also size of grid) |
grid_spacing | spacing between grid tiles |
neighbor_radius | defines size of box around tile where other voxels are considered a neighbor |
obstacle_threshold | voxels with density larger than this threshold value are considered an obstacle. |
const IMP::em::DensityHeader* IMP::bff::PathMapHeader::get_density_header | ( | ) | const |
Returns a read-only pointer to the header of the map.
Definition at line 140 of file PathMapHeader.h.
IMP::em::DensityHeader* IMP::bff::PathMapHeader::get_density_header_writable | ( | ) |
Returns a pointer to the header of the map in a writable version.
Definition at line 144 of file PathMapHeader.h.
double IMP::bff::PathMapHeader::get_grid_edge_length | ( | ) |
Get the edge length of the grid.
double IMP::bff::PathMapHeader::get_max_path_length | ( | ) |
Get the maximum linker/path length from origin.
Definition at line 95 of file PathMapHeader.h.
int IMP::bff::PathMapHeader::get_neighbor_box_size | ( | ) | const |
Get the size of the neighbor box.
double IMP::bff::PathMapHeader::get_neighbor_radius | ( | ) | const |
Get the neighbor radius.
Definition at line 129 of file PathMapHeader.h.
double IMP::bff::PathMapHeader::get_obstacle_threshold | ( | ) | const |
Get the obstacle threshold.
Definition at line 115 of file PathMapHeader.h.
IMP::algebra::Vector3D IMP::bff::PathMapHeader::get_origin | ( | ) | const |
Get origin on the PathMap (the corner of the grid)
IMP::algebra::Vector3D IMP::bff::PathMapHeader::get_path_origin | ( | ) | const |
Returns position of the labeling site.
Definition at line 87 of file PathMapHeader.h.
double IMP::bff::PathMapHeader::get_simulation_grid_resolution | ( | ) |
Get the simulation grid resolution.
void IMP::bff::PathMapHeader::set_neighbor_radius | ( | double | neighbor_radius | ) |
Set the neighbor radius.
neighbor_radius | The neighbor radius value |
void IMP::bff::PathMapHeader::set_obstacle_threshold | ( | double | obstacle_threshold | ) |
Set the obstacle threshold.
obstacle_threshold | The obstacle threshold value |
void IMP::bff::PathMapHeader::set_origin | ( | float | x, |
float | y, | ||
float | z | ||
) |
Set origin on the PathMap (the corner of the grid)
void IMP::bff::PathMapHeader::set_path_origin | ( | const IMP::algebra::Vector3D & | v | ) |
Sets the origin of the path.
v | The origin vector. |
void IMP::bff::PathMapHeader::update_map_dimensions | ( | int | nx = -1 , |
int | ny = -1 , |
||
int | nz = -1 |
||
) |
Update the dimensions of the AV to be (nnx,nny,nnz) The origin of the map does not change. If not values are provided used linker length & radius to update.
[in] | nnx | the new number of voxels on the X axis |
[in] | nny | the new number of voxels on the Y axis |
[in] | nnz | the new number of voxels on the Z axis |