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.
kev/Drawer/Module/GeoSigmaDraw/ScaleMotionGraphDrawer.cpp

41 lines
897 B
C++

#include "stdafx.h"
#include "ScaleMotionGraphDrawer.h"
#include "SelectedItemMotionGraphDrawer.h"
ScaleMotionGraphDrawer::ScaleMotionGraphDrawer()
{
}
void ScaleMotionGraphDrawer::FirstDraw(CDC * pDC, Gdiplus::Matrix * matrix, int mouseX, int mouseY)
{
CopyMatrix(matrix);
if (m_pSIMGDrawer != NULL)
{
m_pSIMGDrawer->Translate(m_matrix); //绘制变换之后的图元
m_pSIMGDrawer->Draw(pDC);
}
DrawBoundShape(pDC);
}
void ScaleMotionGraphDrawer::Draw(CDC * pDC, Gdiplus::Matrix * matrix, int mouseX, int mouseY)
{
if (m_pSIMGDrawer != NULL)
{
m_pSIMGDrawer->Translate(m_matrix); //擦除老的图元
m_pSIMGDrawer->Draw(pDC);
}
DrawBoundShape(pDC);
CopyMatrix(matrix);
if (m_pSIMGDrawer != NULL)
{
m_pSIMGDrawer->Translate(m_matrix); //绘制变换之后的图元
m_pSIMGDrawer->Draw(pDC);
}
DrawBoundShape(pDC);
}
void ScaleMotionGraphDrawer::Erease(CDC * pDC)
{
DrawBoundShape(pDC);
}