You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
685 B
C++

#include "StdAfx.h"
#include "WorkData.h"
CWorkData::CWorkData(void)
{
}
CWorkData::~CWorkData(void)
{
}
//<2F><>BasePt Ϊ<><CEAA><EFBFBD>ĵ<EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void CWorkData::ConvertData(Dbxy Offset)
{
vector<vector<Dbxy>>::iterator iter = m_vec.begin();
vector<vector<Dbxy>>::iterator iter_end = m_vec.end();
for(;iter!=iter_end;iter++)
{
vector<Dbxy>::iterator iter1 = (*iter).begin();
vector<Dbxy>::iterator iter1_end = (*iter).end();
for(;iter1!=iter1_end;iter1++)
{
(*iter1).x += Offset.x;
(*iter1).y += Offset.y;
(*iter1).Cx += Offset.x;
(*iter1).Cy += Offset.y;
}
}
}