Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | List of all members
geomtools::i_locator Class Referenceabstract

#include <bayeux/geomtools/i_locator.h>

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

Public Member Functions

virtual bool validate_id (const geom_id &id_) const =0
 Given a geometry ID, check if it is valid (known within some internal table). More...
 
virtual const geom_infoget_geom_info (const geom_id &id_) const =0
 Given a geometry ID, returns the associated geom_info instance (from some internal table). More...
 
virtual const geom_idget_geom_id (const vector_3d &position_, int type_=geom_id::INVALID_TYPE, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const =0
 
virtual bool find_geom_id (const vector_3d &position_, int type_, geom_id &gid_, double tolerance_=GEOMTOOLS_PROPER_TOLERANCE) const
 

Detailed Description

An abstract interface for locators based on some internal lookup table. Its methods return some reference to some stored geometrical meta data.

Member Function Documentation

◆ find_geom_id()

virtual bool geomtools::i_locator::find_geom_id ( const vector_3d position_,
int  type_,
geom_id gid_,
double  tolerance_ = GEOMTOOLS_PROPER_TOLERANCE 
) const
virtual

Given a position and the type of some geometry volume, returns if position is inside and the associated geom_id

Implements geomtools::i_base_locator.

◆ get_geom_id()

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

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

Implemented in geomtools::smart_id_locator, and geomtools::geom_map.

◆ get_geom_info()

virtual const geom_info& geomtools::i_locator::get_geom_info ( const geom_id id_) const
pure virtual

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

Implemented in geomtools::smart_id_locator, and geomtools::geom_map.

◆ validate_id()

virtual bool geomtools::i_locator::validate_id ( const geom_id id_) const
pure virtual

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

Implemented in geomtools::smart_id_locator, and geomtools::geom_map.


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