GrpcPrint/PrintS/external/InfraredTemp/LayerTempPointConfig.cpp

32 lines
712 B
C++

#include "LayerTempPointConfig.h"
LayerTempPointConfig::LayerTempPointConfig()
{
}
LayerTempPointConfig::~LayerTempPointConfig()
{
for (map<LayerRegion*, list<TempPoint*>*>::iterator it = m_LayerTempPoints.begin(); it != m_LayerTempPoints.end();it++) {
list<TempPoint*>* tps = it->second;
for (list<TempPoint*>::iterator it2 = tps->begin(); it2 != tps->end();it2++) {
TempPoint* tp = (*it2);
delete tp;
tp = NULL;
}
tps->clear();
delete tps;
tps = NULL;
}
m_LayerTempPoints.clear();
for (map<unsigned int,LayerRegion*>::iterator it = m_LayerRegions.begin(); it != m_LayerRegions.end();it++) {
LayerRegion* lr = it->second;
delete lr;
lr = NULL;
}
m_LayerRegions.clear();
}