Helios++
Helios software for LiDAR simulations
PyScanningStripWrapper.h
1 #pragma once
2 
3 #ifdef PYTHON_BINDING
4 
5 #include <ScanningStrip.h>
6 
7 #include <memory>
8 
9 namespace pyhelios{
10 
18 public:
19  // *** ATTRIBUTES *** //
20  // ******************** //
21  std::shared_ptr<ScanningStrip> ss = nullptr;
22 
23 
24  // *** CONSTRUCTION / DESTRUCTION *** //
25  // ************************************ //
26  PyScanningStripWrapper(std::shared_ptr<ScanningStrip> ss) : ss(ss) {}
27  virtual ~PyScanningStripWrapper() = default;
28 
29 
30  // *** GETTERs and SETTERs *** //
31  // ***************************** //
32  inline std::string getStripId() {return ss->getStripId();}
33  inline void setStripId(std::string const stripId){ss->setStripId(stripId);}
38  inline Leg & getLegRef(int const serialId) {return *ss->getLeg(serialId);}
39  inline bool isLastLegInStrip() {return ss->isLastLegInStrip();}
40  inline bool has(int const serialId) {return ss->has(serialId);}
41  inline bool has(Leg &leg){return ss->has(leg);}
42 
43 };
44 
45 }
46 
47 #endif
Class representing a survey leg.
Definition: Leg.h:17
Wrapper for ScanningStrip class.
Definition: PyScanningStripWrapper.h:17
Leg & getLegRef(int const serialId)
Like the ScanningStrip::getLeg but obtaining the leg by reference.
Definition: PyScanningStripWrapper.h:38