Files
GC/GC-UI/frontend/lib/models/geography_model.dart
T
远影科技 487250582c
PR 审核 / 后端编译 (pull_request) Canceled after 0s
PR 审核 / 后端自检 (pull_request) Canceled after 0s
PR 审核 / 前端检查(Flutter) (pull_request) Canceled after 0s
PR 审核 / 安全扫描 (pull_request) Canceled after 0s
PR 审核 / 审核汇总 (pull_request) Canceled after 0s
feat: rewrite all models in Flutter
Replace C# Avalonia models with pure Flutter implementations:

1. Contour Map (等高线地形图)
   - Five terrain types: plain, hill, mountain, plateau, basin
   - Animation playback/pause controls
   - Top/3D view toggle
   - Hypsometric coloring

2. Earth Geography (地球地理)
   - Five climate zones display
   - Seven continents outlines
   - Layer toggle controls
   - Tropic/circle annotations

3. Earth Rotation (地球自转)
   - Rotation animation
   - Day/night hemispheres
   - Terminator line annotation
   - Axial tilt (23.5°) display
   - Subsolar point tracking

4. Earth Revolution (地球公转)
   - Orbital animation
   - Four seasons positioning
   - Subsolar point migration
   - Fixed axial direction demo

5. Scale Calculator (比例尺计算器)
   - Three solve modes
   - Visual ruler display
   - Real-time calculation
   - Common scale presets

Implementation details:
- Use Flutter CustomPaint for 2D/3D rendering
- AnimationController for smooth animations
- Follow GC-UI theme and i18n system
- Implement GcModel interface for unified management
- Provide registry.dart for model registration
2026-11-21 09:25:34 +08:00

68 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
/// 地球地理模型数据
class GeoZone {
final String id;
final String nameZh;
final String nameEn;
final double latMin;
final double latMax;
final String descZh;
final String descEn;
GeoZone({
required this.id,
required this.nameZh,
required this.nameEn,
required this.latMin,
required this.latMax,
required this.descZh,
required this.descEn,
});
}
/// 大陆板块数据
class Continent {
final String nameZh;
final String nameEn;
final List<List<double>> points; // [lon, lat]
Continent({
required this.nameZh,
required this.nameEn,
required this.points,
});
}
/// 板块数据
class Plate {
final String id;
final String nameZh;
final String nameEn;
final List<List<double>> points;
Plate({
required this.id,
required this.nameZh,
required this.nameEn,
required this.points,
});
}
/// 洲界线
class Border {
final String betweenZh;
final String betweenEn;
final String nameZh;
final String nameEn;
final List<List<double>> points;
Border({
required this.betweenZh,
required this.betweenEn,
required this.nameZh,
required this.nameEn,
required this.points,
});
}