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
28 lines
566 B
Dart
28 lines
566 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// 比例尺预设
|
|
class ScalePreset {
|
|
final int n;
|
|
final String nameKey;
|
|
final String noteKey;
|
|
|
|
ScalePreset({required this.n, required this.nameKey, required this.noteKey});
|
|
}
|
|
|
|
/// 比例尺光谱
|
|
class ScaleSpectrum {
|
|
final int n;
|
|
final String labelKey;
|
|
final String scopeKey;
|
|
|
|
ScaleSpectrum({required this.n, required this.labelKey, required this.scopeKey});
|
|
}
|
|
|
|
/// 真实地标
|
|
class Landmark {
|
|
final String nameKey;
|
|
final double meters;
|
|
|
|
Landmark({required this.nameKey, required this.meters});
|
|
}
|