C# 클래스 CityGeneratorWPF.ViewModel.MainViewModel

상속: ViewModelBase
파일 보기 프로젝트 열기: TobieD/City-Generator

공개 메소드들

메소드 설명
Initialize ( DrawService drawService ) : void

Initialize this viewModel

비공개 메소드들

메소드 설명
AddNewCityDistrictType ( string settings ) : void
DrawCity ( ) : void
DrawVoronoiDiagram ( ) : void
Export ( ICanvasExporter exporter ) : void

Export the currently draw canvas to a file

GenerateCity ( ) : void

Convert the Voronoi Diagram into a city with roads and building zones

GeneratePoints ( int amount ) : void

Generate points and store them into a list

GenerateVoronoi ( ) : void

Generate a Voronoi Diagram from the generated points

MathTesting ( ) : void
OnClick ( Point point ) : void

Add a point on the clicked position of the canvas

RefreshCanvas ( ) : void

Redraw all the elements

RemoveCityDistrictType ( string settings ) : void

메소드 상세

Initialize() 공개 메소드

Initialize this viewModel
public Initialize ( DrawService drawService ) : void
drawService CityGeneratorWPF.Service.DrawService
리턴 void