# slazanger/smt architecture

> Architecture diagram of the GitHub repository slazanger/smt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/slazanger/smt
- Repository: https://github.com/slazanger/smt

## Overview

##### Project type and purpose
- This project is a desktop application (built on .NET using WPF, given the App.xaml, MainWindow.xaml, and related XAML files) designed as a map tool for EVE Online.
- Its purpose is to provide interactive visualization and map data functionality for EVE Online, integrating game data via various EVEData modules and external APIs (ESI).

##### File structure to determine key components
- The solution (SMT.sln) contains multiple projects:
- SMT: The primary user interface/front-end application. It includes UI components (windows, dialogs, overlay, controls) along with themes, resources, and external helper libraries such as zoom control.
- EVEData: This project forms the core data layer with domain models (e.g., Alliance, Character, MapRegion, etc.), API integration classes (in the ESI subfolder) to retrieve live data, and utility libraries such as csDelaunay (for spatial computations) and nAlpha.
- DataGen: A separate tool (likely a console application) designed to generate or seed data used by the application.
- Other supporting directories/files include Setup (for the installer project) and GitHub-related configuration files.

##### README for additional guidance
- The README confirms the project as “Slazanger's Eve Map Tool” and provides build instructions with Visual Studio .NET Desktop Development.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% UI Layer
    subgraph "UI Layer (SMT - Front-End)"
        UI_MainWindow["MainWindow.xaml"] 
        UI_LogonWindow["LogonWindow.xaml"]
        UI_Universe["UniverseControl.xaml"]
    end

    %% External Controls
    subgraph "External Controls"
        ZoomControl["ZoomControl & Converters"]
    end

    %% Data Layer
    subgraph "Data Layer (EVEData - Business Logic)"
        EVEData_DM["Domain Models"]
        EVEData_ESI["ESI Integration"]
        subgraph "Utility Libraries"
            csDelaunay["csDelaunay"]
            nAlpha["nAlpha"]
        end
        Data_Files["Data Files (CSV/DAT)"]
    end

    %% Data Generation Tool
    subgraph "Data Generation Tool (DataGen)"
        DataGenTool["DataGen Tool"]
    end

    %% Setup / Installer
    subgraph "Setup / Installer"
        Installer["Setup Project"]
    end

    %% External API
    ExternalAPI["EVE Online API"]

    %% Connections
    UI_MainWindow -->|"fetchesData"| EVEData_DM
    UI_LogonWindow -->|"fetchesData"| EVEData_DM
    UI_Universe -->|"displaysMap"| EVEData_DM
    UI_MainWindow -->|"uses"| ZoomControl

    DataGenTool -->|"populates"| Data_Files

    EVEData_ESI -->|"APIcalls"| ExternalAPI

    %% Class Definitions for colors
    classDef ui fill:#f9dede,stroke:#d3625d,stroke-width:2px;
    classDef data fill:#e0f7fa,stroke:#039be5,stroke-width:2px;
    classDef utility fill:#e8f5e9,stroke:#43a047,stroke-width:2px;
    classDef datagen fill:#fff9c4,stroke:#fbc02d,stroke-width:2px;
    classDef external fill:#ede7f6,stroke:#7e57c2,stroke-width:2px;
    classDef installer fill:#e8eaf6,stroke:#5c6bc0,stroke-width:2px;
    classDef apicloud fill:#ffecb3,stroke:#ffa000,stroke-width:2px;

    %% Apply classes
    class UI_MainWindow,UI_LogonWindow,UI_Universe ui;
    class EVEData_DM,EVEData_ESI,Data_Files data;
    class csDelaunay,nAlpha utility;
    class DataGenTool datagen;
    class ZoomControl external;
    class Installer installer;
    class ExternalAPI apicloud;

    %% Click Events
    click UI_MainWindow "https://github.com/slazanger/smt/blob/master/SMT/MainWindow.xaml"
    click UI_LogonWindow "https://github.com/slazanger/smt/blob/master/SMT/LogonWindow.xaml"
    click UI_Universe "https://github.com/slazanger/smt/blob/master/SMT/UniverseControl.xaml"
    click EVEData_DM "https://github.com/slazanger/smt/tree/master/EVEData"
    click EVEData_ESI "https://github.com/slazanger/smt/tree/master/EVEData/ESI"
    click csDelaunay "https://github.com/slazanger/smt/tree/master/EVEData/Utils/csDelaunay"
    click nAlpha "https://github.com/slazanger/smt/tree/master/EVEData/Utils/nAlpha"
    click DataGenTool "https://github.com/slazanger/smt/tree/master/DataGen"
    click ZoomControl "https://github.com/slazanger/smt/tree/master/SMT/External"
    click Installer "https://github.com/slazanger/smt/tree/master/Setup"
```
