Map.cc
Go to the documentation of this file.
00001 // Copyright 2008 Isis Innovation Limited
00002 #include "ptam/Map.h"
00003 #include "ptam/MapPoint.h"
00004 
00005 Map::Map()
00006 {
00007   Reset();
00008 }
00009 
00010 void Map::Reset()
00011 {
00012   vpPoints.clear();
00013   bGood = false;
00014   EmptyTrash();
00015 }
00016 
00017 void Map::MoveBadPointsToTrash()
00018 {
00019   int nBad = 0;
00020   for(int i = vpPoints.size()-1; i>=0; i--)
00021   {
00022     if(vpPoints[i]->bBad)
00023     {
00024       vpPointsTrash.push_back(vpPoints[i]);
00025       vpPoints.erase(vpPoints.begin() + i);
00026       nBad++;
00027     }
00028   };
00029 };
00030 
00031 void Map::EmptyTrash()
00032 {
00033   vpPointsTrash.clear();
00034 };
00035 
00036 
00037 
00038 


ptam
Author(s): Stephan Weiss, Markus Achtelik, Simon Lynen
autogenerated on Tue Jan 7 2014 11:12:22