00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 00035 #include <sick_safetyscanners/datastructure/MeasurementData.h> 00036 00037 namespace sick { 00038 namespace datastructure { 00039 00040 00041 MeasurementData::MeasurementData() 00042 : m_is_empty(false) 00043 { 00044 } 00045 00046 uint32_t MeasurementData::getNumberOfBeams() const 00047 { 00048 return m_number_of_beams; 00049 } 00050 00051 void MeasurementData::setNumberOfBeams(const uint32_t& number_of_beams) 00052 { 00053 m_number_of_beams = number_of_beams; 00054 } 00055 00056 std::vector<ScanPoint> MeasurementData::getScanPointsVector() const 00057 { 00058 return m_scan_points_vector; 00059 } 00060 00061 void MeasurementData::addScanPoint(ScanPoint scan_point) 00062 { 00063 m_scan_points_vector.push_back(scan_point); 00064 } 00065 00066 bool MeasurementData::isEmpty() const 00067 { 00068 return m_is_empty; 00069 } 00070 00071 void MeasurementData::setIsEmpty(bool is_empty) 00072 { 00073 m_is_empty = is_empty; 00074 } 00075 00076 00077 } // namespace datastructure 00078 } // namespace sick