节点文献
基于MVVM模式的住区布局系统设计与开发
The Research&Design of Residential Layout System Based on MVVM Pattern
【作者】 陈建伟;
【导师】 胡于进;
【作者基本信息】 华中科技大学 , 机械工程, 2012, 硕士
【摘要】 由于CAD软件市场竞争越来越激烈,许多CAD绘图软件从通用方向逐渐向专业方向发展,例如机械、建筑、电气、土木、水利、动画等越来越有专业特色的CAD软件层出不穷。传统的CAD都是桌面应用程序,开发语言主要以C/C++为主,而近年来WPF、HTML5等新技术不断出现,随着云计算的发展,通过浏览器的在线CAD也是一种趋势。本文以住区房屋自动化布局为目标,对住区布局系统进行研究。利用微软新一代绘图系统WPF技术的MVVM设计模式,设计开发了一套二维CAD绘图软件——住区布局系统。首先介绍了国内外绘图软件的开发现状,以及建筑行业所用到的CAD软件的应用和开发情况。其次根据住区布局系统的具体功能需求,对系统具体的操作流程进行设计,将整个系统划分为11个模块。然后利用WPF技术开发了一套二维交互绘图系统,利用了MVVM模式将住区布局系统合理地划分为数据层、视图层和视图数据层三个层次。三层架构提高了CAD软件的开发效率,同时代码设计与界面设计的分离使得结构更清晰合理。其中数据层是在二维交互绘图系统的基础上设计了住区布局专用的数据结构,并且相应的设计了基于SQL Server的数据库的表结构以及存储过程,还设计了DXF文件的存储模块;在视图层设计了系统的所有界面;在视图数据层对所有的功能进行具体的开发。最后本文以具体实例验证了MVVM模式的住区布局系统的可行性.
【Abstract】 With the increasing competition in CAD software market, a lot of CAD software aredeveloped from general to specialty. More and more CAD software have been exploited touse in different professional fields, such as mechanics, architecture, electricity, civil, waterconservancy and cartoon. The traditional CAD software is desktop application, and theProgramming language of CAD is always based on C/C++, but with the new technology ofWPF,HTML5emergence and cloud computing development, using CAD software on line isbecoming a tendency.This paper takes the residential building automation layout for the target, researches onresidential layout system. Using MVVM design pattern of WPF which is a new generation ofdrawing system in Microsoft, we research and develop the Residential Layout System, a set oftwo dimension CAD drawing software.Firstly, this paper introduces the development status of the drawing software at ho me andabroad, as well as the CAD software application and development status in architecture.Secondly, according to the specific function requirements of Residential Layout System, thepaper designs the specific System flow chart and the whole system is divided into11modules.Thirdly, the thesis develops a2D interaction drawing system by WPF, and divided ResidentialLayout System into three administrative layers-View layer, Model layer, ViewModel layer-bythe MVVM pattern. Three layers structure increased efficiency of development, and theseparation of code design and interface design makes more coherent structure. In Model layer,the special data structure of residential layout based on the2D interaction drawing system isdesigned, meanwhile the corresponding database table structure and storage process based onSQL Server are designed, and so DXF file storage module do; In View layer, all windows ofthe system are designed; In ViewModel layer, all the functions of the system are developed.Finally, with a specific example, the paper shows the feasibility of the MVVM residentiallayout system.
- 【网络出版投稿人】 华中科技大学 【网络出版年期】2013年 07期
- 【分类号】TU984.12;TP391.7
- 【被引频次】8
- 【下载频次】307