ThreeDtunnel.doc

Similar documents
3 Driver do Microsoft Access (*.mdb) hisdata IFIX 1.4

Microsoft Word - 小心翼翼的二十一點N.doc

<4D F736F F D D342DA57CA7DEA447B14D2DA475B57BBB50BADEB27AC3FEB14DA447B8D5C344>

VB控件教程大全

Visual Basic D 3D

ebook42-13

投稿類別:電子工程類

穨文件1

TC35短信发送程序设计

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

天津天狮学院关于修订2014级本科培养方案的指导意见

UFO-用友电子表软件

多層次傳銷與獎金系統

0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT au_fname,au_ lname FROM authors ORDER BY

2

四川省普通高等学校

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

万维全自动网络考试平台

PowerPoint Presentation

twfhsec101hpuigqegtpjnhg.doc

epub 61-2

Excel VBA Excel Visual Basic for Application

untitled

01

Microsoft Word 電腦軟體設計.doc

<4D F736F F D20BAD5D5DCD7E5B4ABCDB3CEC4BBAFB4ABB3D0CFD6D7B4B5F7B2E92E646F63>

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

WQ.s92








1

23 现 代 光 学 基 础 ( 第 二 版 ) 钟 锡 华 北 京 大 学 北 京 大 学 出 版 社 24 电 磁 学 ( 第 三 版 ) 赵 凯 华 陈 熙 谋 北 京 大 学 高 等 教 育 出 版 社 25 医 用 物 理 学 ( 第 三 版 ) 喀 蔚 波 北 京 大 学 高 等 教 育

3. 流 程 管 理 ( 系 统 管 理 员 或 者 教 务 处 管 理 员 主 要 操 作 功 能 部 分 ) 系 统 管 理 员 发 布 的 供 学 校 登 录 人 员 查 看 校 内 公 告 信 息 ; 系 统 管 理 员 审 核 提 前 实 习 的 学 生 申 请 ; 系 统 管 理 员 审

第 一 节 认 识 自 我 的 意 义 一 个 人 只 有 认 识 自 我, 才 能 够 正 确 地 认 识 到 自 己 的 优 劣 势, 找 出 自 己 的 职 业 亮 点, 为 自 己 的 顺 利 求 职 推 波 助 澜 ; 一 个 人 只 有 认 识 自 我, 才 能 在 求 职 中 保 持

穨ac3-4.PDF

投影片 1

Microsoft Word - 学字〔2015〕16号

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F


<4D F736F F D20C9CFBAA3CAD0BCC6CBE3BBFAB5C8BCB6BFBCCAD4C8FDBCB6BFBCCAD4B4F3B8D95FBDA8D2E9B8E55F5F E646F63>

untitled


TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc

國立嘉義高中96學年度資優班語資班成班考國文科試題

Post-Secondary Student Summer Internship Programme 2016_Chi

Microsoft PowerPoint - VB14.ppt

基于ECO的UML模型驱动的数据库应用开发1.doc

<4D F736F F D20D0C5CFA2BBAFB7A2D5B9D6D8B5E3D7A8CFEEB9E6BBAE2E646F63>

关于建立境内违法互联网站黑名单管理制度的通知

? 這 全 都 是 市 政 府 提 供 給 我 的 資 料 低 底 盤 公 車 計 畫 96 年 預 算 新 台 幣 4,500 萬 元 97 年 預 算 新 台 幣 1 億 6,500 萬 元 98 年 預 算 新 台 幣 3 億 2,300 萬 元, 共 有 307 台 低 底 盤 公 車,99

上海市教育考试院关于印发新修订的

epub 94-3

Microsoft PowerPoint - OPVB1基本VB.ppt

全国计算机技术与软件专业技术资格(水平)考试

本 课 程 作 为 非 计 算 机 专 业 本 科 通 识 课 程, 是 一 门 理 论 和 实 践 紧 密 结 合 的 实 用 课 程, 内 容 包 括 计 算 机 基 础 部 分 和 程 序 设 计 部 分 计 算 机 基 础 部 分 涵 盖 计 算 机 软 硬 件 组 成 数 制 表 示 操

