Product Details 商品属性
- Language: 其他
- Database: 无
- License: License-Free
- Source Code: Fully Open Source
- Specification: Full Website Source
- Delivery: Automatic (instant download after payment)
(1) Design an easy-to-understand interface, and you can enter the graphic information that needs to be drawn through the mouse, menu, dialog box, etc.
(2) The length, area, perimeter and other properties of the drawing can be calculated, and have been displayed in or next to the drawing in dialog boxes, panels or directly through text.
(3) Able to deal with two-dimensional graphics such as line segments, multi-segmented polyline segments, triangles, rectangles, ordinary N-sides, circles, ellipses, etc.
(4) Design an abstract base class Shape that is common to all graphics, and all other graphics classes inherit from the abstract base class or its linear abstract subclass LineShape or regional graphic abstraction subclass
requirements
AreaShape
(5) Each specific graph (line segment, triangle, etc.) has static variables to count the total number of the graph in the system.
(6) Each type of graph has a name, color, and line type data member; And there are functions such as the move function Move/MoveTo, the calculated length Length, etc., wherein the calculated length of the regional graph is the calculated perimeter; A line graph has a function to calculate vertex data and a member function to calculate the number of vertices, and a regional graph has a member function to calculate the area.
(7) Other extra functions: a) Modify line type, color, etc. b) Drag and drop the mouse to move and modify the shape. c) Save the drawing to a file and load the drawing. d) Rotation of the figure.
