Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Construct a placement. More...
#include <bayeux/geomtools/placement.h>
Public Types | |
enum | init_flags { no_child_to_mother_gap = datatools::bit_mask::bit00, no_rotation = datatools::bit_mask::bit01 } |
enum | child_to_mother_gap_mode { gap_undefined = 0, gap_center_to_min = 1, gap_center_to_max = 2, gap_min_to_min = 3, gap_min_to_max = 4, gap_max_to_min = 5, gap_max_to_max = 6 } |
Child to mother gap mode: More... | |
Public Member Functions | |
builder (uint32_t flags_=0) | |
Constructor from initialization flags. More... | |
bool | has_mother_stackable () const |
void | set_mother_stackable (const stackable_data &) |
bool | has_child_stackable () const |
void | set_child_stackable (const stackable_data &) |
bool | use_child_to_mother_gap () const |
bool | allowed_rotation () const |
void | configure (uint32_t flags_=0) |
Configure from flags. More... | |
void | reset () |
Reset the builder. More... | |
void | build (const datatools::properties &config_, placement &p_) const |
Build a placement object from a set of parameters. More... | |
Static Public Member Functions | |
static child_to_mother_gap_mode | get_gap_mode (const std::string &label_) |
Return child/mother gap mode from a label. More... | |
static std::string | get_gap_mode_label (child_to_mother_gap_mode) |
Return the label associated ti a given child/mother gap mode. More... | |
static bool | needs_stackable_child (child_to_mother_gap_mode) |
Check if a given child/mother gap mode needs child stackable informations. More... | |
Protected Member Functions | |
void | _build (const datatools::properties &config_, placement &p_) const |
Construct a placement.
Example of properties:
Example of properties:
Example of properties:
Child to mother gap mode:
geomtools::placement::builder::builder | ( | uint32_t | flags_ = 0 | ) |
Constructor from initialization flags.
|
protected |
bool geomtools::placement::builder::allowed_rotation | ( | ) | const |
void geomtools::placement::builder::build | ( | const datatools::properties & | config_, |
placement & | p_ | ||
) | const |
Build a placement object from a set of parameters.
void geomtools::placement::builder::configure | ( | uint32_t | flags_ = 0 | ) |
Configure from flags.
|
static |
Return child/mother gap mode from a label.
|
static |
Return the label associated ti a given child/mother gap mode.
bool geomtools::placement::builder::has_child_stackable | ( | ) | const |
bool geomtools::placement::builder::has_mother_stackable | ( | ) | const |
|
static |
Check if a given child/mother gap mode needs child stackable informations.
void geomtools::placement::builder::reset | ( | ) |
Reset the builder.
void geomtools::placement::builder::set_child_stackable | ( | const stackable_data & | ) |
void geomtools::placement::builder::set_mother_stackable | ( | const stackable_data & | ) |
bool geomtools::placement::builder::use_child_to_mother_gap | ( | ) | const |