Pioneer
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  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 Types inherited from Gui::Widget
enum  EventMask {
  EVENT_NONE = 0 , EVENT_KEYDOWN = 1 << 0 , EVENT_KEYUP = 1 << 1 , EVENT_MOUSEDOWN = 1 << 2 ,
  EVENT_MOUSEUP = 1 << 3 , EVENT_MOUSEMOTION = 1 << 4
}
 

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)
 
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)
 
void SetColor (ColorIndex color_index, Color *color_value)
 
- Public Member Functions inherited from PiGuiView
 PiGuiView (std::string name)
 
virtual void DrawPiGui () override
 
const std::string & GetViewName ()
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
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 Gui::Fixed
 Fixed (float w, float h)
 
 Fixed ()
 
void Add (Widget *child, float x, float y)
 
void Remove (Widget *child)
 
virtual ~Fixed ()
 
virtual void GetSizeRequested (float size[2])
 
virtual void OnChildResizeRequest (Widget *)
 
virtual void UpdateAllChildSizes ()
 
void SetSizeRequest (float x, float y)
 
void SetSizeRequest (float size[2])
 
- Public Member Functions inherited from Gui::Container
 Container ()
 
virtual ~Container ()
 
bool OnMouseDown (MouseButtonEvent *e)
 
bool OnMouseUp (MouseButtonEvent *e)
 
bool OnMouseMotion (MouseMotionEvent *e)
 
void RemoveAllChildren ()
 
void DeleteAllChildren ()
 
void GetChildPosition (const Widget *child, float outPos[2]) const
 
int GetNumChildren ()
 
virtual void Draw ()
 
void ShowChildren ()
 
void HideChildren ()
 
virtual void Show ()
 
virtual void ShowAll ()
 
virtual void HideAll ()
 
void SetBgColor (const Color &col)
 
void SetTransparency (bool a)
 
void RemoveChild (Widget *w)
 
- Public Member Functions inherited from Gui::Widget
 Widget ()
 
virtual ~Widget ()
 
virtual void GetMinimumSize (float size[2])
 
void GetAbsolutePosition (float pos[2]) const
 
void GetSize (float size[2])
 
void SetSize (float w, float h)
 
void ResizeRequest ()
 
void SetShortcut (SDL_Keycode key, SDL_Keymod mod)
 
void SetScissor (bool enabled)
 
bool GetEnabled ()
 
void SetEnabled (bool v)
 
virtual void GrabFocus ()
 
bool IsFocused ()
 
virtual void Hide ()
 
void HideTooltip ()
 
bool IsVisible () const
 
ContainerGetParent () const
 
void SetParent (Container *p)
 
void SetToolTip (std::string s)
 
const std::string & GetToolTip () const
 
virtual void OnActivate ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseLeave ()
 
virtual bool OnKeyDown (const SDL_Keysym *sym)
 
virtual void OnTextInput (Uint32 unicode)
 
bool IsMouseOver ()
 
void OnPreShortcut (const SDL_Keysym *sym)
 
unsigned int GetEventMask ()
 
- 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 Gui::Container
sigc::signal< void, MouseButtonEvent * > onMouseButtonEvent
 
- Public Attributes inherited from Gui::Widget
sigc::signal< void > onMouseEnter
 
sigc::signal< void > onMouseLeave
 
sigc::signal< void > onSetSize
 
sigc::signal< void > onDelete
 
float w
 
float h
 
- Public Attributes inherited from DeleteEmitter
sigc::signal< void > onDelete
 

Additional Inherited Members

- Static Public Attributes inherited from Gui::Widget
static const unsigned int EVENT_ALL = 0xffffffff
 
- Protected Types inherited from Gui::Container
typedef std::list< widget_posWidgetList
 
- Protected Member Functions inherited from Gui::Container
void PrependChild (Widget *w, float x, float y)
 
void AppendChild (Widget *w, float x, float y)
 
void MoveChild (Widget *w, float x, float y)
 
WidgetList::const_iterator FindChild (const Widget *w) const
 
WidgetList::iterator FindChild (const Widget *w)
 
- Protected Member Functions inherited from Gui::Widget
virtual std::string GetOverrideTooltip ()
 
void UpdateOverriddenTooltip ()
 
- Protected Attributes inherited from View
Graphics::Rendererm_renderer
 
- Protected Attributes inherited from Gui::Container
WidgetList m_children
 
- Protected Attributes inherited from Gui::Widget
unsigned int m_eventMask
 
struct {
   SDL_Keycode   sym
 
   SDL_Keymod   mod
 
m_shortcut
 

Member Enumeration Documentation

◆ ColorIndex

Enumerator
GRID 
GRID_LEG 
SYSTEMBODY 
SYSTEMBODY_ORBIT 
PLAYER_ORBIT 
PLANNER_ORBIT 
SELECTED_SHIP_ORBIT 
SHIP_ORBIT 

Constructor & Destructor Documentation

◆ SystemView()

SystemView::SystemView ( Game game)

◆ ~SystemView()

SystemView::~SystemView ( )
override

Member Function Documentation

◆ AccelerateTime()

void SystemView::AccelerateTime ( float  step)

◆ Draw3D()

void SystemView::Draw3D ( )
overridevirtual

Reimplemented from PiGuiView.

Here is the call graph for this function:

◆ 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

◆ OnSwitchFrom()

void SystemView::OnSwitchFrom ( )
overridevirtual

Reimplemented from View.

◆ ProjectedSize()

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

◆ SetColor()

void SystemView::SetColor ( ColorIndex  color_index,
Color color_value 
)
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:

Member Data Documentation

◆ svColor

Color SystemView::svColor[8]

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