9 #ifndef IMPEM_MASKING_H
10 #define IMPEM_MASKING_H
12 #include <IMP/em/em_config.h>
23 inline const std::vector<double> *get_neighbor_shift()
const {
24 return &neighbor_shift_;
26 inline const std::vector<double> *get_neighbor_dist()
const {
27 return &neighbor_dist_;
29 inline const std::vector<double> *get_neighbor_dist_exp()
const {
30 return &neighbor_dist_exp_;
33 void show(std::ostream &out)
const { out <<
"RadiusDependentDistanceMask"; }
36 std::vector<double> neighbor_shift_;
37 std::vector<double> neighbor_dist_;
38 std::vector<double> neighbor_dist_exp_;
53 void show(std::ostream &out)
const { out <<
"DistanceMask"; }
54 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
69 float eps = 0.001)
const;
71 bool is_mask_set(
float radius,
float eps = 0.001) {
72 return get_mask(radius, eps) !=
nullptr;
76 typedef std::map<float, const RadiusDependentDistanceMask *> MASK_MAP;
Calculates and stores Gaussian kernel parameters.
Calculates and stores a distance mask.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.