9#ifndef IMPBFF_PATHMAPTILE_H
10#define IMPBFF_PATHMAPTILE_H
12#include <IMP/bff/bff_config.h>
19#include <IMP/bff/PathMap.h>
20#include <IMP/bff/PathMapTileEdge.h>
73 IMP::bff::PathMap* av,
74 std::vector<PathMapTile> &tiles,
75 double neighbor_radius,
89 int nx,
int ny,
int nz,
90 std::vector<PathMapTile>& tiles,
91 std::vector<int> neighbor_idxs,
135 float visit_penalty = 0.0,
136 float tile_density = 1.0
139 penalty(visit_penalty),
140 cost(std::numeric_limits<float>::max()),
142 density(tile_density)
172 std::pair<float, float> bounds = std::pair<float, float>(
173 {std::numeric_limits<float>::min(),
174 std::numeric_limits<float>::max()}),
175 const std::string &feature_name=
"",
176 float grid_spacing = 1.0
186 void set_value(
int value_type,
float value,
const std::string &name=
"");
const float TILE_COST_DEFAULT
Definition PathMapTile.h:26
const float TILE_EDGE_COST_DEFAULT
Definition PathMapTile.h:27
const float TILE_PENALTY_DEFAULT
Definition PathMapTile.h:25
const float TILE_OBSTACLE_PENALTY
Definition PathMapTile.h:31
PathMapTileOutputs
Value types that can be read from a PathMapTile.
Definition PathMapTile.h:35
@ PM_TILE_COST
Write path penalty.
Definition PathMapTile.h:37
@ PM_TILE_PENALTY
Definition PathMapTile.h:36
@ PM_TILE_PATH_LENGTH
Threshold path length and write tile weights.
Definition PathMapTile.h:40
@ PM_TILE_FEATURE
Threshold path length and write tile weights.
Definition PathMapTile.h:42
@ PM_TILE_ACCESSIBLE_FEATURE
Density that is accessible (Path length in bounds)
Definition PathMapTile.h:44
@ PM_TILE_PATH_LENGTH_DENSITY
Write path length.
Definition PathMapTile.h:41
@ PM_TILE_ACCESSIBLE_DENSITY
Threshold path length and write tile weights.
Definition PathMapTile.h:43
@ PM_TILE_DENSITY
Write cost.
Definition PathMapTile.h:38
@ PM_TILE_COST_DENSITY
Density of tile.
Definition PathMapTile.h:39
const float TILE_PENALTY_THRESHOLD
Definition PathMapTile.h:29
IMPBFF_BEGIN_NAMESPACE const bool TILE_VISITED_DEFAULT
Definition PathMapTile.h:24
const float TILE_OBSTACLE_THRESHOLD
Definition PathMapTile.h:30
Definition PathMapTile.h:50
float cost
Definition PathMapTile.h:102
PathMapTile(long index=-1, float visit_penalty=0.0, float tile_density=1.0)
Construct an accessible volume tile.
Definition PathMapTile.h:133
std::map< std::string, float > features
Definition PathMapTile.h:106
std::vector< long > backtrack_to_path()
Computes the path from a tile to the origin.
float penalty
Definition PathMapTile.h:101
long idx
Definition PathMapTile.h:98
void set_value(int value_type, float value, const std::string &name="")
Set the value of a tile.
float density
AV density.
Definition PathMapTile.h:114
float get_value(int value_type, std::pair< float, float > bounds=std::pair< float, float >({std::numeric_limits< float >::min(), std::numeric_limits< float >::max()}), const std::string &feature_name="", float grid_spacing=1.0)
Get the value of a tile.
std::vector< PathMapTileEdge > edges
Definition PathMapTile.h:109
PathMapTile * previous
Definition PathMapTile.h:103