Helios++
Helios software for LiDAR simulations
|
Class representing a survey leg. More...
#include <Leg.h>
Public Member Functions | |
Leg () | |
Default leg constructor. | |
Leg (double const length, int const serialId, std::shared_ptr< ScanningStrip > strip) | |
Constructor for leg with input arguments. More... | |
Leg (Leg &leg) | |
Copy constructor for leg. More... | |
double | getLength () const |
Obtain distance to next leg. More... | |
void | setLength (double const length) |
Set distance to next leg. More... | |
ScannerSettings & | getScannerSettings () const |
Obtain leg scanner settings by reference. More... | |
PlatformSettings & | getPlatformSettings () const |
Obtain leg platform settings by reference. More... | |
int | getSerialId () const |
Obtain the serial identifier of the leg. More... | |
void | setSerialId (int const serialId) |
Set the leg serial identifier. More... | |
std::shared_ptr< ScanningStrip > | getStrip () const |
Obtain the scanning strip of the leg. More... | |
void | setStrip (std::shared_ptr< ScanningStrip > strip) |
Set the leg scanning strip. More... | |
bool | isContainedInAStrip () const |
Check whether the leg belongs to a strip (true) or not (false) More... | |
pyhelios::PyScanningStripWrapper * | getPyStrip () const |
void | setPyStrip (pyhelios::PyScanningStripWrapper *pssw) |
Public Attributes | |
std::shared_ptr< ScannerSettings > | mScannerSettings |
Scanner settings for the leg @se ScannerSettings. | |
std::shared_ptr< PlatformSettings > | mPlatformSettings |
Platform settings for the leg. More... | |
std::shared_ptr< TrajectorySettings > | mTrajectorySettings = nullptr |
Trajectory settings for the leg. More... | |
bool | wasProcessed {} |
Boolean flag to store whether the leg was already processed. | |
Private Attributes | |
double | length = 0 |
Distance to the next leg. | |
int | serialId |
The serial non negative integer unique identifier for the leg. If it is a negative integer, it means that the serial identifier is not valid. It is, the serial identifier does not univocally identify the leg. | |
std::shared_ptr< ScanningStrip > | strip |
The strip the leg belongs to. It is a nullptr if the leg does not belong to any strip at all. | |
Class representing a survey leg.
Leg::Leg | ( | double const | length, |
int const | serialId, | ||
std::shared_ptr< ScanningStrip > | strip | ||
) |
Constructor for leg with input arguments.
Leg::Leg | ( | Leg & | leg | ) |
Copy constructor for leg.
WARNING! using this copy constructor will copy the serialId and the strip from given leg. However, the strip itself is not updated to include the copied leg. Thus, it is necessarily to either update the strip so the serial id points to the new leg or to update serial id of copy and include it in strip if desired.
leg | Leg to be copied |
|
inline |
|
inline |
Obtain leg platform settings by reference.
|
inline |
Obtain leg scanner settings by reference.
|
inline |
|
inline |
|
inline |
Check whether the leg belongs to a strip (true) or not (false)
|
inline |
|
inline |
Set the leg serial identifier.
serialId | New serial identifier for the leg |
|
inline |
std::shared_ptr<PlatformSettings> Leg::mPlatformSettings |
Platform settings for the leg.
std::shared_ptr<TrajectorySettings> Leg::mTrajectorySettings = nullptr |
Trajectory settings for the leg.