Falaise  4.0.1
SuperNEMO Software Toolkit
polyline_trajectory_pattern.h
Go to the documentation of this file.
1 /// \file falaise/snemo/datamodels/polyline_trajectory_pattern.h
2 /* Author (s) : François Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2012-03-19
4  * Last modified: 2014-01-28
5  *
6  * Description: The polyline trajectory pattern
7  */
8 
9 #ifndef FALAISE_SNEMO_DATAMODEL_POLYLINE_TRAJECTORY_PATTERN_H
10 #define FALAISE_SNEMO_DATAMODEL_POLYLINE_TRAJECTORY_PATTERN_H 1
11 
12 // Third party:
13 // - Bayeux/geomtools:
14 #include <geomtools/polyline_3d.h>
15 
16 // This project:
18 
19 namespace snemo {
20 
21 namespace datamodel {
22 
23 /// The fitted polyline 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
34 
35  /// Get a reference to the mutable polyline path embedded model
37 
38  /// Get a reference to the non mutable polyline path embedded model
39  const geomtools::polyline_3d& get_path() 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::polyline_3d _path_; //!< The polyline path embedded model
46 
48 };
49 
50 } // end of namespace datamodel
51 
52 } // end of namespace snemo
53 
54 #endif // FALAISE_SNEMO_DATAMODEL_POLYLINE_TRAJECTORY_PATTERN_H
55 
56 /*
57 ** Local Variables: --
58 ** mode: c++ --
59 ** c-file-style: "gnu" --
60 ** tab-width: 2 --
61 ** End: --
62 */
virtual const geomtools::i_shape_1d & get_shape() const
Return the reference to the 1D shape associated to the trajectory.
static const std::string & pattern_id()
Return pattern identifier of the pattern.
The fitted polyline trajectory pattern.
Definition: polyline_trajectory_pattern.h:24
geomtools::polyline_3d & grab_path()
Get a reference to the mutable polyline path embedded model.
#define DATATOOLS_SERIALIZATION_DECLARATION()
The base class of fitted trajectory pattern.
Definition: base_trajectory_pattern.h:26
Definition: calo_tapered_scin_box_model.h:54
const geomtools::polyline_3d & get_path() const
Get a reference to the non mutable polyline path embedded model.