資源簡介
C++實現的二維圖形變換,變換包括:平移、旋轉(支持自定義旋轉中心)、錯切、鏡像(翻轉,支持自定義對稱軸),包含源代碼和可執行程序。VS2008的工程。
代碼片段和文件信息
//?ChildView.cpp?:?CChildView?類的實現
//
#include?“stdafx.h“
#include?“SimpleDraw.h“
#include?“ChildView.h“
#include?“Matrix.h“
#include?
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CChildView
CChildView::CChildView()
{
currentOperation?=?NONE;
currentDrawingShape?=?RECTANGLE;
currentLinestyle?=?PS_SOLID;
currentDrawingColor?=?RGB(0?0?0);
startPoint?=?CPoint(-1?-1);
endPoint?=?CPoint(-1?-1);
rotateCenter?=?CPoint(-1?-1);
isLButtonPressed?=?FALSE;
selectedShapePtr?=?NULL;
preSelectedShapePtr?=?NULL;
rotateAnchor?=?NO_ANCHOR;
skewAnchor?=?NO_ANCHOR;
flipAxisKeyPoint[START_POINT]?=?CPoint(-1?-1);
flipAxisKeyPoint[END_POINT]?=?CPoint(-1?-1);
flipAxisKeyPointMovingTag?=?NO_POINT;
}
CChildView::~CChi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????141312??2010-05-19?09:55??SimpleDraw.exe
?????文件????????807??2010-05-11?00:46??源代碼\BasicDataType.h
?????文件??????70428??2010-05-19?09:54??源代碼\ChildView.cpp
?????文件???????2159??2010-05-18?11:05??源代碼\ChildView.h
?????文件??????12220??2010-05-18?17:03??源代碼\Debug\BuildLog.htm
?????文件????????384??2010-05-09?11:09??源代碼\Debug\RCa01048
?????文件????????536??2010-05-09?11:09??源代碼\Debug\RDa01048
?????文件?????????76??2010-05-12?11:23??源代碼\GlobalResources.cpp
?????文件???????8990??2010-05-11?10:17??源代碼\MainFrm.cpp
?????文件???????1305??2010-05-11?10:19??源代碼\MainFrm.h
?????文件???????3791??2010-05-10?20:48??源代碼\Matrix.cpp
?????文件????????584??2010-05-10?17:26??源代碼\Matrix.h
?????文件???????3016??2010-04-14?21:34??源代碼\ReadMe.txt
?????文件?????????73??2010-05-11?10:38??源代碼\Release\BAT00001552122640.bat
?????文件?????????73??2010-05-09?20:35??源代碼\Release\BAT00004A21721232.bat
?????文件???????6586??2010-05-19?09:55??源代碼\Release\BuildLog.htm
?????文件??????67777??2007-11-28?16:21??源代碼\res\SimpleDraw.ico
?????文件????????366??2010-04-14?21:34??源代碼\res\SimpleDraw.rc2
????..A.SH.??????5632??2010-05-05?20:10??源代碼\res\Thumbs.db
?????文件????????598??2003-07-24?09:52??源代碼\res\Toolbar.bmp
?????文件???????2994??2008-02-08?14:46??源代碼\res\Toolbar256.bmp
?????文件???????4141??2010-05-12?11:24??源代碼\resource.h
?????文件?????120952??2010-05-12?11:24??源代碼\SimpleDraw.aps
?????文件???????3352??2010-04-14?21:34??源代碼\SimpleDraw.cpp
?????文件????????659??2010-04-14?21:34??源代碼\SimpleDraw.h
?????文件??????13687??2010-05-12?11:24??源代碼\SimpleDraw.rc
?????文件???????6091??2010-05-12?11:24??源代碼\SimpleDraw.vcproj
?????文件???????1423??2010-04-18?20:05??源代碼\SimpleDraw.vcproj.HHTecShare-PC.HHTecShare.user
?????文件???????1411??2010-05-15?21:20??源代碼\SimpleDraw.vcproj.King-PC.King.user
?????文件???????1417??2010-05-12?11:25??源代碼\SimpleDraw.vcproj.rjxy500113.Administrator.user
............此處省略14個文件信息
- 上一篇:ClearMemory.zip
- 下一篇:snappy library
評論
共有 條評論