穨08勇者的形象32.PDF

Microsoft Word - word2007排版

幻灯片 1

一、

WinMDI 28

序号

RUN_PC連載_10_.doc

User Group SMTP

营 销 策 划 岗 部 门 招 聘 职 位 招 聘 人 数 岗 位 职 责 基 本 要 求 岗 位 任 职 要 求 6 参 与 项 目 产 品 研 究 客 户 需 求 研 究 竞 争 环 境 研 究 价 格 研 究 等 项 目 市 场 研 究 ; 7 公 司 经 纪 业 务 的 品 牌 管 理, 对

(HMI) IO A

2005 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Su


untitled

Sub 使用 msgbox 函数退出系统 () Dim inreturn As Integer inreturn = MsgBox(" 真的退出系统吗?", vbyesno + vbquestion, " 提示 ") If inreturn = vbyes Then Application.Quit

ebook46-23

(Methods) Client Server Microsoft Winsock Control VB 1 VB Microsoft Winsock Control 6.0 Microsoft Winsock Control 6.0 1(a). 2

Microsoft Word - Functional_Notes_3.90_CN.doc

VB程序设计教程

Microsoft Word - 安徽商贸职业技术学院高等职业教育质量年度报告(2015).doc

提问袁小兵:

概述

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S

SYSMAC-SCS Version 2

untitled

爱玩科技合作白皮书(2011)

1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2 C3 3 STEP6 A1 STEP7 > > 1-11

untitled

中科曙光云盘系统

RUN_PC連載_12_.doc

壹 本 堂 舉 辦 國 內 外 短 宣 營 會 及 相 關 活 動 經 費 補 助 說 明 一 本 堂 舉 辦 國 內 外 短 宣 營 會 及 相 關 活 動 經 費 補 助 規 則 ( 下 稱 補 助 規 則 ) 辦 法 內 文 ( 如 第 4 頁 ) 附 件 一 舉 辦 國 內 營 會 或 相

<4D F736F F D20C6F3D2B5CDF8D5BECFB5CDB3BCBCCAF5B9E6B7B6CAE9A3A8C6C0B9C0D3C3A3A92E646F63>

epub83-1

投影片 1

ME3208E2-1.book

untitled

Microsoft Word htm

目錄

Chapter 2

ebook 165-5

Transcription:

(12) 1

1. Visual Basic Private Sub LoadDatabase() Dim strip As String Dim straccount As String Dim strpassword As String Dim strdatabase As String Dim strtable As String Dim strsql As String Dim strtemp1 As String Dim index1 As Integer Dim index2 As Integer Dim index3 As Integer Dim i As Integer Dim sname As String Dim x As Double Dim y As Double Dim z As Double Dim size As Double Dim color As Long Dim data As String Dim olddata As Collection On Local Error GoTo errout Set olddata = m_data Set m_data = New Collection strip = GetSetting("3D_Tunnel_Display_System", "DatabaseConfig", "txtip") straccount = GetSetting("3D_Tunnel_Display_System", "DatabaseConfig", "txtaccount") strpassword = GetSetting("3D_Tunnel_Display_System", "DatabaseConfig", "txtpassword") strdatabase = GetSetting("3D_Tunnel_Display_System", "DatabaseConfig", "txtdatabase") strtable = GetSetting("3D_Tunnel_Display_System", "DatabaseConfig", "txttable") Set mycon = New ADODB.Connection mycon.connectionstring = "driver={sql Server};" & _ "server=" & strip & ";" & _ "uid=" & straccount & ";" & _ "pwd=" & strpassword & ";" & _ "database=" & strdatabase mycon.connectiontimeout = 30 mycon.open strsql = "select * from " & strtable Set myrs = mycon.execute(strsql) While Not myrs.eof x = val(myrs("x").value) y = val(myrs("y").value) z = val(myrs("z").value) index1 = val(myrs("timeid").value) index2 = val(myrs("mileid").value) index3 = val(myrs("markid").value) myoridatax(index1, index2, index3) = x myoridatay(index1, index2, index3) = y myoridataz(index1, index2, index3) = z intnotime = index1 intnomile = index2 'set defaults i = i + 1 size = 0.2 color = D3DCOLORVALUEtoLONG(ColorValue4(0.4, CSng(BallR(0) / 255#), CSng(BallG(0) / 255#), CSng(BallB(0) / 255#))) data = "" sname = "1" If index1 = 1 Then AddEntry sname, x, y, z, size, color, data Else 2

