摘要
本项目是用c++语言编写,实现了基本图形周长面积的计算,和绘制图形面积的计算。采用各个图形面积周长计算公式计算(如扇形,任意直线图形面积计算),图形绘制后采用坐标系比例与图形所包含的像素点的个数计算面积。与同类软件相比而言计算包含的图形较少,绘制图形面积计算的绘制种类较少并且只是2D绘制,但是本软件图形界面相对其他软件相对优美,且界面简洁易懂,面积周长计算上基本能满足需求。
关键词:图形;周长;面积;计算器
summary
This project is written in c + + language to realize the calculation of basic graph circumference area and the calculation of drawing graph area.Each drawing area circumference calculation formula is calculated (e. g., fan, any linear drawing area calculation), and the area is calculated using the coordinate system ratio and the number of pixels included in the drawing.Compared with similar software, the calculation contains less graphics, and the drawing drawing area calculation is less and only 2D drawing. However, the graphics interface of this software is relatively beautiful than other software, and the interface is simple and easy to understand, and the area circumference calculation can basically meet the needs.
Key words: graphics; perimeter; area; calculator
目录
摘要 1
summary 2
一、项目概述 3
二、总体设计 3
1、类关系图,可由VS直接导出总体的类关系图; 3
2、设计类图 4
三、核心算法 9
1. 不规则图形之任意直线图形周长面积计算。 9
2. 对绘制图形的面积计算。 12
五、程序实现 15
1. 不规则图形之任意直线图形周长面积计算。 15
2. 对绘制图形的面积计算。 15
3、功能完成度 16
六、总结 16
参考资料 16
1. CAD中的不规则图形面积计算 16
2. 参考软件。 16
《计算不规则多边形面积》参考设置及其模式。 17