17 #ifndef GENVTX_BOX_MODEL_VG_H 18 #define GENVTX_BOX_MODEL_VG_H 25 #include <boost/scoped_ptr.hpp> 109 virtual void tree_dump(std::ostream & out_ = std::clog,
110 const std::string & title_ =
"",
111 const std::string & indent_ =
"",
112 bool inherit_ =
false)
const;
115 virtual void initialize(const ::datatools::properties &,
120 virtual void reset();
142 void _set_defaults_();
150 bool _surface_front_;
151 bool _surface_bottom_;
154 bool _surface_right_;
156 double _skin_thickness_;
160 boost::scoped_ptr<_work_type> _work_;
176 #endif // GENVTX_BOX_MODEL_VG_H box_model_vg()
Constructor.
void set_surface_bottom(bool)
Set 'bottom' surface activation.
bool is_mode_surface() const
Check if 'surface' mode is activated.
void set_surface_back(bool)
Set 'back' surface activation.
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::genvtx::vg_dict_type &)
Initialization.
void set_skin_skip(double skin_skip_)
Set the skin skip distance.
bool is_surface_left() const
Check if 'left' surface is activated.
void set_use_bounding_box(bool)
Set the flag using bounding box.
bool is_surface_front() const
Check if 'front' surface is activated.
virtual ~box_model_vg()
Destructor.
void _shoot_vertex_boxes(mygsl::rng &random_, geomtools::vector_3d &vertex_)
Main vertex randomization algorithm.
An abstract vertex generator based on a geometry model.
Definition: i_from_model_vg.h:39
DOCD_CLASS_DECLARATION(my::algo)
Declaration of the OCD support for the my::algo class.
void set_mode(int)
Set the mode.
virtual void _shoot_vertex(::mygsl::rng &random_, ::geomtools::vector_3d &vertex_)
Randomize vertex.
void set_surface_left(bool)
Set 'left' surface activation.
void set_skin_thickness(double skin_thickness_)
Set the skin thickness.
int get_mode() const
Return the mode.
A vertex generator based on a boxed geometry model.
Definition: box_model_vg.h:35
void set_surface_front(bool)
Set 'front' surface activation.
bool is_surface_bottom() const
Check if 'bottom' surface is activated.
#define GENVTX_VG_REGISTRATION_INTERFACE(GENVTX_CLASS_NAME)
Definition: vg_macros.h:46
bool is_mode_valid() const
Check the validity of the mode.
Macros to automatically register vertex generator class.
bool is_surface_back() const
Check if 'back' surface is activated.
bool is_using_bounding_box()
Check the flag using bounding box.
void set_surface_right(bool)
Set 'right' surface activation.
std::map< std::string, vg_entry_type > vg_dict_type
Definition: vg_tools.h:125
virtual void reset()
Reset.
virtual bool is_initialized() const
Check initialization status.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
Pseudo random number generator.
Definition: rng.h:53
bool is_surface_right() const
Check if 'right' surface is activated.
bool is_surface_top() const
Check if 'top' surface is activated.
void set_surface_top(bool)
Set 'top' surface activation.
bool is_mode_bulk() const
Check if 'bulk' mode is activated.