【正文】
20xx 屆輪機(jī)工程專(zhuān)業(yè)畢業(yè)設(shè)計(jì)(論文) 11 +支持打印,開(kāi)發(fā)人員只需付出很小的努力,就可以輕松的獲得打印預(yù)覽功能。利用坐標(biāo)平移把( 0,0)坐標(biāo)平移到自己建圖所需的坐標(biāo)建立模型。 //指 定筆刷顏色為灰色 SolidBrush b=new SolidBrush()。 2. 派 生 自 一 個(gè) 現(xiàn) 有 的 Windows Form 控 件 的 自 定 義 控 件 。 接下來(lái)要編寫(xiě)一個(gè)測(cè)試應(yīng)用程序來(lái)測(cè)試的自定義控件,首先選擇文件 /添加新項(xiàng)目 /新項(xiàng)目 … 并創(chuàng)建一個(gè)新的 CWindows 應(yīng)用程序,把它命名為測(cè)試示例控件,單擊確定,在解決方案資源管理器中,右擊工程測(cè)試示例控件,并選擇設(shè)為啟動(dòng)項(xiàng)目,解決方案資源管理器將以粗體輸出工程名稱,并指明它是啟動(dòng)工程。 if (m == 9) { color = 。 設(shè)計(jì)的同步表表盤(pán)是圓形,表盤(pán)指示燈范圍為 (36, 36),旋轉(zhuǎn)最大角度為 720 度,旋轉(zhuǎn)角 度 Angle 和表盤(pán)指針實(shí)際值 ActualValue 數(shù)學(xué)關(guān)系就是: Angle=8*ActualValue 對(duì)設(shè)計(jì)結(jié)果的 分析 在本次設(shè)計(jì)中,先從船用儀表具體的特性出發(fā),從外觀上,完查找了大量關(guān)于儀表表盤(pán)的設(shè)計(jì)圖片,力圖使圖片的顏色與其工作的環(huán)境相契合。因此在圖形的外觀上取得了比較滿意的效果,如果對(duì)各種顏色的搭配進(jìn)行更加細(xì)致的斟酌,例如:對(duì)透明度 Alpha 的使用,可以使表盤(pán)界面獲得更好的外觀效果。 using 。 const float pai = 。 Pen p2 = new Pen(, 7)。 (points)。 } Invalidate()。在我撰寫(xiě)論文的過(guò)程中,嚴(yán)老師他傾注了大量的心血和汗水,不管是在論文的選題、構(gòu)思及資料的收集方面,還是在論文的研究方法以及成文定稿方面,我都得到了嚴(yán)老師細(xì)致精心的教誨和無(wú)私的幫助,尤其是他廣博的學(xué)識(shí)、深厚的學(xué)術(shù)修養(yǎng)、嚴(yán)謹(jǐn)?shù)闹螌W(xué)精神和一絲不茍的工作作風(fēng)等都使我終身受益,在此表示誠(chéng)心的感謝。同步表的邊框是幾個(gè)邊框疊加呈現(xiàn)出立體感;外觀與表盤(pán)相對(duì)簡(jiǎn)單;表盤(pán)是白色進(jìn)行填充;定點(diǎn)是通過(guò)系統(tǒng)的計(jì)算得出各個(gè)點(diǎn)的位置,從而確定 36 個(gè)點(diǎn)在表盤(pán)上的分布;呈現(xiàn)立體感就是把計(jì)算出的 36 個(gè)點(diǎn)進(jìn)行平移,再改變其填充顏色,就可使各個(gè)點(diǎn)呈現(xiàn)出立體感;這個(gè)模塊在以后儀表表盤(pán)設(shè)計(jì)時(shí)可以提供大量的方便,極大的節(jié)約工作量和工作時(shí)間,指針的的實(shí)現(xiàn)是利用 GDI+中的旋轉(zhuǎn)函數(shù)實(shí) 現(xiàn)的, 基本原 理是 利用旋 轉(zhuǎn)角度 和表 盤(pán)刻度 之間 的數(shù)學(xué) 關(guān)系,即Angle=8*ActualValue,繪 制的黑色指針能夠根據(jù)給出的具體參數(shù)值能夠轉(zhuǎn)動(dòng)到對(duì)應(yīng)的刻度處,實(shí)現(xiàn)了其動(dòng)態(tài)功能。儀表的制作過(guò)程與鐘表十分相似,鐘表就是多了指針轉(zhuǎn)動(dòng),而同步表是指示燈的旋轉(zhuǎn),在制作過(guò)程中要用到三個(gè)重要的函數(shù)即旋轉(zhuǎn)變換函數(shù) RotateTransform、平移函數(shù) TranslateTransform 和 縮 放 變 換 函 數(shù) ScaleTransform 。//確定 S的位置 (CQJTU, font, sb, new PointF(41, 63))。 接下來(lái)要添加一個(gè) Paint 事件,按 F4 打開(kāi)屬性窗口,在工具欄中單擊 Events 按鈕,然后找到外觀一覽,雙擊 Paint 事件來(lái)為它創(chuàng)建一個(gè)事件處理程序,并做 出修改。 自定義控件是具有可視特征的組件,它將成為用戶接口的一部分,并在設(shè)計(jì)窗口中配置。 } 20xx 屆輪機(jī)工程專(zhuān)業(yè)畢業(yè)設(shè)計(jì)(論文) 13 代碼運(yùn)行后如圖 231 所示: 圖 231 Pen 對(duì)象繪制的直線 接下來(lái)混合使用 Pen 和 Brush 繪制一個(gè)邊框黑色填充巧克力色的矩形主要代碼如下所示: private void UserControl1_Paint(object sender, PaintEventArgs e) { Graphics g=。 另外 GDI+中的顏色還有一種成分叫 Alpha 成分,它可以 用于控制顏色的透明度。包括繪制線條、圖形和多邊形、曲線,還有各 種筆刷和鋼筆。 馬科:基于 GDI+技術(shù)的船舶電站同步表的設(shè)計(jì)與實(shí)現(xiàn) 10 第二章 GDI+和自定義控制概述與 GDI+繪圖表面 GDI+的意義 GDI+: Graphics Device Interface(圖形設(shè)備接口), Microsoft 的新 .NET Framework類(lèi)庫(kù),用于圖形編程。當(dāng)指針快到 1112點(diǎn)即相位差為零時(shí)立即合20xx 屆輪機(jī)工程專(zhuān)業(yè)畢業(yè)設(shè)計(jì)(論文) 9 閘,待并發(fā)電機(jī)依靠自整步作用被拉入同步,然后再進(jìn)行負(fù)載轉(zhuǎn)移。頻差 Δf 越大,燈光變化的周期越短,當(dāng)燈光變化周期大于 2 s 時(shí),才能符合頻差并車(chē)條件。 船舶同步發(fā)電機(jī)手動(dòng)并聯(lián)運(yùn)行 1 指示燈法并車(chē) 檢查和調(diào)整待并發(fā)電機(jī)的電壓、頻率、初相位,使之滿 足準(zhǔn)同步并車(chē)的條件,然后進(jìn)行合閘,使發(fā)電機(jī)拉入同步。把環(huán)流有功和無(wú)功分解,得到有功分量環(huán)流的和無(wú)功分量的環(huán)流,在有功環(huán)流的作用下,一臺(tái)減速而另一臺(tái)加速,最終使得并聯(lián)運(yùn)行的兩臺(tái)發(fā)電機(jī)達(dá)到相位一致而進(jìn)入同步運(yùn)行。單獨(dú)馬科:基于 GDI+技術(shù)的船舶電站同步表的設(shè)計(jì)與實(shí)現(xiàn) 6 減少一臺(tái)發(fā)電機(jī)的勵(lì)磁電流,則變化與上述相反。因此 可以根據(jù)同步表指針轉(zhuǎn)動(dòng)方向來(lái)判斷差頻的方向。同步表是由定子與轉(zhuǎn)子組成。在柴油機(jī)船上,有 2~ 3 臺(tái)發(fā)電機(jī)組,由單獨(dú)設(shè)置的中速或高速柴油機(jī)驅(qū)動(dòng)。同步表是由定子與轉(zhuǎn)子組成。 關(guān)鍵詞 : 船舶電站;同步表; GDI+; 動(dòng)態(tài)顯示 英文摘要 Abstract Synchronous table belongs to the ship power station synchronous generator for parallel instrument, in the actual use of ship power station synchronous control, and treatment and generator and car, realize the power grid parallel operation of the ship. Synchronization are introduced in this table and the related contents of the synchronous generator in parallel, the working principle of the synchronous table generator in parallel operation, as well as to the characteristics and functions of GDI +, discussed the characteristics of the drawing surface, and how to get the Graphics class instances. GDI + for vector map provides a good support, GDI + a series of new features, simplify the development of vector graphics system, improve the development efficiency. Application of GDI + drawing tec hnology and fully objectoriented c language, bined with the characteristics of Marine electric meter, as a representative sample of several ponents in the ship automation system for reference, this paper expounds the GDI + in synchronous table design, the application of simple introduces the control of the production process, to realize the function of the dynamic display of the instrument control. Design and drawing of Marine synchronous tables, carried on the thorough research, using GDI + technology to ship synchronous table for drawing and design steps, synchronous table appearance and the operation of the synchronous table, in order to realize the stay in the ship power station and the control of synchronous generator, and the power grid and car. In modern and future ship technology, microputer and puter application tec hnology is extremely important and key part, with the continuous improvement of ship automation, automation of ship engine room simulation has been widely used in ship engine room, also has many various kinds of instrument in industrial production, GDI + technology is increasingly plays a more and more important role, plays a huge role in graphic design. Key Words: Ship power station; Synchronous table; GDI+; Dynamic display目錄 目 錄 前 言 .................................................................... 1 第一章 同步表與同步發(fā)電機(jī)簡(jiǎn)介 .......................................... 3 同步表工作原理 ................................................... 3 船用同步發(fā)電機(jī)并聯(lián)運(yùn)行 ........................................... 4 船用同步發(fā)電機(jī)的并聯(lián)運(yùn)行 .................................... 4 發(fā)電機(jī)并聯(lián)運(yùn)行 的特點(diǎn) ........................................ 5 船舶同步發(fā)電機(jī)的并聯(lián)運(yùn)行的條件 .............................. 6 船舶同步發(fā)電機(jī)手動(dòng)并聯(lián)運(yùn)行 .................................. 7 GDI+對(duì)于船舶 建造與設(shè)計(jì)的迫切性 ................................... 9 第二章 GDI+和自定義控制概述與 GDI+繪圖表面 ............................. 10 GDI+的意義 ...................................................... 10 GDI+和自定義控制 ................................................ 10 繪圖表面概述 .................................................... 11 繪圖表面的特性 ............................................. 11 繪圖表面顏色的結(jié)構(gòu) ......................................... 11 Graphics 類(lèi) ................................................. 11 GDI+坐標(biāo)系 ................................................ 12 Pen 和 Brush 類(lèi) ..........