14 typedef std::array<RowVectorNd, 2>
BBox;
20 virtual bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const = 0;
22 virtual int id(
const size_t element_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const
32 static std::shared_ptr<Selection>
build(
33 const json &j_selections,
34 const BBox &mesh_bbox,
43 const json &j_selections,
44 const BBox &mesh_bbox,
64 const json &selection,
65 const BBox &mesh_bbox);
67 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
79 const json &selection,
80 const BBox &mesh_bbox);
82 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override
87 int id(
const size_t element_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
101 const json &selection,
102 const BBox &mesh_bbox);
104 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
117 const json &selection,
118 const BBox &mesh_bbox);
120 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
135 const json &selection,
136 const BBox &mesh_bbox);
138 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
151 const json &selection,
152 const BBox &mesh_bbox);
154 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
169 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override {
return true; }
178 const std::vector<int> &ids);
180 virtual bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override {
return true; }
182 virtual int id(
const size_t element_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
197 const std::string &path,
198 const int id_offset = 0);
200 bool inside(
const size_t p_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
201 int id(
const size_t element_id,
const std::vector<int> &vs,
const RowVectorNd &p)
const override;
204 std::vector<std::pair<int, std::vector<int>>>
data_;
Read-only interface to a hierarchical collection of simulation resources.
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
int id(const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
int id(const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
std::vector< std::pair< int, std::vector< int > > > data_
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool boundary_only() const
static std::vector< std::shared_ptr< utils::Selection > > build_selections(const json &j_selections, const BBox &mesh_bbox, const io::ResourceIO &resources)
Build a vector of selection objects from a JSON selection(s).
std::array< RowVectorNd, 2 > BBox
static std::shared_ptr< Selection > build(const json &j_selections, const BBox &mesh_bbox, const io::ResourceIO &resources)
Build a selection objects from a JSON selection.
virtual bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const =0
virtual int id(const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const
virtual bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
virtual int id(const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const override
bool inside(const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd