![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Locator of geometry volumes by thier geometry Id. More...
#include <bayeux/geomtools/smart_id_locator.h>
Public Types | |
| enum | mode_type { MODE_INVALID = 0, MODE_LAST = 1, MODE_DEFAULT = MODE_LAST } |
| Mode. More... | |
Public Member Functions | |
| datatools::logger::priority | get_logging_priority () const |
| Get logging priority threshold. More... | |
| void | set_logging_priority (datatools::logger::priority) |
| bool | is_initialized () const |
| Check Initialization flag. More... | |
| void | set_gmap (const geom_map &gmap_) |
| Set the reference geometry map. More... | |
| smart_id_locator () | |
| Constructor. More... | |
| smart_id_locator (const geom_map &gmap_) | |
| Constructor. More... | |
| smart_id_locator (const geom_map &gmap_, uint32_t type_, int mode_=MODE_DEFAULT) | |
| Constructor. More... | |
| smart_id_locator (const geom_map &gmap_, const std::string &rules_, int mode_=MODE_DEFAULT) | |
| Constructor. More... | |
| virtual | ~smart_id_locator () |
| Destructor. More... | |
| void | initialize (uint32_t type_, int mode_=MODE_DEFAULT) |
| Initialize the locator from the geometry type. More... | |
| void | initialize (const std::string &selection_rules_, int mode_=MODE_DEFAULT) |
| Initialize the locator from a selection rule. More... | |
| void | reset () |
| Reset the locator. More... | |
| const std::list< const geom_info * > & | get_ginfos () const |
| Get the list of geometry info object handles. More... | |
| virtual bool | validate_id (const geom_id &id_) const |
| Check if a given geom Id is valid. More... | |
| virtual const geom_info & | get_geom_info (const geom_id &id_) const |
| Retrieve the geometry info object from its geometry Id. More... | |
| virtual const geom_id & | get_geom_id (const vector_3d &world_position_, int type_=geom_id::INVALID_TYPE, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const |
| Retrieve the geometry Id of the volume from the world position. More... | |
| void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
| Smart print. More... | |
| void | dump (std::ostream &out_=std::clog) const |
| Dump. More... | |
| void | print_infos (std::ostream &out_) const |
| Print. More... | |
Public Member Functions inherited from geomtools::i_locator | |
| virtual bool | find_geom_id (const vector_3d &position_, int type_, geom_id &gid_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const |
Protected Member Functions | |
| void | _construct () |
| Construction. More... | |
Locator of geometry volumes by thier geometry Id.
| geomtools::smart_id_locator::smart_id_locator | ( | ) |
Constructor.
| geomtools::smart_id_locator::smart_id_locator | ( | const geom_map & | gmap_ | ) |
Constructor.
| geomtools::smart_id_locator::smart_id_locator | ( | const geom_map & | gmap_, |
| uint32_t | type_, | ||
| int | mode_ = MODE_DEFAULT |
||
| ) |
Constructor.
| geomtools::smart_id_locator::smart_id_locator | ( | const geom_map & | gmap_, |
| const std::string & | rules_, | ||
| int | mode_ = MODE_DEFAULT |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
protected |
Construction.
| void geomtools::smart_id_locator::dump | ( | std::ostream & | out_ = std::clog | ) | const |
Dump.
|
virtual |
Retrieve the geometry Id of the volume from the world position.
Implements geomtools::i_locator.
|
virtual |
Retrieve the geometry info object from its geometry Id.
Implements geomtools::i_locator.
| const std::list<const geom_info *>& geomtools::smart_id_locator::get_ginfos | ( | ) | const |
Get the list of geometry info object handles.
| datatools::logger::priority geomtools::smart_id_locator::get_logging_priority | ( | ) | const |
Get logging priority threshold.
| void geomtools::smart_id_locator::initialize | ( | uint32_t | type_, |
| int | mode_ = MODE_DEFAULT |
||
| ) |
Initialize the locator from the geometry type.
| void geomtools::smart_id_locator::initialize | ( | const std::string & | selection_rules_, |
| int | mode_ = MODE_DEFAULT |
||
| ) |
Initialize the locator from a selection rule.
| bool geomtools::smart_id_locator::is_initialized | ( | ) | const |
Check Initialization flag.
| void geomtools::smart_id_locator::print_infos | ( | std::ostream & | out_ | ) | const |
Print.
| void geomtools::smart_id_locator::reset | ( | ) |
Reset the locator.
| void geomtools::smart_id_locator::set_gmap | ( | const geom_map & | gmap_ | ) |
Set the reference geometry map.
| void geomtools::smart_id_locator::set_logging_priority | ( | datatools::logger::priority | ) |
| void geomtools::smart_id_locator::tree_dump | ( | std::ostream & | out_ = std::clog, |
| const std::string & | title_ = "", |
||
| const std::string & | indent_ = "", |
||
| bool | inherit_ = false |
||
| ) | const |
Smart print.
|
virtual |
Check if a given geom Id is valid.
Implements geomtools::i_locator.
1.8.15