Helios++
Helios software for LiDAR simulations
|
A scanning strip is a set of legs which belong to the same strip. Thus, it is an abstract group of legs. More...
#include <ScanningStrip.h>
Public Member Functions | |
ScanningStrip (std::string const stripId=NULL_STRIP_ID) | |
Default constructor for scanning strip. | |
bool | has (int const serialId) |
Check whether given serial id belongs to the strip or not. More... | |
bool | has (Leg &leg) |
Check whether given leg belongs to the strip or not. More... | |
void | emplace (int const serialId, Leg *leg) |
Insert/emplace given leg into the scanning strip. More... | |
void | emplace (Leg *leg) |
void | safeEmplace (int const serialId, Leg *leg) |
Like ScanningStrip::emplace(int const, Leg *) but with security checks. More... | |
void | safeEmplace (Leg *leg) |
std::string | getStripId () const |
Obtain the strip identifier. More... | |
void | setStripId (std::string const stripId) |
Set the new strip identifier. More... | |
Leg * | getLeg (int const serialId) |
Obtain leg with given serial identifier. More... | |
bool | isLastLegInStrip () const |
Checks if all the legs in the strip were processed in order to know if the associated SyncFileWriter can be destroyed. More... | |
Static Public Attributes | |
static std::string const | NULL_STRIP_ID = "NULL_STRIP_ID" |
Protected Attributes | |
std::string | stripId |
String identifying the scanning strip. | |
std::unordered_map< int, Leg * > | legs |
Map with leg serial id as key and pointer to leg as value. More... | |
A scanning strip is a set of legs which belong to the same strip. Thus, it is an abstract group of legs.
One leg must belong to either none or at maximum one scanning strip.
A scanning strip is used, for instance, to export to the same output point cloud and trajectory files all legs belonging to the same strip.
|
inline |
Insert/emplace given leg into the scanning strip.
serialId | Serial identifier of the leg to be inserted/emplaced |
leg | Leg to be inserted/emplaced |
|
inline |
|
inline |
Obtain leg with given serial identifier.
serialId | Serial identifier of leg to be obtained |
|
inline |
Obtain the strip identifier.
|
inline |
Check whether given serial id belongs to the strip or not.
serialId | Serial id of leg which association with strip must be checked |
|
inline |
Check whether given leg belongs to the strip or not.
leg | Leg which association with strip must be checked |
|
inline |
Checks if all the legs in the strip were processed in order to know if the associated SyncFileWriter can be destroyed.
|
inline |
Like ScanningStrip::emplace(int const, Leg *) but with security checks.
|
inline |
|
inline |
Set the new strip identifier.
stripId | New strip identifier |
|
protected |
Map with leg serial id as key and pointer to leg as value.