Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A selector of geometry IDs using a specific geometry category. More...
#include <bayeux/geomtools/id_selector.h>
Public Member Functions | |
id_selector () | |
Default constructor. More... | |
id_selector (const id_mgr &id_mgr_) | |
Constructor. More... | |
~id_selector () | |
Destructor. More... | |
bool | is_initialized () const |
Check initialization status. More... | |
void | initialize (const std::string &rules_) |
void | initialize (const datatools::properties &config_) |
void | reset () |
Reset the selector. More... | |
void | set_id_mgr (const id_mgr &id_mgr_) |
Set the GID manager. More... | |
const id_mgr::category_info & | get_category_info () const |
Get the information associated to the requested geometry category. More... | |
bool | match (const geom_id &gid_) const |
Check if a geometry ID match the selection. More... | |
void | dump (std::ostream &out_=std::clog, const std::string &title_="") const |
Print. More... | |
void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="") const |
Print. More... | |
A selector of geometry IDs using a specific geometry category.
The selector is given a textual rule that describes:
geomtools::id_selector::id_selector | ( | ) |
Default constructor.
geomtools::id_selector::id_selector | ( | const id_mgr & | id_mgr_ | ) |
Constructor.
geomtools::id_selector::~id_selector | ( | ) |
Destructor.
void geomtools::id_selector::dump | ( | std::ostream & | out_ = std::clog , |
const std::string & | title_ = "" |
||
) | const |
Print.
const id_mgr::category_info& geomtools::id_selector::get_category_info | ( | ) | const |
Get the information associated to the requested geometry category.
void geomtools::id_selector::initialize | ( | const std::string & | rules_ | ) |
Initialize the selector from a textual rule Supported syntax is:
where :
void geomtools::id_selector::initialize | ( | const datatools::properties & | config_ | ) |
Initialize the selector from a set of properties Supported properties are:
bool geomtools::id_selector::is_initialized | ( | ) | const |
Check initialization status.
bool geomtools::id_selector::match | ( | const geom_id & | gid_ | ) | const |
Check if a geometry ID match the selection.
void geomtools::id_selector::reset | ( | ) |
Reset the selector.
void geomtools::id_selector::set_id_mgr | ( | const id_mgr & | id_mgr_ | ) |
Set the GID manager.
void geomtools::id_selector::tree_dump | ( | std::ostream & | out_ = std::clog , |
const std::string & | title_ = "" , |
||
const std::string & | indent_ = "" |
||
) | const |
Print.