Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MyGraphObject.h
Package: MiniCAD_ALL.zip [view]
Upload User: netltd
Upload Date: 2013-02-12
Package Size: 7234k
Code Size: 2k
Category:
Graph Drawing
Development Platform:
Visual C++
- //////////////////////////////////////////////////////////////////////////////////////////////
- // 直线对象
- class CMyLine : public CObject
- {
- public:
- float m_startX;
- float m_startY;
- float m_endX;
- float m_endY;
- int m_style;
- COLORREF m_color;
- CMyLine()
- {}
- DECLARE_SERIAL(CMyLine)
- public:
- CMyLine(float startX, float startY, float endX, float endY, int style = PS_SOLID, COLORREF color = RGB(0, 0 ,0));
- void Serialize(CArchive& ar);
- };
- ///////////////////////////////////////////////////////////////////////////////////////////////
- //矩形对象
- class CMyRect: public CObject
- {
- public:
- float m_startX;
- float m_startY;
- float m_endX;
- float m_endY;
- int m_style;
- COLORREF m_color;
- CMyRect()
- {}
- DECLARE_SERIAL(CMyRect)
- public:
- CMyRect(float startX, float startY, float endX, float endY, int style = PS_SOLID, COLORREF color = RGB(0, 0 ,0));
- void Serialize(CArchive& ar);
- };
- ///////////////////////////////////////////////////////////////////////////////////////////////
- //圆对象
- class CMyCircle: public CObject
- {
- public:
- float m_originX;
- float m_originY;
- float m_radius;
- int m_style;
- COLORREF m_color;
- CMyCircle()
- {}
- DECLARE_SERIAL(CMyCircle)
- public:
- CMyCircle(float originX, float originY, float radius, int style = PS_SOLID, COLORREF color = RGB(0, 0 ,0));
- void Serialize(CArchive& ar);
- };
- ///////////////////////////////////////////////////////////////////////////////////////////////
- //圆弧对象
- class CMyArc: public CObject
- {
- public:
- //圆心坐标
- float m_originX;
- float m_originY;
- //起点坐标
- float m_startX;
- float m_startY;
- //终点坐标
- float m_endX;
- float m_endY;
- float m_radius;
- int m_style;
- COLORREF m_color;
- CMyArc()
- {}
- DECLARE_SERIAL(CMyArc)
- public:
- CMyArc(float originX, float originY, float startX, float startY, float endX, float endY,
- float radius, int style = PS_SOLID, COLORREF color = RGB(0, 0 ,0));
- void Serialize(CArchive& ar);
- };