Simulateur Ferroviaire
Reconstruction et visualisation d'un réseau ferroviaire à partir de données GeoJSON — Win32 / WebView2 / Leaflet
Chargement...
Recherche...
Aucune correspondance
Référence de la structure TCORenderer::Projection

Paramètres de projection logique → écran. Plus de détails...

#include <TCORenderer.h>

Graphe de collaboration de TCORenderer::Projection:

Attributs publics

int minX = 0
 
int maxX = 0
 
int minY = 0
 
int maxY = 0
 
int width = 0
 
int height = 0
 
int cellWidth = 1
 
int cellHeight = 1
 
int marginX = 0
 
int centerY = 0
 
int halfGap = 0
 
int stub = 0
 
int inactiveGap = 0
 

Description détaillée

Paramètres de projection logique → écran.

Calculé une seule fois par computeProjection() et mis en cache dans PCCPanel::m_cachedProj. Invalide après resize ou rebuild().

Les champs stub/inactiveGap/halfGap sont dérivés de cellWidth et précalculés dans computeProjection() — évite N recalculs par paint.

Documentation des données membres

◆ cellHeight

int TCORenderer::Projection::cellHeight = 1

◆ cellWidth

int TCORenderer::Projection::cellWidth = 1

◆ centerY

int TCORenderer::Projection::centerY = 0

◆ halfGap

int TCORenderer::Projection::halfGap = 0

Demi-gap entre blocs adjacents (pixels). = BLOCK_GAP_PX / 2, arrondi.

◆ height

int TCORenderer::Projection::height = 0

◆ inactiveGap

int TCORenderer::Projection::inactiveGap = 0

Gap côté jonction de la branche inactive (pixels). = max(4, cellWidth * INACTIVE_GAP_RATIO).

◆ marginX

int TCORenderer::Projection::marginX = 0

◆ maxX

int TCORenderer::Projection::maxX = 0

◆ maxY

int TCORenderer::Projection::maxY = 0

◆ minX

int TCORenderer::Projection::minX = 0

◆ minY

int TCORenderer::Projection::minY = 0

◆ stub

int TCORenderer::Projection::stub = 0

Longueur du stub horizontal en fin de branche déviée (pixels). = max(4, cellWidth * STUB_RATIO).

◆ width

int TCORenderer::Projection::width = 0

La documentation de cette structure a été générée à partir du fichier suivant :