#include <ScannerInfo.hpp>
Public Types | |
typedef std::vector< std::pair < double, double > > | ResolutionMap |
Public Member Functions | |
double | getBeamTilt () const |
UINT8 | getDeviceID () const |
Returns the ID of the device that has recorded this scan. | |
double | getEndAngle () const |
const Time & | getEndTimestamp () const |
Returns the end timestamp of the scan (in terms of the host computer clock) | |
const Position3D & | getMountingPosition () const |
UINT32 | getScanFlags () const |
double | getScanFrequency () const |
Returns the start timestamp of this scan as given by the measuring device (which most probably has a clock offset) | |
UINT8 | getScannerType () const |
UINT16 | getScanNumber () const |
Returns the scan counter from scanner device. | |
double | getStartAngle () const |
const Time & | getStartTimestamp () const |
virtual const UINT32 | getUsedMemory () const |
bool | isFrontMirrorSide () |
bool | isRearMirrorSide () |
bool | operator== (const ScannerInfo &other) const |
Equality predicate. | |
ScannerInfo () | |
Empty constructor. | |
void | setBeamTilt (double tilt) |
void | setDeviceID (UINT8 v) |
void | setEndAngle (double v) |
void | setMountingPosition (const Position3D &v) |
void | setProcessingFlags (const UINT16 processingFlags) |
void | setScanFlags (UINT32 flags) |
void | setScanFrequency (double freq) |
Set the scanner's scan frequency in [Hz]. Must be non-negative. | |
void | setScannerType (UINT8 newScannerType) |
void | setScanNumber (UINT16 v) |
void | setStartAngle (double v) |
void | setTimestamps (const Time &start, const Time &end) |
Set the start and end timestamp of the scan received by this scanner (in terms of the host computer clock) | |
~ScannerInfo () | |
Static Public Member Functions | |
static std::string | scannerTypeToString (UINT8 st) |
Private Attributes | |
double | m_beamTilt |
Beam tilt of this scanner in radians. | |
UINT8 | m_deviceID |
Accessor functions for scan flags. | |
double | m_endAngle |
Position3D | m_mountingPosition |
UINT16 | m_processingFlags |
Time | m_scanEndTime |
End timestamp of the scan received by this scanner. | |
UINT32 | m_scanFlags |
Flags for the single scan belonging to this scanner info. | |
double | m_scanFrequency |
Scan frequency of this scanner. | |
UINT8 | m_scannerType |
UINT16 | m_scanNumber |
Time | m_scanStartTime |
Start timestamp of the scan received by this scanner. | |
double | m_startAngle |
Definition at line 23 of file ScannerInfo.hpp.
typedef std::vector<std::pair<double, double> > datatypes::ScannerInfo::ResolutionMap |
Definition at line 39 of file ScannerInfo.hpp.
Empty constructor.
Definition at line 18 of file ScannerInfo.cpp.
Definition at line 35 of file ScannerInfo.cpp.
double datatypes::ScannerInfo::getBeamTilt | ( | ) | const [inline] |
Definition at line 136 of file ScannerInfo.hpp.
UINT8 datatypes::ScannerInfo::getDeviceID | ( | ) | const [inline] |
Returns the ID of the device that has recorded this scan.
Definition at line 42 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::getEndAngle | ( | ) | const [inline] |
Definition at line 69 of file ScannerInfo.hpp.
const Time& datatypes::ScannerInfo::getEndTimestamp | ( | ) | const [inline] |
Returns the end timestamp of the scan (in terms of the host computer clock)
Definition at line 76 of file ScannerInfo.hpp.
const Position3D& datatypes::ScannerInfo::getMountingPosition | ( | ) | const [inline] |
Definition at line 153 of file ScannerInfo.hpp.
UINT32 datatypes::ScannerInfo::getScanFlags | ( | ) | const [inline] |
Definition at line 142 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::getScanFrequency | ( | ) | const [inline] |
Returns the start timestamp of this scan as given by the measuring device (which most probably has a clock offset)
Returns the end timestamp of this scan as given by the measuring device (which most probably has a clock offset) Set the start and end timestamp of the scan as given by the measuring device (which most probably has a clock offset) Get the frequency this scanner is running at in [Hz].
Definition at line 92 of file ScannerInfo.hpp.
UINT8 datatypes::ScannerInfo::getScannerType | ( | ) | const [inline] |
Definition at line 46 of file ScannerInfo.hpp.
UINT16 datatypes::ScannerInfo::getScanNumber | ( | ) | const [inline] |
Returns the scan counter from scanner device.
Definition at line 52 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::getStartAngle | ( | ) | const [inline] |
Definition at line 61 of file ScannerInfo.hpp.
const Time& datatypes::ScannerInfo::getStartTimestamp | ( | ) | const [inline] |
Definition at line 73 of file ScannerInfo.hpp.
virtual const UINT32 datatypes::ScannerInfo::getUsedMemory | ( | ) | const [inline, virtual] |
Implements datatypes::BasicData.
Definition at line 32 of file ScannerInfo.hpp.
Definition at line 88 of file ScannerInfo.cpp.
Definition at line 78 of file ScannerInfo.cpp.
bool datatypes::ScannerInfo::operator== | ( | const ScannerInfo & | other | ) | const |
Equality predicate.
Definition at line 56 of file ScannerInfo.cpp.
std::string datatypes::ScannerInfo::scannerTypeToString | ( | UINT8 | st | ) | [static] |
Definition at line 39 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setBeamTilt | ( | double | tilt | ) |
Definition at line 113 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setDeviceID | ( | UINT8 | v | ) | [inline] |
Definition at line 43 of file ScannerInfo.hpp.
void datatypes::ScannerInfo::setEndAngle | ( | double | v | ) |
Definition at line 101 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setMountingPosition | ( | const Position3D & | v | ) | [inline] |
Definition at line 154 of file ScannerInfo.hpp.
void datatypes::ScannerInfo::setProcessingFlags | ( | const UINT16 | processingFlags | ) |
Definition at line 73 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setScanFlags | ( | UINT32 | flags | ) | [inline] |
Definition at line 145 of file ScannerInfo.hpp.
void datatypes::ScannerInfo::setScanFrequency | ( | double | freq | ) |
Set the scanner's scan frequency in [Hz]. Must be non-negative.
The given start and end must not be not_a_date_time. The given end time must be greater than the start time.
Definition at line 148 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setScannerType | ( | UINT8 | newScannerType | ) |
Definition at line 108 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setScanNumber | ( | UINT16 | v | ) | [inline] |
Definition at line 53 of file ScannerInfo.hpp.
void datatypes::ScannerInfo::setStartAngle | ( | double | v | ) |
Definition at line 94 of file ScannerInfo.cpp.
void datatypes::ScannerInfo::setTimestamps | ( | const Time & | start, |
const Time & | end | ||
) |
Set the start and end timestamp of the scan received by this scanner (in terms of the host computer clock)
The given start and end must not be not_a_date_time. The given end time must be greater than the start time.
Definition at line 124 of file ScannerInfo.cpp.
double datatypes::ScannerInfo::m_beamTilt [private] |
Beam tilt of this scanner in radians.
Definition at line 237 of file ScannerInfo.hpp.
UINT8 datatypes::ScannerInfo::m_deviceID [private] |
Accessor functions for scan flags.
Create and set scanner properties dependent on stored device ID Remove the all-zero elements at the end of the resolution map so that only the non-zero elements will remain Check for legal beam tilt of an 8L scanner.
Definition at line 212 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::m_endAngle [private] |
Definition at line 217 of file ScannerInfo.hpp.
Definition at line 241 of file ScannerInfo.hpp.
Definition at line 219 of file ScannerInfo.hpp.
Time datatypes::ScannerInfo::m_scanEndTime [private] |
End timestamp of the scan received by this scanner.
Definition at line 224 of file ScannerInfo.hpp.
UINT32 datatypes::ScannerInfo::m_scanFlags [private] |
Flags for the single scan belonging to this scanner info.
Definition at line 239 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::m_scanFrequency [private] |
Scan frequency of this scanner.
Raw start timestamp of the scan received by this scanner as given by the measuring device, i.e. including clock offset. Raw end timestamp of the scan received by this scanner as given by the measuring device, i.e. including clock offset.
Definition at line 235 of file ScannerInfo.hpp.
UINT8 datatypes::ScannerInfo::m_scannerType [private] |
Definition at line 213 of file ScannerInfo.hpp.
UINT16 datatypes::ScannerInfo::m_scanNumber [private] |
Definition at line 214 of file ScannerInfo.hpp.
Time datatypes::ScannerInfo::m_scanStartTime [private] |
Start timestamp of the scan received by this scanner.
Definition at line 222 of file ScannerInfo.hpp.
double datatypes::ScannerInfo::m_startAngle [private] |
Definition at line 216 of file ScannerInfo.hpp.