Falaise  4.0.1
SuperNEMO Software Toolkit
line_trajectory_pattern.h
Go to the documentation of this file.
1 /// \file falaise/snemo/datamodels/line_trajectory_pattern.h
2 /* Author(s) : François Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2012-03-19
4  * Last modified: 2014-01-27
5  *
6  * Description: The line trajectory pattern
7  */
8 
9 #ifndef FALAISE_SNEMO_DATAMODEL_LINE_TRAJECTORY_PATTERN_H
10 #define FALAISE_SNEMO_DATAMODEL_LINE_TRAJECTORY_PATTERN_H 1
11 
12 // Third party:
13 // - Bayeux/geomtools:
14 #include <geomtools/line_3d.h>
15 
16 // This project:
18 
19 namespace snemo {
20 
21 namespace datamodel {
22 
23 /// \brief The fitted line trajectory pattern
25  public:
26  /// Return pattern identifier of the pattern
27  static const std::string& pattern_id();
28 
29  /// Default constructor
31 
32  /// Destructor
33  virtual ~line_trajectory_pattern();
34 
35  /// Get a reference to the mutable line/segment embedded model
37 
38  /// Get a reference to the non mutable line/segment embedded model
39  const geomtools::line_3d& get_segment() const;
40 
41  /// Return the reference to the 1D shape associated to the trajectory
42  virtual const geomtools::i_shape_1d& get_shape() const;
43 
44  private:
45  geomtools::line_3d _segment_; //!< The line/segment embedded model
46 
48 };
49 
50 } // end of namespace datamodel
51 
52 } // end of namespace snemo
53 
54 #include <boost/serialization/export.hpp>
55 BOOST_CLASS_EXPORT_KEY2(snemo::datamodel::line_trajectory_pattern,
56  "snemo::datamodel::line_trajectory_pattern")
57 
58 #endif // FALAISE_SNEMO_DATAMODEL_LINE_TRAJECTORY_PATTERN_H
59 
60 /*
61 ** Local Variables: --
62 ** mode: c++ --
63 ** c-file-style: "gnu" --
64 ** tab-width: 2 --
65 ** End: --
66 */
const geomtools::line_3d & get_segment() const
Get a reference to the non mutable line/segment embedded model.
line_trajectory_pattern()
Default constructor.
The fitted line trajectory pattern.
Definition: line_trajectory_pattern.h:24
static const std::string & pattern_id()
Return pattern identifier of the pattern.
#define DATATOOLS_SERIALIZATION_DECLARATION()
virtual ~line_trajectory_pattern()
Destructor.
The base class of fitted trajectory pattern.
Definition: base_trajectory_pattern.h:26
Definition: calo_tapered_scin_box_model.h:54
geomtools::line_3d & grab_segment()
Get a reference to the mutable line/segment embedded model.
virtual const geomtools::i_shape_1d & get_shape() const
Return the reference to the 1D shape associated to the trajectory.