Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SectorView Class Reference

#include <SectorView.h>

Inheritance diagram for SectorView:
Inheritance graph
[legend]
Collaboration diagram for SectorView:
Collaboration graph
[legend]

Classes

struct  InputBinding
 
class  SectorMapCallbacks
 

Public Member Functions

 SectorView (Game *game)
 
 SectorView (const Json &jsonObj, Game *game)
 
 ~SectorView () override
 
void Update () override
 
void Draw3D () override
 
void DrawPiGui () override
 
SystemPath GetCurrent () const
 
SystemPath GetHyperspaceTarget () const
 
SystemPath GetSelected () const
 
SectorMap & GetMap ()
 
void GotoCurrentSystem ()
 
void GotoSelectedSystem ()
 
void GotoHyperspaceTarget ()
 
void SwitchToPath (const SystemPath &path)
 
void SetHyperspaceTarget (const SystemPath &path)
 
void SetDrawOutRangeLabels (bool value)
 
void SetAutomaticSystemSelection (bool value)
 
void ResetHyperspaceTarget ()
 
void ResetView ()
 
void SaveToJson (Json &jsonObj) override
 
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
 

Constructor & Destructor Documentation

◆ SectorView() [1/2]

SectorView::SectorView ( Game *  game)
Here is the call graph for this function:

◆ SectorView() [2/2]

SectorView::SectorView ( const Json &  jsonObj,
Game *  game 
)
Here is the call graph for this function:

◆ ~SectorView()

SectorView::~SectorView ( )
override

Member Function Documentation

◆ AddToRoute()

void SectorView::AddToRoute ( const SystemPath &  path)

◆ AutoRoute()

const std::string SectorView::AutoRoute ( const SystemPath &  start,
const SystemPath &  target,
std::vector< SystemPath > &  outRoute 
) const
Here is the call graph for this function:

◆ ClearRoute()

void SectorView::ClearRoute ( )

◆ Draw3D()

void SectorView::Draw3D ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ DrawPiGui()

void SectorView::DrawPiGui ( )
overridevirtual

Reimplemented from PiGuiView.

◆ GetCurrent()

SystemPath SectorView::GetCurrent ( ) const
inline

◆ GetHyperspaceTarget()

SystemPath SectorView::GetHyperspaceTarget ( ) const
inline

◆ GetMap()

SectorMap & SectorView::GetMap ( )
inline

◆ GetRoute()

std::vector< SystemPath > SectorView::GetRoute ( )

◆ GetSelected()

SystemPath SectorView::GetSelected ( ) const
inline

◆ GotoCurrentSystem()

void SectorView::GotoCurrentSystem ( )

◆ GotoHyperspaceTarget()

void SectorView::GotoHyperspaceTarget ( )

◆ GotoSelectedSystem()

void SectorView::GotoSelectedSystem ( )

◆ MoveRouteItemDown()

bool SectorView::MoveRouteItemDown ( const std::vector< SystemPath >::size_type  element)

◆ MoveRouteItemUp()

bool SectorView::MoveRouteItemUp ( const std::vector< SystemPath >::size_type  element)

◆ OnSwitchFrom()

void SectorView::OnSwitchFrom ( )
overrideprotectedvirtual

Reimplemented from View.

◆ OnSwitchTo()

void SectorView::OnSwitchTo ( )
overrideprotectedvirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ RemoveRouteItem()

bool SectorView::RemoveRouteItem ( const std::vector< SystemPath >::size_type  element)

◆ ResetHyperspaceTarget()

void SectorView::ResetHyperspaceTarget ( )
Here is the call graph for this function:

◆ ResetView()

void SectorView::ResetView ( )
Here is the call graph for this function:

◆ SaveToJson()

void SectorView::SaveToJson ( Json &  jsonObj)
overridevirtual

Reimplemented from View.

Here is the call graph for this function:

◆ SetAutomaticSystemSelection()

void SectorView::SetAutomaticSystemSelection ( bool  value)
inline

◆ SetDrawOutRangeLabels()

void SectorView::SetDrawOutRangeLabels ( bool  value)
inline

◆ SetDrawRouteLines()

void SectorView::SetDrawRouteLines ( bool  value)

◆ SetHyperspaceTarget()

void SectorView::SetHyperspaceTarget ( const SystemPath &  path)

◆ SwitchToPath()

void SectorView::SwitchToPath ( const SystemPath &  path)

◆ Update()

void SectorView::Update ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ UpdateRouteItem()

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

Member Data Documentation

◆ InputBindings

SectorView::InputBinding SectorView::InputBindings
protected

◆ onHyperspaceTargetChanged

sigc::signal<void> SectorView::onHyperspaceTargetChanged

The documentation for this class was generated from the following files: