IMP.bff
Loading...
Searching...
No Matches
include
PathMapHeader.h
Go to the documentation of this file.
1
9
#ifndef IMPBFF_PATHMAPHEADER_H
10
#define IMPBFF_PATHMAPHEADER_H
11
12
#include <IMP/bff/bff_config.h>
13
14
#include <cmath>
/* ceil */
15
16
#include <IMP/Particle.h>
17
#include <IMP/algebra/Vector3D.h>
18
#include <IMP/atom/Atom.h>
19
#include <IMP/atom/Hierarchy.h>
20
#include <IMP/atom/Selection.h>
21
#include <IMP/em/DensityHeader.h>
22
23
#include <IMP/bff/internal/json.h>
24
#include <IMP/bff/AV.h>
25
26
#include <algorithm>
27
28
IMPBFF_BEGIN_NAMESPACE
29
30
31
class
PathMap
;
32
33
class
IMPBFFEXPORT
PathMapHeader
{
34
35
friend
class
IMP::bff::PathMap;
36
37
private
:
38
39
double
grid_spacing_;
40
double
max_path_length_;
41
double
neighbor_radius_;
42
double
obstacle_threshold_;
43
44
IMP::em::DensityHeader density_header_;
45
46
protected
:
47
48
IMP::algebra::Vector3D
path_origin_
;
49
50
public
:
51
52
~PathMapHeader
() =
default
;
53
63
PathMapHeader
(
64
double
max_path_length = 10.0,
65
double
grid_spacing = 1.0,
66
double
neighbor_radius = 2,
67
double
obstacle_threshold = std::numeric_limits<double>::epsilon()
68
);
69
73
78
void
update_map_dimensions
(
int
nx=-1,
int
ny=-1,
int
nz=-1);
79
84
void
set_path_origin
(
const
IMP::algebra::Vector3D &v);
85
87
IMP::algebra::Vector3D
get_path_origin
()
const
{
88
return
path_origin_;
89
}
90
95
double
get_max_path_length
(){
96
return
max_path_length_;
97
}
98
103
double
get_simulation_grid_resolution
();
104
109
void
set_obstacle_threshold
(
double
obstacle_threshold);
110
115
double
get_obstacle_threshold
()
const
{
116
return
obstacle_threshold_;
117
}
118
123
void
set_neighbor_radius
(
double
neighbor_radius);
124
129
double
get_neighbor_radius
()
const
{
130
return
neighbor_radius_;
131
}
132
137
int
get_neighbor_box_size
()
const
;
138
140
const
IMP::em::DensityHeader *
get_density_header
()
const
{
141
return
&density_header_; }
142
144
IMP::em::DensityHeader *
get_density_header_writable
() {
145
return
&density_header_; }
146
148
IMP::algebra::Vector3D
get_origin
()
const
;
149
154
double
get_grid_edge_length
();
155
157
void
set_origin
(
float
x,
float
y,
float
z);
158
159
};
160
161
IMP_OBJECTS
(
PathMapHeader
, PathMapHeaders);
162
163
IMPBFF_END_NAMESPACE
164
165
166
#endif
//IMPBFF_PATHMAPHEADER_H
IMP_OBJECTS
IMP_OBJECTS(PathMapHeader, PathMapHeaders)
PathMapHeader
Definition
PathMapHeader.h:33
PathMapHeader::get_grid_edge_length
double get_grid_edge_length()
Get the edge length of the grid.
PathMapHeader::get_density_header
const IMP::em::DensityHeader * get_density_header() const
Returns a read-only pointer to the header of the map.
Definition
PathMapHeader.h:140
PathMapHeader::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())
PathMapHeader::path_origin_
IMP::algebra::Vector3D path_origin_
Definition
PathMapHeader.h:48
PathMapHeader::get_density_header_writable
IMP::em::DensityHeader * get_density_header_writable()
Returns a pointer to the header of the map in a writable version.
Definition
PathMapHeader.h:144
PathMapHeader::get_simulation_grid_resolution
double get_simulation_grid_resolution()
Get the simulation grid resolution.
PathMapHeader::set_path_origin
void set_path_origin(const IMP::algebra::Vector3D &v)
Sets the origin of the path.
PathMapHeader::update_map_dimensions
void update_map_dimensions(int nx=-1, int ny=-1, int nz=-1)
PathMapHeader::get_origin
IMP::algebra::Vector3D get_origin() const
Get origin on the PathMap (the corner of the grid)
PathMapHeader::set_origin
void set_origin(float x, float y, float z)
Set origin on the PathMap (the corner of the grid)
PathMapHeader::get_path_origin
IMP::algebra::Vector3D get_path_origin() const
Returns position of the labeling site.
Definition
PathMapHeader.h:87
PathMapHeader::set_obstacle_threshold
void set_obstacle_threshold(double obstacle_threshold)
Set the obstacle threshold.
PathMapHeader::get_obstacle_threshold
double get_obstacle_threshold() const
Get the obstacle threshold.
Definition
PathMapHeader.h:115
PathMapHeader::set_neighbor_radius
void set_neighbor_radius(double neighbor_radius)
Set the neighbor radius.
PathMapHeader::get_neighbor_radius
double get_neighbor_radius() const
Get the neighbor radius.
Definition
PathMapHeader.h:129
PathMapHeader::get_max_path_length
double get_max_path_length()
Get the maximum linker/path length from origin.
Definition
PathMapHeader.h:95
PathMapHeader::get_neighbor_box_size
int get_neighbor_box_size() const
Get the size of the neighbor box.
PathMapHeader::~PathMapHeader
~PathMapHeader()=default
PathMap
Definition
PathMap.h:44
Generated on Mon Mar 18 2024 22:07:28 for IMP.bff by
1.9.8