<VB数理统计实用算法>书中的算法源程序

源代码在线查看: 曲面_立体图f2.frm

软件大小: 11653 K
上传用户: zhou28
关键词: 算法 lt VB gt
下载地址: 免注册下载 普通下载 VIP

相关代码

				VERSION 5.00
				Begin VB.Form frmPicture 
				   BackColor       =   &H00FFFFFF&
				   Caption         =   "立体图"
				   ClientHeight    =   8490
				   ClientLeft      =   255
				   ClientTop       =   690
				   ClientWidth     =   13965
				   ForeColor       =   &H00C00000&
				   LinkTopic       =   "Form1"
				   PaletteMode     =   1  'UseZOrder
				   ScaleHeight     =   8490
				   ScaleWidth      =   13965
				   Begin VB.CheckBox checkC 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "列倒转"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   12720
				      TabIndex        =   34
				      Top             =   6840
				      Width           =   1095
				   End
				   Begin VB.CheckBox CheckR 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "行倒转"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11640
				      TabIndex        =   33
				      Top             =   6840
				      Width           =   1095
				   End
				   Begin VB.TextBox txtY 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   270
				      Left            =   12840
				      TabIndex        =   31
				      Text            =   "1"
				      Top             =   6480
				      Width           =   855
				   End
				   Begin VB.TextBox txtX 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   270
				      Left            =   11640
				      TabIndex        =   30
				      Text            =   "1"
				      Top             =   6480
				      Width           =   855
				   End
				   Begin VB.CommandButton cmdFile 
				      Caption         =   "输入图形数据"
				      BeginProperty Font 
				         Name            =   "宋体"
				         Size            =   15.75
				         Charset         =   134
				         Weight          =   700
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      Height          =   615
				      Left            =   11400
				      TabIndex        =   24
				      Top             =   7200
				      Width           =   2295
				   End
				   Begin VB.TextBox TextIV 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12720
				      TabIndex        =   22
				      Text            =   "***"
				      Top             =   3840
				      Width           =   1095
				   End
				   Begin VB.TextBox TextEN 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12720
				      TabIndex        =   21
				      Text            =   "***"
				      Top             =   3480
				      Width           =   1095
				   End
				   Begin VB.TextBox TextST 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12720
				      TabIndex        =   20
				      Text            =   "***"
				      Top             =   3120
				      Width           =   1095
				   End
				   Begin VB.TextBox TextVE 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12720
				      TabIndex        =   11
				      Text            =   "1"
				      Top             =   2400
				      Width           =   735
				   End
				   Begin VB.TextBox TextZ0 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12720
				      TabIndex        =   10
				      Text            =   "0"
				      Top             =   2760
				      Width           =   735
				   End
				   Begin VB.TextBox Text4 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12120
				      TabIndex        =   9
				      Text            =   "1"
				      Top             =   2040
				      Width           =   1095
				   End
				   Begin VB.TextBox Text3 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12120
				      TabIndex        =   8
				      Text            =   "30"
				      Top             =   1440
				      Width           =   1095
				   End
				   Begin VB.TextBox Text2 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      Height          =   285
				      Left            =   12120
				      TabIndex        =   7
				      Text            =   "30"
				      Top             =   840
				      Width           =   1095
				   End
				   Begin VB.PictureBox pic 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      ForeColor       =   &H80000008&
				      Height          =   8175
				      Left            =   240
				      ScaleHeight     =   8145
				      ScaleWidth      =   11025
				      TabIndex        =   6
				      Top             =   120
				      Width           =   11055
				      Begin VB.Label lblTitle 
				         Alignment       =   2  'Center
				         Appearance      =   0  'Flat
				         AutoSize        =   -1  'True
				         BackColor       =   &H80000005&
				         BorderStyle     =   1  'Fixed Single
				         Caption         =   "图题"
				         DragMode        =   1  'Automatic
				         BeginProperty Font 
				            Name            =   "隶书"
				            Size            =   21.75
				            Charset         =   134
				            Weight          =   400
				            Underline       =   0   'False
				            Italic          =   0   'False
				            Strikethrough   =   0   'False
				         EndProperty
				         ForeColor       =   &H80000008&
				         Height          =   465
				         Left            =   6360
				         TabIndex        =   26
				         Top             =   240
				         Width           =   945
				      End
				   End
				   Begin VB.CheckBox checkXY 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "垂直截面"
				      ForeColor       =   &H80000008&
				      Height          =   375
				      Left            =   12720
				      TabIndex        =   5
				      Top             =   4800
				      Value           =   1  'Checked
				      Width           =   1215
				   End
				   Begin VB.CheckBox CheckZ 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "水平截面"
				      ForeColor       =   &H80000008&
				      Height          =   375
				      Left            =   11520
				      TabIndex        =   4
				      Top             =   4800
				      Value           =   1  'Checked
				      Width           =   1095
				   End
				   Begin VB.CommandButton cmdEnd 
				      Caption         =   "结束"
				      BeginProperty Font 
				         Name            =   "宋体"
				         Size            =   15.75
				         Charset         =   134
				         Weight          =   700
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      Height          =   435
				      Left            =   12600
				      TabIndex        =   3
				      Top             =   7800
				      Width           =   1095
				   End
				   Begin VB.OptionButton Option2 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "反方法"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   12720
				      TabIndex        =   2
				      Top             =   5160
				      Width           =   855
				   End
				   Begin VB.OptionButton Option1 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "正方法"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11520
				      TabIndex        =   1
				      Top             =   5160
				      Value           =   -1  'True
				      Width           =   975
				   End
				   Begin VB.CommandButton cmdDraw 
				      BackColor       =   &H00008000&
				      Caption         =   "绘图"
				      BeginProperty Font 
				         Name            =   "宋体"
				         Size            =   15.75
				         Charset         =   134
				         Weight          =   700
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      Height          =   435
				      Left            =   11400
				      TabIndex        =   0
				      Top             =   7800
				      Width           =   1215
				   End
				   Begin VB.Label lblD 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "数据"
				      BeginProperty Font 
				         Name            =   "隶书"
				         Size            =   21.75
				         Charset         =   134
				         Weight          =   400
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      ForeColor       =   &H80000008&
				      Height          =   375
				      Left            =   12120
				      TabIndex        =   32
				      Top             =   5520
				      Width           =   975
				   End
				   Begin VB.Label lblY 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "Y"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   12840
				      TabIndex        =   29
				      Top             =   6240
				      Width           =   855
				   End
				   Begin VB.Label X 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "X"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11640
				      TabIndex        =   28
				      Top             =   6240
				      Width           =   855
				   End
				   Begin VB.Label lblData 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "数据点间距"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11640
				      TabIndex        =   27
				      Top             =   6000
				      Width           =   2055
				   End
				   Begin VB.Label lblType 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "类型"
				      BeginProperty Font 
				         Name            =   "隶书"
				         Size            =   21.75
				         Charset         =   134
				         Weight          =   400
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      ForeColor       =   &H80000008&
				      Height          =   495
				      Left            =   11640
				      TabIndex        =   25
				      Top             =   4320
				      Width           =   1935
				   End
				   Begin VB.Label lblPara 
				      Alignment       =   2  'Center
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "参数"
				      BeginProperty Font 
				         Name            =   "隶书"
				         Size            =   21.75
				         Charset         =   134
				         Weight          =   400
				         Underline       =   0   'False
				         Italic          =   0   'False
				         Strikethrough   =   0   'False
				      EndProperty
				      ForeColor       =   &H80000008&
				      Height          =   375
				      Left            =   11640
				      TabIndex        =   23
				      Top             =   120
				      Width           =   1815
				   End
				   Begin VB.Label lblIV 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "线与线间隔"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11760
				      TabIndex        =   19
				      Top             =   3840
				      Width           =   1095
				   End
				   Begin VB.Label lblEN 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "终止线高度"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11760
				      TabIndex        =   18
				      Top             =   3480
				      Width           =   1095
				   End
				   Begin VB.Label lblST 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "起始线高度"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11760
				      TabIndex        =   17
				      Top             =   3120
				      Width           =   1095
				   End
				   Begin VB.Label Label7 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "垂直伸缩"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11880
				      TabIndex        =   16
				      Top             =   2400
				      Width           =   975
				   End
				   Begin VB.Label Label6 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "基面高度"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11880
				      TabIndex        =   15
				      Top             =   2760
				      Width           =   975
				   End
				   Begin VB.Label lblSCALE 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "整体伸缩(0.25 - 2)"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11880
				      TabIndex        =   14
				      Top             =   1800
				      Width           =   1815
				   End
				   Begin VB.Label lblGAMMA 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "视角(0-90)"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   12120
				      TabIndex        =   13
				      Top             =   1200
				      Width           =   1335
				   End
				   Begin VB.Label lblALPHA 
				      Appearance      =   0  'Flat
				      BackColor       =   &H80000005&
				      Caption         =   "旋转角(-360 - 360)"
				      ForeColor       =   &H80000008&
				      Height          =   255
				      Left            =   11760
				      TabIndex        =   12
				      Top             =   600
				      Width           =   2055
				   End
				End
				Attribute VB_Name = "frmPicture"
				Attribute VB_GlobalNameSpace = False
				Attribute VB_Creatable = False
				Attribute VB_PredeclaredId = True
				Attribute VB_Exposed = False
				'绘图窗体
				'绘图
				Private Sub cmdDraw_Click()
				    modDraw.Surface
				End Sub
				
				'退出
				Private Sub cmdEnd_Click()
				    Unload Me
				    End
				End Sub
				
				'转到输入数据窗体
				Private Sub cmdFile_Click()
				    pic.Cls
				    Me.Hide
				    frmFile.Show
				End Sub
				
				'拖放图题
				Private Sub Pic_DragDrop(Source As Control, X As Single, Y As Single)
				    Source.Move X, Y
				End Sub
				
				Private Sub Form_Load()
				    lblTitle.DragMode = 1           '设定图题为自动拖放模式
				End Sub
							

相关资源