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

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< SystemPathGetNearbyStarSystemsByName (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< SystemPathGetRoute ()
 
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::Rendererm_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:

◆ DrawLabels()

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

◆ DrawPiGui()

void SectorView::DrawPiGui ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ GetCenterDistance()

double SectorView::GetCenterDistance ( )
Here is the call graph for this function:

◆ GetCenterSector()

vector3f SectorView::GetCenterSector ( )

◆ GetCurrent()

SystemPath SectorView::GetCurrent ( ) const
inline

◆ GetHiddenFactions()

const std::set< const Faction * > & SectorView::GetHiddenFactions ( )
inline

◆ GetHyperspaceTarget()

SystemPath SectorView::GetHyperspaceTarget ( ) const
inline

◆ GetNearbyStarSystemsByName()

std::vector< SystemPath > SectorView::GetNearbyStarSystemsByName ( std::string  pattern)
Here is the call graph for this function:

◆ GetPosition()

vector3f SectorView::GetPosition ( ) const
inline

◆ GetRoute()

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

◆ GetSelected()

SystemPath SectorView::GetSelected ( ) const
inline

◆ GetVisibleFactions()

const std::set< const Faction * > & SectorView::GetVisibleFactions ( )
inline

◆ GetZoomLevel()

double SectorView::GetZoomLevel ( ) const

◆ GotoCurrentSystem()

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

◆ GotoHyperspaceTarget()

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

◆ GotoSector()

void SectorView::GotoSector ( const SystemPath path)

◆ GotoSelectedSystem()

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

◆ GotoSystem()

void SectorView::GotoSystem ( const SystemPath path)

◆ IsCenteredOn()

bool SectorView::IsCenteredOn ( const SystemPath path)

◆ 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.

Here is the call graph for this function:

◆ 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)
inline

◆ SetDrawUninhabitedLabels()

void SectorView::SetDrawUninhabitedLabels ( bool  value)
inline

◆ SetDrawVerticalLines()

void SectorView::SetDrawVerticalLines ( bool  value)
inline

◆ SetFactionVisible()

void SectorView::SetFactionVisible ( const Faction faction,
bool  visible 
)

◆ SetHyperspaceTarget()

void SectorView::SetHyperspaceTarget ( const SystemPath path)

◆ SetLabelParams()

void SectorView::SetLabelParams ( std::string  fontName,
int  fontSize,
float  gap,
Color  highlight,
Color  shade 
)

◆ SetLabelsVisibility()

void SectorView::SetLabelsVisibility ( bool  hideLabels)
inline

◆ SetRotateMode()

void SectorView::SetRotateMode ( bool  enable)
Here is the call graph for this function:

◆ SetZoomMode()

void SectorView::SetZoomMode ( bool  enable)
Here is the call graph for this function:

◆ SwitchToPath()

void SectorView::SwitchToPath ( const SystemPath path)
Here is the call graph for this function:

◆ 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 
)

◆ ZoomIn()

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

◆ ZoomOut()

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

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: