![]() |
Pioneer
|
#include <SystemView.h>

Public Types | |
| enum | ColorIndex { GRID = 0 , GRID_LEG = 1 , SYSTEMBODY = 2 , SYSTEMBODY_ORBIT = 3 , PLAYER_ORBIT = 4 , PLANNER_ORBIT = 5 , SELECTED_SHIP_ORBIT = 6 , SHIP_ORBIT = 7 } |
Public Attributes | |
| Color | svColor [8] |
| sigc::slot< double(const SystemBody *)> | GetStarportHeightAboveTerrain |
The SystemMapViewport is a context-agnostic map interface concerned with rendering the layout of the selected system and optionally positioning and processing Projectables pushed to it by external code.
It is intentionally "blind" to all Game-related functionality so it can be used in both a gameplay and tools-related context regardless of whether the Pi framework is currently running.
The typical flow for the SystemMap is:
| SystemMapViewport::SystemMapViewport | ( | GuiApplication * | app | ) |

| SystemMapViewport::~SystemMapViewport | ( | ) |
| void SystemMapViewport::AccelerateTime | ( | float | step | ) |
| void SystemMapViewport::AddObjectTrack | ( | Projectable | p | ) |
| void SystemMapViewport::AddOrbitTrack | ( | Projectable | p, |
| const Orbit * | orbit, | ||
| Color | color, | ||
| double | planetRadius | ||
| ) |
| float SystemMapViewport::AtlasViewPixelPerUnit | ( | ) |
|
inline |
| void SystemMapViewport::ClearSelectedObject | ( | ) |
| void SystemMapViewport::Draw3D | ( | ) |

| RefCountedPtr< StarSystem > SystemMapViewport::GetCurrentSystem | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| float SystemMapViewport::GetZoom | ( | ) | const |
| std::vector< Projectable::GroupInfo > SystemMapViewport::GroupProjectables | ( | vector2f | groupThreshold, |
| const std::vector< Projectable > & | specialObjects | ||
| ) |

| void SystemMapViewport::HandleInput | ( | float | deltaTime | ) |

| double SystemMapViewport::ProjectedSize | ( | double | size, |
| vector3d | pos | ||
| ) |

| void SystemMapViewport::ResetViewpoint | ( | ) |

|
inline |
|
inline |
| void SystemMapViewport::SetCurrentSystem | ( | RefCountedPtr< StarSystem > | system | ) |

|
inline |
| void SystemMapViewport::SetRealTime | ( | ) |
|
inline |
| void SystemMapViewport::SetRotateMode | ( | bool | enable | ) |

|
inline |
|
inline |
| void SystemMapViewport::SetViewedObject | ( | Projectable | p | ) |
| void SystemMapViewport::SetVisibility | ( | std::string | param | ) |

| void SystemMapViewport::SetZoomMode | ( | bool | enable | ) |

| void SystemMapViewport::Update | ( | float | deltaTime | ) |

|
inline |

| sigc::slot<double(const SystemBody *)> SystemMapViewport::GetStarportHeightAboveTerrain |
| Color SystemMapViewport::svColor[8] |