00001 #include "LocalizationMap.h" 00002 00003 LocalizationMap::LocalizationMap() 00004 { 00005 00006 } 00007 00008 LocalizationMap::LocalizationMap(LocalizationMapEntity e) 00009 { 00010 addMapEntity(e); 00011 00012 //mSensorReaders.resize(scales.size()); 00013 00014 /*for(unsigned int i = 0; i < scales.size(); i ++) 00015 { 00016 mSensorReaders[i] = LocalizationSensorReader(scales[i]); 00017 }*/ 00018 00019 //normalizeSensorReaderScales(); 00020 } 00021 00022 LocalizationMap::LocalizationMap(vector<LocalizationMapEntity> e) 00023 { 00024 for(unsigned int i = 0; i < e.size(); i ++) 00025 { 00026 addMapEntity(e[i]); 00027 } 00028 } 00029 00030 void LocalizationMap::addMapEntity(LocalizationMapEntity e) 00031 { 00032 mMapEntities.resize(mMapEntities.size() + 1); 00033 mMapEntities[mMapEntities.size() - 1] = e; 00034 } 00035 00036 void LocalizationMap::drawMe(Image<PixRGB<byte> > &img, const Camera cam) 00037 { 00038 for(unsigned int i = 0; i < mMapEntities.size(); i ++) 00039 { 00040 mMapEntities[i].drawMe(img, cam); 00041 } 00042 }