#include <Scan.hpp>
Definition at line 24 of file Scan.hpp.
Type of a const reference to an element.
Definition at line 37 of file Scan.hpp.
Enumerator |
---|
FlagVehicleCoordinates |
Bit 11: Scanpoint coordinate system; 0 = scanner coordinates, 1 = vehicle / reference coordinates.
|
Definition at line 49 of file Scan.hpp.
datatypes::Scan::Scan |
( |
size_type |
maxPoints = 5280 | ) |
|
datatypes::Scan::Scan |
( |
const Scan & |
other | ) |
|
Copy constructor. Copies the given right hand side object into this object. An alias for copy().
Definition at line 37 of file Scan.cpp.
datatypes::Scan::~Scan |
( |
| ) |
|
Default destructor.
Definition at line 145 of file Scan.cpp.
void datatypes::Scan::addCartesianOffset |
( |
double |
offsetX, |
|
|
double |
offsetY, |
|
|
double |
offsetZ |
|
) |
| |
The new point is added to the list of scan points and the number of scan points is increased.
Definition at line 173 of file Scan.cpp.
void datatypes::Scan::addPolarOffset |
( |
double |
distOffset, |
|
|
double |
hAngleOffset, |
|
|
double |
vAngleOffset |
|
) |
| |
Returns the n-th scan point (read only) with range checking.
Definition at line 242 of file Scan.hpp.
size_type datatypes::Scan::capacity |
( |
| ) |
const |
|
inline |
void datatypes::Scan::clear |
( |
| ) |
|
Resets all members of this object.
Definition at line 133 of file Scan.cpp.
Scan & datatypes::Scan::copy |
( |
const Scan & |
other | ) |
|
bool datatypes::Scan::empty |
( |
| ) |
const |
|
inline |
UINT32 datatypes::Scan::getFlags |
( |
| ) |
const |
|
inline |
UINT16 datatypes::Scan::getNumPoints |
( |
| ) |
const |
|
inline |
const PointList& datatypes::Scan::getPointList |
( |
| ) |
const |
|
inline |
PointList::const_iterator datatypes::Scan::getPointListBegin |
( |
| ) |
const |
|
inline |
PointList::iterator datatypes::Scan::getPointListBegin |
( |
| ) |
|
|
inline |
PointList::const_iterator datatypes::Scan::getPointListEnd |
( |
| ) |
const |
|
inline |
PointList::iterator datatypes::Scan::getPointListEnd |
( |
| ) |
|
|
inline |
UINT16 datatypes::Scan::getScanNumber |
( |
| ) |
const |
|
inline |
UINT32 datatypes::Scan::getTotalObjectSize |
( |
| ) |
|
const UINT32 datatypes::Scan::getUsedMemory |
( |
| ) |
const |
|
virtual |
Scan & datatypes::Scan::operator= |
( |
const Scan & |
other | ) |
|
void datatypes::Scan::reserve |
( |
size_type |
new_capacity | ) |
|
Allocates memory for a total of new_capacity points.
A Scan must not hold more than 0xFFFF scan points (65536 in decimal), which is the maximum number an UINT16 can hold. If the new_capacity
is larger than this value (65536), a std::out_of_range exception will be thrown.
(Naming scheme according to std::vector.)
Definition at line 159 of file Scan.cpp.
Resizes the scan to the specified number of points.
- Parameters
-
new_size | Number of points the scan should contain. |
default_point | Data with which new elements should be populated. |
This function will resize the Scan to the specified number of scan points. If the number is smaller than the scan's current size the scan is truncated, otherwise the scan is extended and new elements are populated with given data.
A Scan must not hold more than 0xFFFF scan points (65536 in decimal), which is the maximum number an UINT16 can hold. If the new_capacity
is larger than this value (65536), a std::out_of_range exception will be thrown.
(Naming scheme according to std::vector.)
Definition at line 149 of file Scan.cpp.
void datatypes::Scan::setFlags |
( |
UINT32 |
val | ) |
|
|
inline |
void datatypes::Scan::setScanNumber |
( |
UINT16 |
val | ) |
|
|
inline |
void datatypes::Scan::setVehicleCoordinates |
( |
bool |
inVehicleCoordinates | ) |
|
Set whether the scanpoints are given in vehicle coordinates.
Definition at line 179 of file Scan.cpp.
void datatypes::Scan::sort |
( |
| ) |
|
bool datatypes::Scan::transformToVehicleCoordinates |
( |
| ) |
|
Transforms this scan (i.e. the scan points) to the vehicle coordinates.
Note: This operation also calls sort(), so that the transformed scan is sorted by angle as well. (Previously, it was not sorted, but apparently everyone who used this needed the sorting and it got forgotten too often.) For transformation without sorting, use transformToVehicleCoordinatesUnsorted().
- Returns
- True if the scan has been converted successfully. False if no conversion has been done, which could be caused by missing ScannerInfo information.
Definition at line 343 of file Scan.cpp.
bool datatypes::Scan::transformToVehicleCoordinatesUnsorted |
( |
| ) |
|
Transforms this scan (i.e. the scan points) to the vehicle coordinates.
This method does not sort the resulting scan. Use transformToVehicleCoordinates() if transformation with additional sorting is needed.
- Returns
- True if the scan has been converted successfully. False if no conversion has been done, which could be caused by missing ScannerInfo information.
Definition at line 299 of file Scan.cpp.
bool datatypes::Scan::m_beVerbose |
|
private |
UINT32 datatypes::Scan::m_flags |
|
protected |
UINT16 datatypes::Scan::m_scanNumber |
|
protected |
The documentation for this class was generated from the following files: