文件名称:MyMinDrawing
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
一个画图小程序MiniDraw,要求画直线(Line),椭圆(Ellipse),矩形(Rectangle),多边形(Polygon)等图形元素(图元)。
每种图元需用一个类(对象)来封装,如Line, Ellipse, Rect, Polygon, Freehand;
各种图元可从一个父类Figure来继承;
每种图元的绘制不一样,但是绘制接口在父类中是一样,因此可学习和使用类的多态性。
-Paint a small program MiniDraw, asked to draw a straight line (Line), oval (Ellipse), rectangle (Rectangle), polygons (Polygon) and other graphic elements (primitives). Each element required a class (object) to the package, such as Line, Ellipse, Rect, Polygon, Freehand the various elements can be inherited a parent class Figure each draw primitives are not the same, but the drawing interface in the parent class is the same, so you can learn and use class polymorphism.
每种图元需用一个类(对象)来封装,如Line, Ellipse, Rect, Polygon, Freehand;
各种图元可从一个父类Figure来继承;
每种图元的绘制不一样,但是绘制接口在父类中是一样,因此可学习和使用类的多态性。
-Paint a small program MiniDraw, asked to draw a straight line (Line), oval (Ellipse), rectangle (Rectangle), polygons (Polygon) and other graphic elements (primitives). Each element required a class (object) to the package, such as Line, Ellipse, Rect, Polygon, Freehand the various elements can be inherited a parent class Figure each draw primitives are not the same, but the drawing interface in the parent class is the same, so you can learn and use class polymorphism.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyMinDrawing\main.cpp
............\mainwindow.ui
............\MyMinDrawing.pro
............\MyMinDrawing.pro.user
............\MyMinDrawing.qrc
............\picture\Delete.jpg
............\.......\Ellipse.jpg
............\.......\FreeHand.jpg
............\.......\Line.jpg
............\.......\Polygon.jpg
............\.......\Rectangle.jpg
............\Resource\ellipse.cpp
............\........\ellipse.h
............\........\figure.cpp
............\........\figure.h
............\........\freehand.cpp
............\........\freehand.h
............\........\line.cpp
............\........\line.h
............\........\polygon.cpp
............\........\polygon.h
............\........\rectangle.cpp
............\........\rectangle.h
............\Widgets\mainwindow.cpp
............\.......\mainwindow.h
............\.......\viewwidget.cpp
............\.......\viewwidget.h
............\picture
............\Resource
............\Widgets
MyMinDrawing