Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
geomtools::geom_map Class Reference

#include <bayeux/geomtools/geom_map.h>

Inheritance diagram for geomtools::geom_map:
geomtools::i_locator geomtools::i_base_locator geomtools::mapping

Public Types

typedef std::vector< const geom_info * > ginfo_ptr_collection_type
 
typedef std::map< uint32_t, ginfo_ptr_collection_typeginfo_collections_with_type_dict_type
 

Public Member Functions

datatools::logger::priority get_logging_priority () const
 
void set_logging_priority (datatools::logger::priority)
 
bool is_debug () const
 
void set_debug (bool)
 
const id_mgrget_id_manager () const
 
const geom_info_dict_typeget_geom_infos () const
 
 geom_map ()
 
virtual ~geom_map ()
 
bool has_id_manager () const
 
void set_id_manager (const id_mgr &mgr_)
 
const geom_idget_invalid_geom_id () const
 
virtual bool validate_id (const geom_id &id_) const
 Given a geometry ID, check if it is valid (known within some internal table). More...
 
virtual const geom_infoget_geom_info (const geom_id &) const
 Given a geometry ID, returns the associated geom_info instance (from some internal table). More...
 
virtual const geom_idget_geom_id (const vector_3d &world_position_, int type_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const
 
virtual bool has_geom_info (const geom_id &) const
 
void compute_matching_geom_id (const geom_id &gid_pattern_, std::vector< geom_id > &gids_, bool append_=false) const
 Compute the list of GIDs matching a given GID pattern (including 'ANY' addresses) More...
 
const geom_infoget_geom_info_ptr (const geom_id &) const
 
void get_geom_id (const vector_3d &world_position_, int type_, geom_id &gid_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const
 
void get_geom_id (const vector_3d &world_position_, const std::string &category_, geom_id &gid_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const
 
virtual const geom_idget_geom_id (const vector_3d &world_position_, const std::string &category_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const
 
virtual void build_from (const model_factory &factory_, const std::string &mother_="world")
 
bool has_ginfo_collection_with_type (uint32_t type_) const
 
const ginfo_ptr_collection_typeget_ginfo_collection_with_type (uint32_t type_) const
 
- 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
 

Static Public Member Functions

static bool check_inside (const geom_info &ginfo_, const vector_3d &world_position_, double tolerance_, bool reverse_=false)
 

Protected Member Functions

const id_mgr_get_id_manager () const
 
const geom_info_dict_type_get_geom_infos () const
 
geom_info_dict_type_get_geom_infos ()
 
const ginfo_collections_with_type_dict_typeget_geom_infos_with_type_map () const
 

Protected Attributes

datatools::logger::priority _logging
 

Member Typedef Documentation

◆ ginfo_collections_with_type_dict_type

◆ ginfo_ptr_collection_type

Constructor & Destructor Documentation

◆ geom_map()

geomtools::geom_map::geom_map ( )

◆ ~geom_map()

virtual geomtools::geom_map::~geom_map ( )
virtual

Member Function Documentation

◆ _get_geom_infos() [1/2]

const geom_info_dict_type& geomtools::geom_map::_get_geom_infos ( ) const
protected

◆ _get_geom_infos() [2/2]

geom_info_dict_type& geomtools::geom_map::_get_geom_infos ( )
protected

◆ _get_id_manager()

const id_mgr& geomtools::geom_map::_get_id_manager ( ) const
protected

◆ build_from()

virtual void geomtools::geom_map::build_from ( const model_factory factory_,
const std::string &  mother_ = "world" 
)
virtual

Reimplemented in geomtools::mapping.

◆ check_inside()

static bool geomtools::geom_map::check_inside ( const geom_info ginfo_,
const vector_3d world_position_,
double  tolerance_,
bool  reverse_ = false 
)
static

Check if a given position (in WCS) is inside the volume described by the geometry info object.

  • ginfo_ a geometry info object
  • world_position_ a position in the World coordinate system
  • tolerance_ is the thickness of the skin at the surface of the shape
  • reverse_ if set, this flag test if the position is NOT outside rather than inside the volume

◆ compute_matching_geom_id()

void geomtools::geom_map::compute_matching_geom_id ( const geom_id gid_pattern_,
std::vector< geom_id > &  gids_,
bool  append_ = false 
) const

Compute the list of GIDs matching a given GID pattern (including 'ANY' addresses)

◆ get_geom_id() [1/4]

virtual const geom_id& geomtools::geom_map::get_geom_id ( const vector_3d position_,
int  type_,
double  tolerance_ = GEOMTOOLS_PROPER_TOLERANCE 
) const
virtual

Given a position and the type of some geometry volume, returns the associated geom_id instance (from some internal table).

Implements geomtools::i_locator.

◆ get_geom_id() [2/4]

void geomtools::geom_map::get_geom_id ( const vector_3d world_position_,
int  type_,
geom_id gid_,
double  tolerance_ = GEOMTOOLS_PROPER_TOLERANCE 
) const

◆ get_geom_id() [3/4]

void geomtools::geom_map::get_geom_id ( const vector_3d world_position_,
const std::string &  category_,
geom_id gid_,
double  tolerance_ = GEOMTOOLS_PROPER_TOLERANCE 
) const

◆ get_geom_id() [4/4]

virtual const geom_id& geomtools::geom_map::get_geom_id ( const vector_3d world_position_,
const std::string &  category_,
double  tolerance_ = GEOMTOOLS_PROPER_TOLERANCE 
) const
virtual

◆ get_geom_info()

virtual const geom_info& geomtools::geom_map::get_geom_info ( const geom_id id_) const
virtual

Given a geometry ID, returns the associated geom_info instance (from some internal table).

Implements geomtools::i_locator.

◆ get_geom_info_ptr()

const geom_info* geomtools::geom_map::get_geom_info_ptr ( const geom_id ) const

◆ get_geom_infos()

const geom_info_dict_type& geomtools::geom_map::get_geom_infos ( ) const

◆ get_geom_infos_with_type_map()

const ginfo_collections_with_type_dict_type& geomtools::geom_map::get_geom_infos_with_type_map ( ) const
protected

◆ get_ginfo_collection_with_type()

const ginfo_ptr_collection_type& geomtools::geom_map::get_ginfo_collection_with_type ( uint32_t  type_) const

◆ get_id_manager()

const id_mgr& geomtools::geom_map::get_id_manager ( ) const

◆ get_invalid_geom_id()

const geom_id& geomtools::geom_map::get_invalid_geom_id ( ) const

◆ get_logging_priority()

datatools::logger::priority geomtools::geom_map::get_logging_priority ( ) const

◆ has_geom_info()

virtual bool geomtools::geom_map::has_geom_info ( const geom_id ) const
virtual

◆ has_ginfo_collection_with_type()

bool geomtools::geom_map::has_ginfo_collection_with_type ( uint32_t  type_) const

◆ has_id_manager()

bool geomtools::geom_map::has_id_manager ( ) const

◆ is_debug()

bool geomtools::geom_map::is_debug ( ) const

◆ set_debug()

void geomtools::geom_map::set_debug ( bool  )

◆ set_id_manager()

void geomtools::geom_map::set_id_manager ( const id_mgr mgr_)

◆ set_logging_priority()

void geomtools::geom_map::set_logging_priority ( datatools::logger::priority  )

◆ validate_id()

virtual bool geomtools::geom_map::validate_id ( const geom_id id_) const
virtual

Given a geometry ID, check if it is valid (known within some internal table).

Implements geomtools::i_locator.

Member Data Documentation

◆ _logging

datatools::logger::priority geomtools::geom_map::_logging
protected

The documentation for this class was generated from the following file: