C# Класс CityGeneratorWPF.ViewModel.MainViewModel

Наследование: ViewModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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