IMP logo
IMP Reference Guide  2.22.0
The Integrative Modeling Platform
IMP::bff::PathMapHeader Class Reference

#include <IMP/bff/PathMapHeader.h>

Detailed Description

  • Header class for path search class PathMap

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::DensityHeaderget_density_header () const
 Returns a read-only pointer to the header of the map. More...
 
IMP::em::DensityHeaderget_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_
 

Constructor & Destructor Documentation

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() 
)
Parameters
max_path_lengthmaximum length of path (defines also size of grid)
grid_spacingspacing between grid tiles
neighbor_radiusdefines size of box around tile where other voxels are considered a neighbor
obstacle_thresholdvoxels with density larger than this threshold value are considered an obstacle.

Member Function Documentation

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.

Returns
The edge length of the grid as a double.
double IMP::bff::PathMapHeader::get_max_path_length ( )

Get the maximum linker/path length from origin.

Returns
The maximum linker/path length.

Definition at line 95 of file PathMapHeader.h.

int IMP::bff::PathMapHeader::get_neighbor_box_size ( ) const

Get the size of the neighbor box.

Returns
The size of the neighbor box
double IMP::bff::PathMapHeader::get_neighbor_radius ( ) const

Get the neighbor radius.

Returns
The neighbor radius as a double.

Definition at line 129 of file PathMapHeader.h.

double IMP::bff::PathMapHeader::get_obstacle_threshold ( ) const

Get the obstacle threshold.

Returns
The obstacle threshold value

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.

Returns
The simulation grid resolution as a double.
void IMP::bff::PathMapHeader::set_neighbor_radius ( double  neighbor_radius)

Set the neighbor radius.

Parameters
neighbor_radiusThe neighbor radius value
void IMP::bff::PathMapHeader::set_obstacle_threshold ( double  obstacle_threshold)

Set the obstacle threshold.

Parameters
obstacle_thresholdThe 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.

Parameters
vThe 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.

Parameters
[in]nnxthe new number of voxels on the X axis
[in]nnythe new number of voxels on the Y axis
[in]nnzthe new number of voxels on the Z axis

The documentation for this class was generated from the following file: