Color Menu
The Color Menu plugin is a component of the KeepTrack application that provides functionality for changing the color scheme used to render objects in the space visualization.
Features
- Change color schemes based on various object properties and characteristics
- Accessible via bottom menu icon and right-click context menu
- Integration with legend display
- Support for multiple color schemes including object type, sunlight status, velocity, orbit density, and more
User Interface
The plugin adds the following UI elements:
- A “Color Schemes” icon in the bottom menu for quick access
- A side menu with a list of available color schemes
- A “Color Scheme” option in the right-click context menu
- A submenu in the right-click context menu with quick access to popular color schemes
Color Schemes Available
- Object Type (default)
- Sunlight
- Velocity
- Orbit Density
- Confidence Level
- Radar Cross Section (RCS)
- Starlink
- Small Satellites
- Countries
- Near Earth
- Deep Space
- Elset Age
- Lost Objects
Usage
Changing Color Scheme via Side Menu
- Click the “Color Schemes” icon in the bottom menu
- Select a color scheme from the list in the side menu
- The visualization will update to reflect the new color scheme
Changing Color Scheme via Right-Click Menu
- Right-click anywhere on the visualization
- Hover over “Color Scheme” in the context menu
- Select a color scheme from the submenu
- The visualization will update to reflect the new color scheme
Integration with KeepTrack
The Color Menu Plugin integrates with several KeepTrack components:
- CatalogManager: Handles satellite data and cruncher messages
- ColorSchemeManager: Manages the application of different color schemes
- UiManager: Handles UI updates and notifications
- LegendManager: Updates the legend display based on the selected color scheme
Development
When extending or modifying the Color Menu Plugin, consider the following:
- The plugin follows the KeepTrackPlugin architecture
- It registers event handlers for UI interactions
- Color scheme changes are handled by the
colorsMenuClick
static method - Some color schemes require additional processing (e.g., sunlight calculations)
Code Configuration
The plugin supports the following configuration options:
bottomIconImg
: Image for the bottom menu iconbottomIconLabel
: Label for the bottom menu icondragOptions
: Configuration for making the side menu draggable
Troubleshooting
- If a color scheme doesn’t appear to change, check the browser console for any error messages
- Ensure that the required KeepTrack components (CatalogManager, ColorSchemeManager, etc.) are properly initialized
- For performance issues with certain color schemes, consider optimizing the calculation methods or adding loading indicators for long-running processes