13 #include "../BasicDatatypes.hpp" 83 Scan (size_type maxPoints = 5280);
110 size_type
size()
const {
return m_points.size(); }
113 bool empty()
const {
return m_points.empty(); }
137 size_type
capacity()
const {
return m_points.capacity(); }
147 void reserve(size_type new_capacity);
221 const_iterator
begin()
const {
return m_points.begin(); }
224 iterator
begin() {
return m_points.begin(); }
227 const_iterator
end()
const {
return m_points.end(); }
230 iterator
end() {
return m_points.end(); }
236 const_reference
operator[](size_type n)
const {
return m_points[n]; }
239 reference
at(size_type n) {
return m_points.at(n); }
242 const_reference
at(size_type n)
const {
return m_points.at(n); }
287 void addPolarOffset(
double distOffset,
double hAngleOffset,
double vAngleOffset);
void clear()
Resets all members of this object.
const_iterator end() const
ScannerInfoVector m_scannerInfos
The ScannerInfo collection.
virtual const UINT32 getUsedMemory() const
void setVehicleCoordinates(bool inVehicleCoordinates)
Set whether the scanpoints are given in vehicle coordinates.
reference at(size_type n)
const ScanPoint & const_reference
Type of a const reference to an element.
PointList::size_type size_type
PointList::const_iterator getPointListEnd() const
Scan(size_type maxPoints=5280)
const ScanPoint & getPoint(UINT16 n) const
bool transformToVehicleCoordinates()
Transforms this scan (i.e. the scan points) to the vehicle coordinates.
size_type capacity() const
void setScannerInfos(const ScannerInfoVector &v)
const_reference operator[](size_type n) const
void reserve(size_type new_capacity)
Allocates memory for a total of new_capacity points.
PointList & getPointList()
UINT16 getNumPoints() const
UINT16 getScanNumber() const
ScanPoint & addNewPoint()
PointList::iterator getPointListBegin()
const ScannerInfoVector & getScannerInfos() const
std::vector< ScanPoint > PointList
PointList::const_iterator getPointListBegin() const
void addPolarOffset(double distOffset, double hAngleOffset, double vAngleOffset)
void setScanNumber(UINT16 val)
PointList::iterator iterator
const ScannerInfo * getScannerInfoByDeviceId(UINT8 id) const
const_iterator begin() const
Scan & copy(const Scan &)
void resize(size_type new_size, const ScanPoint &default_point=ScanPoint())
Resizes the scan to the specified number of points.
std::vector< ScannerInfo > ScannerInfoVector
PointList::const_iterator const_iterator
void addCartesianOffset(double offsetX, double offsetY, double offsetZ)
void clearLabelFlag(Scan::ScanFlags scanFlag)
ScanPoint & getPoint(UINT16 n)
const_reference at(size_type n) const
Returns the n-th scan point (read only) with range checking.
UINT32 getTotalObjectSize()
reference operator[](size_type n)
~Scan()
Default destructor.
void setFlags(UINT32 val)
Bit 11: Scanpoint coordinate system; 0 = scanner coordinates, 1 = vehicle / reference coordinates...
Scan & operator=(const Scan &)
PointList::iterator getPointListEnd()
bool transformToVehicleCoordinatesUnsorted()
Transforms this scan (i.e. the scan points) to the vehicle coordinates.
const PointList & getPointList() const