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


Classes | |
| class | FactionLabel |
| struct | InputBinding |
| class | Label |
| class | StarLabel |
Public Member Functions | |
| SectorView (Game *game) | |
| SectorView (const Json &jsonObj, Game *game) | |
| ~SectorView () override | |
| void | Update () override |
| void | Draw3D () override |
| void | DrawPiGui () override |
| vector3f | GetPosition () const |
| SystemPath | GetCurrent () const |
| SystemPath | GetSelected () const |
| void | SwitchToPath (const SystemPath &path) |
| SystemPath | GetHyperspaceTarget () const |
| void | SetHyperspaceTarget (const SystemPath &path) |
| void | ResetHyperspaceTarget () |
| void | GotoSector (const SystemPath &path) |
| void | GotoSystem (const SystemPath &path) |
| void | GotoCurrentSystem () |
| void | GotoSelectedSystem () |
| void | GotoHyperspaceTarget () |
| bool | IsCenteredOn (const SystemPath &path) |
| void | SaveToJson (Json &jsonObj) override |
| double | GetZoomLevel () const |
| void | ZoomIn () |
| void | ZoomOut () |
| vector3f | GetCenterSector () |
| double | GetCenterDistance () |
| void | SetDrawUninhabitedLabels (bool value) |
| void | SetDrawVerticalLines (bool value) |
| void | SetDrawOutRangeLabels (bool value) |
| void | SetAutomaticSystemSelection (bool value) |
| std::vector< SystemPath > | GetNearbyStarSystemsByName (std::string pattern) |
| const std::set< const Faction * > & | GetVisibleFactions () |
| const std::set< const Faction * > & | GetHiddenFactions () |
| void | SetFactionVisible (const Faction *faction, bool visible) |
| void | SetZoomMode (bool enable) |
| void | SetRotateMode (bool enable) |
| void | ResetView () |
| void | SetLabelParams (std::string fontName, int fontSize, float gap, Color highlight, Color shade) |
| void | DrawLabels () |
| void | SetLabelsVisibility (bool hideLabels) |
| bool | MoveRouteItemUp (const std::vector< SystemPath >::size_type element) |
| bool | MoveRouteItemDown (const std::vector< SystemPath >::size_type element) |
| void | UpdateRouteItem (const std::vector< SystemPath >::size_type element, const SystemPath &path) |
| void | AddToRoute (const SystemPath &path) |
| bool | RemoveRouteItem (const std::vector< SystemPath >::size_type element) |
| void | ClearRoute () |
| std::vector< SystemPath > | GetRoute () |
| const std::string | AutoRoute (const SystemPath &start, const SystemPath &target, std::vector< SystemPath > &outRoute) const |
| void | SetDrawRouteLines (bool value) |
Public Member Functions inherited from PiGuiView | |
| PiGuiView (std::string name) | |
| virtual void | Update () override |
| virtual void | Draw3D () override |
| virtual void | DrawPiGui () override |
| const std::string & | GetViewName () |
Public Member Functions inherited from View | |
| View () | |
| virtual | ~View () |
| virtual void | Draw () |
| virtual void | Draw3D ()=0 |
| virtual void | Update ()=0 |
| virtual void | DrawPiGui () |
| virtual void | SaveToJson (Json &jsonObj) |
| virtual void | LoadFromJson (const Json &jsonObj) |
| void | Attach () |
| void | Detach () |
| void | SetRenderer (Graphics::Renderer *r) |
Public Member Functions inherited from DeleteEmitter | |
| DeleteEmitter () | |
| virtual | ~DeleteEmitter () |
Public Member Functions inherited from LuaWrappable | |
| virtual | ~LuaWrappable () |
Public Attributes | |
| sigc::signal< void > | onHyperspaceTargetChanged |
Public Attributes inherited from DeleteEmitter | |
| sigc::signal< void > | onDelete |
Protected Member Functions | |
| void | OnSwitchTo () override |
| void | OnSwitchFrom () override |
| virtual void | OnSwitchTo ()=0 |
| virtual void | OnSwitchFrom () |
Protected Attributes | |
| SectorView::InputBinding | InputBindings |
Protected Attributes inherited from View | |
| Graphics::Renderer * | m_renderer |
| SectorView::SectorView | ( | Game * | game | ) |


|
override |
| void SectorView::AddToRoute | ( | const SystemPath & | path | ) |
| const std::string SectorView::AutoRoute | ( | const SystemPath & | start, |
| const SystemPath & | target, | ||
| std::vector< SystemPath > & | outRoute | ||
| ) | const |

| void SectorView::ClearRoute | ( | ) |
|
overridevirtual |
| void SectorView::DrawLabels | ( | ) |

|
overridevirtual |
| double SectorView::GetCenterDistance | ( | ) |

| vector3f SectorView::GetCenterSector | ( | ) |
|
inline |
|
inline |
|
inline |
| std::vector< SystemPath > SectorView::GetNearbyStarSystemsByName | ( | std::string | pattern | ) |

|
inline |
| std::vector< SystemPath > SectorView::GetRoute | ( | ) |
|
inline |
|
inline |
| double SectorView::GetZoomLevel | ( | ) | const |
|
inline |

|
inline |

| void SectorView::GotoSector | ( | const SystemPath & | path | ) |
|
inline |

| void SectorView::GotoSystem | ( | const SystemPath & | path | ) |
| bool SectorView::IsCenteredOn | ( | const SystemPath & | path | ) |
| bool SectorView::MoveRouteItemDown | ( | const std::vector< SystemPath >::size_type | element | ) |
| bool SectorView::MoveRouteItemUp | ( | const std::vector< SystemPath >::size_type | element | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| bool SectorView::RemoveRouteItem | ( | const std::vector< SystemPath >::size_type | element | ) |
| void SectorView::ResetHyperspaceTarget | ( | ) |

| void SectorView::ResetView | ( | ) |

|
overridevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void SectorView::SetFactionVisible | ( | const Faction * | faction, |
| bool | visible | ||
| ) |
| void SectorView::SetHyperspaceTarget | ( | const SystemPath & | path | ) |
| void SectorView::SetLabelParams | ( | std::string | fontName, |
| int | fontSize, | ||
| float | gap, | ||
| Color | highlight, | ||
| Color | shade | ||
| ) |
|
inline |
| void SectorView::SetRotateMode | ( | bool | enable | ) |

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

| void SectorView::SwitchToPath | ( | const SystemPath & | path | ) |

|
overridevirtual |
| void SectorView::UpdateRouteItem | ( | const std::vector< SystemPath >::size_type | element, |
| const SystemPath & | path | ||
| ) |
| void SectorView::ZoomIn | ( | ) |

| void SectorView::ZoomOut | ( | ) |

|
protected |
| sigc::signal<void> SectorView::onHyperspaceTargetChanged |