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

#include <SystemView.h>

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

Public Types

enum class  Mode { Orrery = 0 , Atlas = 1 }
 
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 Member Functions

 SystemView (Game *game)
 
 ~SystemView () override
 
void Update () override
 
void Draw3D () override
 
void OnSwitchFrom () override
 
ProjectableGetSelectedObject ()
 
void SetSelectedObject (Projectable::types type, Projectable::bases base, SystemBody *sb)
 
void SetSelectedObject (Projectable::types type, Projectable::bases base, Body *b)
 
void ClearSelectedObject ()
 
void ViewSelectedObject ()
 
void ResetViewpoint ()
 
RefCountedPtr< StarSystemGetCurrentSystem ()
 
TransferPlannerGetTransferPlanner () const
 
double GetOrbitPlannerStartTime () const
 
double GetOrbitPlannerTime () const
 
void AccelerateTime (float step)
 
void SetRealTime ()
 
std::vector< ProjectableGetProjected () const
 
void SetVisibility (std::string param)
 
void SetZoomMode (bool enable)
 
void SetRotateMode (bool enable)
 
double ProjectedSize (double size, vector3d pos)
 
float AtlasViewPlanetGap (float planetRadius)
 
float AtlasViewPixelPerUnit ()
 
float GetZoom () const
 
Mode GetDisplayMode ()
 
void SetDisplayMode (Mode displayMode)
 
void SetColor (ColorIndex color_index, Color *color_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

Color svColor [8]
 
- Public Attributes inherited from DeleteEmitter
sigc::signal< void > onDelete
 

Additional Inherited Members

virtual void OnSwitchTo ()=0
 
virtual void OnSwitchFrom ()
 
- Protected Attributes inherited from View
Graphics::Rendererm_renderer
 

Member Enumeration Documentation

◆ ColorIndex

Enumerator
GRID 
GRID_LEG 
SYSTEMBODY 
SYSTEMBODY_ORBIT 
PLAYER_ORBIT 
PLANNER_ORBIT 
SELECTED_SHIP_ORBIT 
SHIP_ORBIT 

◆ Mode

enum class SystemView::Mode
strong
Enumerator
Orrery 
Atlas 

Constructor & Destructor Documentation

◆ SystemView()

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

◆ ~SystemView()

SystemView::~SystemView ( )
override

Member Function Documentation

◆ AccelerateTime()

void SystemView::AccelerateTime ( float  step)

◆ AtlasViewPixelPerUnit()

float SystemView::AtlasViewPixelPerUnit ( )
Here is the call graph for this function:

◆ AtlasViewPlanetGap()

float SystemView::AtlasViewPlanetGap ( float  planetRadius)
inline

◆ ClearSelectedObject()

void SystemView::ClearSelectedObject ( )

◆ Draw3D()

void SystemView::Draw3D ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ GetCurrentSystem()

RefCountedPtr< StarSystem > SystemView::GetCurrentSystem ( )

◆ GetDisplayMode()

Mode SystemView::GetDisplayMode ( )
inline

◆ GetOrbitPlannerStartTime()

double SystemView::GetOrbitPlannerStartTime ( ) const
inline
Here is the call graph for this function:

◆ GetOrbitPlannerTime()

double SystemView::GetOrbitPlannerTime ( ) const
inline

◆ GetProjected()

std::vector< Projectable > SystemView::GetProjected ( ) const
inline

◆ GetSelectedObject()

Projectable * SystemView::GetSelectedObject ( )

◆ GetTransferPlanner()

TransferPlanner * SystemView::GetTransferPlanner ( ) const
inline

◆ GetZoom()

float SystemView::GetZoom ( ) const

◆ OnSwitchFrom()

void SystemView::OnSwitchFrom ( )
overridevirtual

Reimplemented from View.

◆ ProjectedSize()

double SystemView::ProjectedSize ( double  size,
vector3d  pos 
)
Here is the call graph for this function:

◆ ResetViewpoint()

void SystemView::ResetViewpoint ( )
Here is the call graph for this function:

◆ SetColor()

void SystemView::SetColor ( ColorIndex  color_index,
Color color_value 
)
inline

◆ SetDisplayMode()

void SystemView::SetDisplayMode ( Mode  displayMode)
inline

◆ SetRealTime()

void SystemView::SetRealTime ( )

◆ SetRotateMode()

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

◆ SetSelectedObject() [1/2]

void SystemView::SetSelectedObject ( Projectable::types  type,
Projectable::bases  base,
Body b 
)

◆ SetSelectedObject() [2/2]

void SystemView::SetSelectedObject ( Projectable::types  type,
Projectable::bases  base,
SystemBody sb 
)

◆ SetVisibility()

void SystemView::SetVisibility ( std::string  param)
Here is the call graph for this function:

◆ SetZoomMode()

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

◆ Update()

void SystemView::Update ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ ViewSelectedObject()

void SystemView::ViewSelectedObject ( )

Member Data Documentation

◆ svColor

Color SystemView::svColor[8]

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