' tempx = (myoridatax(index1, index2, index3) - myoridatax(1, index2, index3)) * EScaleX tempy = (myoridatay(index1, index2, index3) - myoridatay(1, index2, index3)) * EScaleY tempz = (myoridataz(index1, index2, index3) - myoridataz(1, index2, index3)) * EScaleZ ' tempx = tempz + myoridatax(1, index2, index3) tempy = tempy + myoridatay(1, index2, index3) tempz = tempz + myoridataz(1, index2, index3) ' mypx(index1, index2, index3) = (tempx + myoridatax(1, index2, index3)) / 2 mypy(index1, index2, index3) = (tempy + myoridatay(1, index2, index3)) / 2 mypz(index1, index2, index3) = (tempz + myoridataz(1, index2, index3)) / 2 size = (mypx(index1, index2, index3) - tempx) ^ 2 + (mypy(index1, index2, index3) - tempy) ^ 2 + (mypz(index1, index2, index3) - tempz) ^ 2 size = Sqr(size) color = D3DCOLORVALUEtoLONG(ColorValue4(0.4, CSng(BallR(9) / 255#), CSng(BallG(9) / 255#), CSng(BallB(9) / 255#))) color = D3DCOLORVALUEtoLONG(ColorValue4(0.4, 1, 0, 0)) x = mypx(index1, index2, index3) y = mypy(index1, index2, index3) z = mypz(index1, index2, index3) ' AddEntry sname, x, y, z, size * 0.1, color, data End If myrs.movenext Wend Set m_graphroot = Nothing Set m_quad1 = Nothing Set m_quad2 = Nothing Set m_xzplaneframe = Nothing ComputeDataExtents BuildGraph RestoreDeviceObjects Set olddata = Nothing Set myrs = Nothing Exit Sub errout: Set m_data = olddata MsgBox Err.Description, vbcritical, " " Set myrs = Nothing End Sub 3

91 10 92 10 1. 2. 3. 4. 5. 6. 1. 1. Window 98/ME, Window NT 4.0, Window 2000 2. Visual Basic 6.0 DirectX 8.1 3. Microsoft SQL Server 2000 Window Visual Basic 6.0 DirectX 8.1 DirectX DirectX API 3D 1 4

(1) (2) (3) (4) (5) 1 (1) 2 2 SQL Server IP Domain Name SQL Server 5

SQL Server (2) 3 CSV Excel CSV Excel 3 (3) 4 6

4 X X 1 1000 Y Y 1 1000 Z Z 1 1000 5 10 5 10 (1) (2) (3) 10 10 5 7

5 6 6 7 6 8

(1) (2) 7 (1) (2) (4) (5) 8 8 Ctrl+w 9 Ctrl+w 9

(1) (2) (3) (4) 9 Ctrl+w Ctrl+s 5-17 Ctrl+s (1) (2) 10

(3) (4) 10 Ctrl+s Ctrl+q 11 Ctrl+q (1) 11 Ctrl+q (2) Ctrl+e 12 Ctrl+e (1) 12 Ctrl+e (2) Ctrl+z 13 11

(1) 13 Ctrl+z (2) Ctrl+a 14 Ctrl+a (1) 14 Ctrl+a (2) 15 (1) (2) 12

(3) (4) 15 16 16 17 17 13