Helios++
Helios software for LiDAR simulations
Leg.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include "ScannerSettings.h"
6 #include "PlatformSettings.h"
7 
11 class Leg {
12 public:
13  // *** ATTRIBUTES *** //
14  // ******************** //
19  std::shared_ptr<ScannerSettings> mScannerSettings;
24  std::shared_ptr<PlatformSettings> mPlatformSettings;
25 
26 private:
30  double length = 0; // Distance to the next leg
31 
32 public:
33  // *** CONSTRUCTION / DESTRUCTION *** //
34  // ************************************ //
38  Leg() = default;
39  Leg(Leg &leg);
40  virtual ~Leg() {}
41 
42  // *** GETTERS and SETTERS *** //
43  // ***************************** //
49  double getLength() {return this->length;}
55  void setLength(double length) {this->length = length;}
68 };
void setLength(double length)
Set distance to next leg.
Definition: Leg.h:55
std::shared_ptr< PlatformSettings > mPlatformSettings
Platform settings for the leg.
Definition: Leg.h:24
std::shared_ptr< ScannerSettings > mScannerSettings
Scanner settings for the leg ScannerSettings.
Definition: Leg.h:19
double length
Distance to the next leg.
Definition: Leg.h:30
Class representing platform settings.
Definition: PlatformSettings.h:10
double getLength()
Obtain distance to next leg.
Definition: Leg.h:49
Class representing a survey leg.
Definition: Leg.h:11
ScannerSettings & getScannerSettings()
Obtain leg scanner settings by reference.
Definition: Leg.h:61
Leg()=default
Default leg constructor.
Scanner settings class.
Definition: ScannerSettings.h:9
PlatformSettings & getPlatformSettings()
Obtain leg platform settings by reference.
Definition: Leg.h:67