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.
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
#include "RotationMotionGraphDrawer.h"
|
|
|
|
|
|
#include "SelectedItemMotionGraphDrawer.h"
|
|
|
|
|
|
|
|
|
|
|
|
void RotationMotionGraphDrawer::FirstDraw(CDC * pDC, Gdiplus::Matrix * matrix, int mouseX, int mouseY)
|
|
|
|
|
|
{
|
|
|
|
|
|
CopyMatrix(matrix);
|
|
|
|
|
|
if (m_pSIMGDrawer != NULL)
|
|
|
|
|
|
{
|
|
|
|
|
|
m_pSIMGDrawer->Translate(m_matrix); //<2F><><EFBFBD>Ʊ任֮<E4BBBB><D6AE><EFBFBD><EFBFBD>ͼԪ
|
|
|
|
|
|
m_pSIMGDrawer->Draw(pDC);
|
|
|
|
|
|
}
|
|
|
|
|
|
DrawBoundShape(pDC);
|
|
|
|
|
|
|
|
|
|
|
|
CPoint mousePt(mouseX, mouseY);
|
|
|
|
|
|
m_rubberLine.SetOriginPoint(mousePt);
|
|
|
|
|
|
}
|
|
|
|
|
|
void RotationMotionGraphDrawer::Draw(CDC * pDC, Gdiplus::Matrix * matrix, int mouseX, int mouseY)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (m_pSIMGDrawer != NULL)
|
|
|
|
|
|
{
|
|
|
|
|
|
m_pSIMGDrawer->Translate(m_matrix); //<2F><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>ͼԪ
|
|
|
|
|
|
m_pSIMGDrawer->Draw(pDC);
|
|
|
|
|
|
}
|
|
|
|
|
|
DrawBoundShape(pDC);
|
|
|
|
|
|
|
|
|
|
|
|
CopyMatrix(matrix);
|
|
|
|
|
|
if (m_pSIMGDrawer != NULL)
|
|
|
|
|
|
{
|
|
|
|
|
|
m_pSIMGDrawer->Translate(m_matrix); //<2F><><EFBFBD>Ʊ任֮<E4BBBB><D6AE><EFBFBD><EFBFBD>ͼԪ
|
|
|
|
|
|
m_pSIMGDrawer->Draw(pDC);
|
|
|
|
|
|
}
|
|
|
|
|
|
DrawBoundShape(pDC);
|
|
|
|
|
|
|
|
|
|
|
|
CPoint mousePt(mouseX, mouseY);
|
|
|
|
|
|
m_rubberLine.Draw(pDC, mousePt);
|
|
|
|
|
|
}
|