Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Data for stacking along X, Y and/or Z axis. More...
#include <bayeux/geomtools/i_stackable.h>
Public Member Functions | |
stackable_data () | |
Constructor. More... | |
virtual | ~stackable_data () |
Destructor. More... | |
bool | check (const stackable::stackability_mode flags_=stackable::STACKABILITY_STRONG) const |
bool | is_valid_x () const |
Check the validity of stacking information along the X axis. More... | |
bool | is_valid_y () const |
Check the validity of stacking information along the Y axis. More... | |
bool | is_valid_z () const |
Check the validity of stacking information along the Z axis. More... | |
bool | is_valid () const |
Check the validity of stacking information for all axis. More... | |
bool | is_valid_by_axis (axis_type) const |
Check the validity of stacking information for one given axis. More... | |
bool | is_valid_weak () const |
Check the validity of stacking information at least for one axis. More... | |
bool | is_valid_very_weak () const |
Check if at least one stacking information is set (X/Y/Z, min/max) More... | |
void | invalidate () |
Invalidate. More... | |
virtual double | get_xmin () const |
Return the minimum X. More... | |
virtual double | get_xmax () const |
Return the maximum X. More... | |
virtual double | get_ymin () const |
Return the minimum Y. More... | |
virtual double | get_ymax () const |
Return the maximum Y. More... | |
virtual double | get_zmin () const |
Return the minimum Z. More... | |
virtual double | get_zmax () const |
Return the maximum Z. 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... | |
void | dump (std::ostream &out_=std::clog) const |
Print. More... | |
bool | initialize (const datatools::properties &config_) |
Initialization. More... | |
void | reset () |
Reset. More... | |
Public Member Functions inherited from geomtools::i_stackable | |
i_stackable () | |
virtual | ~i_stackable () |
bool | has_xmin () const |
bool | has_xmax () const |
bool | has_ymin () const |
bool | has_ymax () const |
bool | has_zmin () const |
bool | has_zmax () const |
Public Member Functions inherited from datatools::i_tree_dumpable | |
i_tree_dumpable () | |
Constructor. More... | |
virtual | ~i_tree_dumpable () |
Destructor. More... | |
virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
Main new interface method for printing. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
Printing with jsonized options. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
Printing with jsonized options. More... | |
void | tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const |
void | tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const |
void | smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const |
Public Attributes | |
double | xmin |
Minimum X. More... | |
double | xmax |
Maximum X. More... | |
double | ymin |
Minimum Y. More... | |
double | ymax |
Maximum Y. More... | |
double | zmin |
Minimum Z. More... | |
double | zmax |
Maximum Z. More... | |
Additional Inherited Members | |
Public Types inherited from datatools::i_tree_dumpable | |
enum | ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 } |
Enumeration for standard output streams. More... | |
Static Public Member Functions inherited from datatools::i_tree_dumpable | |
static const boost::property_tree::ptree & | empty_options () |
static boost::property_tree::ptree | make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false) |
static std::ostream & | last_skip_tag (std::ostream &out_) |
static std::ostream & | skip_tag (std::ostream &out_) |
static std::ostream & | last_tag (std::ostream &out_) |
static std::ostream & | tag (std::ostream &out_) |
Data for stacking along X, Y and/or Z axis.
geomtools::stackable_data::stackable_data | ( | ) |
Constructor.
|
virtual |
Destructor.
bool geomtools::stackable_data::check | ( | const stackable::stackability_mode | flags_ = stackable::STACKABILITY_STRONG | ) | const |
void geomtools::stackable_data::dump | ( | std::ostream & | out_ = std::clog | ) | const |
Print.
|
virtual |
Return the maximum X.
Implements geomtools::i_stackable.
|
virtual |
Return the minimum X.
Implements geomtools::i_stackable.
|
virtual |
Return the maximum Y.
Implements geomtools::i_stackable.
|
virtual |
Return the minimum Y.
Implements geomtools::i_stackable.
|
virtual |
Return the maximum Z.
Implements geomtools::i_stackable.
|
virtual |
Return the minimum Z.
Implements geomtools::i_stackable.
bool geomtools::stackable_data::initialize | ( | const datatools::properties & | config_ | ) |
Initialization.
void geomtools::stackable_data::invalidate | ( | ) |
Invalidate.
bool geomtools::stackable_data::is_valid | ( | ) | const |
Check the validity of stacking information for all axis.
bool geomtools::stackable_data::is_valid_by_axis | ( | axis_type | ) | const |
Check the validity of stacking information for one given axis.
bool geomtools::stackable_data::is_valid_very_weak | ( | ) | const |
Check if at least one stacking information is set (X/Y/Z, min/max)
bool geomtools::stackable_data::is_valid_weak | ( | ) | const |
Check the validity of stacking information at least for one axis.
bool geomtools::stackable_data::is_valid_x | ( | ) | const |
Check the validity of stacking information along the X axis.
bool geomtools::stackable_data::is_valid_y | ( | ) | const |
Check the validity of stacking information along the Y axis.
bool geomtools::stackable_data::is_valid_z | ( | ) | const |
Check the validity of stacking information along the Z axis.
void geomtools::stackable_data::reset | ( | ) |
Reset.
|
virtual |
Smart print.
Reimplemented from datatools::i_tree_dumpable.
double geomtools::stackable_data::xmax |
Maximum X.
double geomtools::stackable_data::xmin |
Minimum X.
double geomtools::stackable_data::ymax |
Maximum Y.
double geomtools::stackable_data::ymin |
Minimum Y.
double geomtools::stackable_data::zmax |
Maximum Z.
double geomtools::stackable_data::zmin |
Minimum Z.