Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A geometry model with some stacked boxed models along a specific axis (X, Y or Z) More...
#include <bayeux/geomtools/stacked_model.h>
Classes | |
struct | stacked_item |
Public Types | |
enum | stacking_axis_t { STACKING_ALONG_INVALID = -1, STACKING_ALONG_X = AXIS_X, STACKING_ALONG_Y = AXIS_Y, STACKING_ALONG_Z = AXIS_Z } |
typedef std::map< int, stacked_item > | stacked_dict_type |
typedef std::map< std::string, int > | labels_dict_type |
Public Member Functions | |
bool | is_box_solid () const |
bool | is_cylinder_solid () const |
const std::string & | get_material_name () const |
void | set_material_name (const std::string &) |
void | set_stacking_axis (int a_) |
int | get_stacking_axis () const |
bool | is_stacking_along_x () const |
bool | is_stacking_along_y () const |
bool | is_stacking_along_z () const |
void | set_envelope_shape (const std::string &) |
const std::string & | get_envelope_shape () const |
virtual const geomtools::box & | get_box () const |
const geomtools::box & | get_solid () const |
const geomtools::cylinder & | get_cyl_solid () const |
size_t | get_number_of_stacked_models () const |
void | add_stacked_model (int i_, const i_model &, const std::string &label_="") |
bool | has_stacked_model (const std::string &label_) const |
const i_model & | get_stacked_model (int i_) const |
const stacked_item & | get_stacked_item (int i_) const |
const i_model & | get_stacked_model (const std::string &label_) const |
const stacked_item & | get_stacked_item (const std::string &label_) const |
const labels_dict_type & | get_labels () const |
const stacked_dict_type & | get_models () const |
virtual std::string | get_model_id () const |
stacked_model () | |
Default constructor. More... | |
virtual | ~stacked_model () |
Destructor. More... | |
virtual void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
Smart print. More... | |
Static Public Attributes | |
static const std::string | STACKED_PROPERTY_PREFIX |
static const std::string | STACKED_MODEL_PROPERTY_PREFIX |
static const std::string | STACKED_LABEL_PROPERTY_PREFIX |
static const std::string | DEFAULT_STACKED_LABEL_PREFIX |
static const double | DEFAULT_MECHANICS_PLAY |
static const double | DEFAULT_NUMERICS_PLAY |
Protected Member Functions | |
virtual void | _at_construct (const std::string &name_, const datatools::properties &config_, models_col_type *models_=0) |
Construction. More... | |
A geometry model with some stacked boxed models along a specific axis (X, Y or Z)
typedef std::map<std::string, int> geomtools::stacked_model::labels_dict_type |
typedef std::map<int, stacked_item> geomtools::stacked_model::stacked_dict_type |
geomtools::stacked_model::stacked_model | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protectedvirtual |
Construction.
void geomtools::stacked_model::add_stacked_model | ( | int | i_, |
const i_model & | , | ||
const std::string & | label_ = "" |
||
) |
|
virtual |
const geomtools::cylinder& geomtools::stacked_model::get_cyl_solid | ( | ) | const |
const std::string& geomtools::stacked_model::get_envelope_shape | ( | ) | const |
const labels_dict_type& geomtools::stacked_model::get_labels | ( | ) | const |
const std::string& geomtools::stacked_model::get_material_name | ( | ) | const |
|
virtual |
const stacked_dict_type& geomtools::stacked_model::get_models | ( | ) | const |
size_t geomtools::stacked_model::get_number_of_stacked_models | ( | ) | const |
const geomtools::box& geomtools::stacked_model::get_solid | ( | ) | const |
const stacked_item& geomtools::stacked_model::get_stacked_item | ( | int | i_ | ) | const |
const stacked_item& geomtools::stacked_model::get_stacked_item | ( | const std::string & | label_ | ) | const |
const i_model& geomtools::stacked_model::get_stacked_model | ( | int | i_ | ) | const |
const i_model& geomtools::stacked_model::get_stacked_model | ( | const std::string & | label_ | ) | const |
int geomtools::stacked_model::get_stacking_axis | ( | ) | const |
bool geomtools::stacked_model::has_stacked_model | ( | const std::string & | label_ | ) | const |
bool geomtools::stacked_model::is_box_solid | ( | ) | const |
bool geomtools::stacked_model::is_cylinder_solid | ( | ) | const |
bool geomtools::stacked_model::is_stacking_along_x | ( | ) | const |
bool geomtools::stacked_model::is_stacking_along_y | ( | ) | const |
bool geomtools::stacked_model::is_stacking_along_z | ( | ) | const |
void geomtools::stacked_model::set_envelope_shape | ( | const std::string & | ) |
void geomtools::stacked_model::set_material_name | ( | const std::string & | ) |
void geomtools::stacked_model::set_stacking_axis | ( | int | a_ | ) |
|
virtual |
Smart print.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |