文件名称:line2
- 所属分类:
- 绘图程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2017-05-22
- 文件大小:
- 2.23mb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
绘制任意斜率的直线段
设计CLine直线类,其数据成员为直线段的起点坐标P0和终点坐标P1,成员函数为MoveTo()和LineTo()函数。
CLine类的LineTo()函数使用中点Bresenham算法绘制任意斜率k的直线段,包括k=±∞、k>1、0≤k≤1、-1≤k<0和k<-1五种情况。
在屏幕客户区按下鼠标左键选择直线的起点,保持鼠标左键按下并移动鼠标到另一位置,弹起鼠标左键绘制任意斜率的直线段。
在状态栏动态显示鼠标光标移动时的位置坐标。-The slope of the plot any straight line segments
Design CLine linear class, its data members for the straight line segment of P0 starting point coordinates and end coordinates P1, member function to MoveTo () and LineTo () function.
CLine class LineTo () function USES the midpoint Bresenham algorithm to draw any slope k line segment, including k + up, k > 1, 0 k 1 or less, or less- 1 k or less < < 0 and k- 1 five kinds of situations.
The client area in screen by pressing the left mouse button to choose the starting point of straight line, keep the left mouse button pressed and moving the mouse to another location, bounce the slope of the left key of mouse to draw any straight line segments.
In the dynamic display of the status bar moves the mouse cursor position coordinates.
设计CLine直线类,其数据成员为直线段的起点坐标P0和终点坐标P1,成员函数为MoveTo()和LineTo()函数。
CLine类的LineTo()函数使用中点Bresenham算法绘制任意斜率k的直线段,包括k=±∞、k>1、0≤k≤1、-1≤k<0和k<-1五种情况。
在屏幕客户区按下鼠标左键选择直线的起点,保持鼠标左键按下并移动鼠标到另一位置,弹起鼠标左键绘制任意斜率的直线段。
在状态栏动态显示鼠标光标移动时的位置坐标。-The slope of the plot any straight line segments
Design CLine linear class, its data members for the straight line segment of P0 starting point coordinates and end coordinates P1, member function to MoveTo () and LineTo () function.
CLine class LineTo () function USES the midpoint Bresenham algorithm to draw any slope k line segment, including k + up, k > 1, 0 k 1 or less, or less- 1 k or less < < 0 and k- 1 five kinds of situations.
The client area in screen by pressing the left mouse button to choose the starting point of straight line, keep the left mouse button pressed and moving the mouse to another location, bounce the slope of the left key of mouse to draw any straight line segments.
In the dynamic display of the status bar moves the mouse cursor position coordinates.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
line2
.....\Debug
.....\.....\MainFrm.obj
.....\.....\StdAfx.obj
.....\.....\line.obj
.....\.....\line2.exe
.....\.....\line2.ilk
.....\.....\line2.obj
.....\.....\line2.pch
.....\.....\line2.pdb
.....\.....\line2.res
.....\.....\line2Doc.obj
.....\.....\line2View.obj
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\MainFrm.cpp
.....\MainFrm.h
.....\ReadMe.txt
.....\Resource.h
.....\StdAfx.cpp
.....\StdAfx.h
.....\line.cpp
.....\line.h
.....\line2.aps
.....\line2.clw
.....\line2.cpp
.....\line2.dsp
.....\line2.dsw
.....\line2.h
.....\line2.ncb
.....\line2.opt
.....\line2.plg
.....\line2.rc
.....\line2Doc.cpp
.....\line2Doc.h
.....\line2View.cpp
.....\line2View.h
.....\res
.....\...\Toolbar.bmp
.....\...\line2.ico
.....\...\line2.rc2
.....\...\line2Doc.ico