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

#include <SectorMap.h>

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

Classes

class  FactionLabel
 
struct  InputBinding
 
class  Label
 
class  StarLabel
 

Public Member Functions

 SectorMap (SectorMapContext &&context)
 
 SectorMap (const Json &jsonObj, SectorMapContext &&context)
 
 ~SectorMap ()
 
void Update (float frameTime)
 
void Draw3D ()
 
void DrawLabels (bool interactive, const ImVec2 &imagePos={ 0.0, 0.0 })
 
void DrawEmbed ()
 
vector3f GetPosition () const
 
vector3f GetSystemPosition (const SystemPath &path)
 
double GetZoomLevel () const
 
RefCountedPtr< SectorGetCached (const SystemPath &loc)
 
bool IsCenteredOn (const SystemPath &path)
 
bool IsManualMove ()
 
SystemPath NearestSystemToPos (const vector3f &pos)
 
matrix4x4f PointOfView ()
 
SectorMapContextGetContext ()
 
void SetDrawUninhabitedLabels (bool value)
 
void SetDrawVerticalLines (bool value)
 
void SetFactionVisible (const Faction *faction, bool visible)
 
void SetZoomMode (bool enable)
 
void SetRotateMode (bool enable)
 
void SetLabelParams (std::string fontName, int fontSize, float gap, Color highlight, Color shade)
 
void SetLabelsVisibility (bool hideLabels)
 
void GotoSector (const SystemPath &path)
 
void GotoSystem (const SystemPath &path)
 
void ZoomIn ()
 
void ZoomOut ()
 
void ResetView ()
 
void CreateRenderTarget ()
 
void SetSize (vector2d size)
 
void SaveToJson (Json &jsonObj)
 
void AddStarBillboard (const matrix4x4f &modelview, const vector3f &pos, const Color &col, float size)
 
void AddSphere (const matrix4x4f &trans, const Color &color=Color::WHITE)
 
void AddLineVert (const vector3f &v, const Color &c)
 
void ClearLineVerts ()
 
std::vector< SystemPathGetNearbyStarSystemsByName (std::string pattern)
 
const std::set< const Faction * > & GetVisibleFactions ()
 
const std::set< const Faction * > & GetHiddenFactions ()
 
- Public Member Functions inherited from DeleteEmitter
 DeleteEmitter ()
 
virtual ~DeleteEmitter ()
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Public Attributes

SectorMap::InputBinding InputBindings
 
- Public Attributes inherited from DeleteEmitter
sigc::signal< void > onDelete
 

Constructor & Destructor Documentation

◆ SectorMap() [1/2]

SectorMap::SectorMap ( SectorMapContext &&  context)
Here is the call graph for this function:

◆ SectorMap() [2/2]

SectorMap::SectorMap ( const Json jsonObj,
SectorMapContext &&  context 
)
Here is the call graph for this function:

◆ ~SectorMap()

SectorMap::~SectorMap ( )

Member Function Documentation

◆ AddLineVert()

void SectorMap::AddLineVert ( const vector3f v,
const Color c 
)

◆ AddSphere()

void SectorMap::AddSphere ( const matrix4x4f trans,
const Color color = Color::WHITE 
)

◆ AddStarBillboard()

void SectorMap::AddStarBillboard ( const matrix4x4f modelview,
const vector3f pos,
const Color col,
float  size 
)
Here is the call graph for this function:

◆ ClearLineVerts()

void SectorMap::ClearLineVerts ( )

◆ CreateRenderTarget()

void SectorMap::CreateRenderTarget ( )
Here is the call graph for this function:

◆ Draw3D()

void SectorMap::Draw3D ( )
Here is the call graph for this function:

◆ DrawEmbed()

void SectorMap::DrawEmbed ( )
Here is the call graph for this function:

◆ DrawLabels()

void SectorMap::DrawLabels ( bool  interactive,
const ImVec2 &  imagePos = { 0.0, 0.0 } 
)

◆ GetCached()

RefCountedPtr< Sector > SectorMap::GetCached ( const SystemPath loc)
inline

◆ GetContext()

SectorMapContext & SectorMap::GetContext ( )
inline

◆ GetHiddenFactions()

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

◆ GetNearbyStarSystemsByName()

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

◆ GetPosition()

vector3f SectorMap::GetPosition ( ) const
inline

◆ GetSystemPosition()

vector3f SectorMap::GetSystemPosition ( const SystemPath path)
Here is the call graph for this function:

◆ GetVisibleFactions()

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

◆ GetZoomLevel()

double SectorMap::GetZoomLevel ( ) const

◆ GotoSector()

void SectorMap::GotoSector ( const SystemPath path)

◆ GotoSystem()

void SectorMap::GotoSystem ( const SystemPath path)
Here is the call graph for this function:

◆ IsCenteredOn()

bool SectorMap::IsCenteredOn ( const SystemPath path)
Here is the call graph for this function:

◆ IsManualMove()

bool SectorMap::IsManualMove ( )
inline

◆ NearestSystemToPos()

SystemPath SectorMap::NearestSystemToPos ( const vector3f pos)
Here is the call graph for this function:

◆ PointOfView()

matrix4x4f SectorMap::PointOfView ( )
Here is the call graph for this function:

◆ ResetView()

void SectorMap::ResetView ( )

◆ SaveToJson()

void SectorMap::SaveToJson ( Json jsonObj)

◆ SetDrawUninhabitedLabels()

void SectorMap::SetDrawUninhabitedLabels ( bool  value)
inline

◆ SetDrawVerticalLines()

void SectorMap::SetDrawVerticalLines ( bool  value)
inline

◆ SetFactionVisible()

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

◆ SetLabelParams()

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

◆ SetLabelsVisibility()

void SectorMap::SetLabelsVisibility ( bool  hideLabels)
inline

◆ SetRotateMode()

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

◆ SetSize()

void SectorMap::SetSize ( vector2d  size)

◆ SetZoomMode()

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

◆ Update()

void SectorMap::Update ( float  frameTime)
Here is the call graph for this function:

◆ ZoomIn()

void SectorMap::ZoomIn ( )

◆ ZoomOut()

void SectorMap::ZoomOut ( )

Member Data Documentation

◆ InputBindings

SectorMap::InputBinding SectorMap::InputBindings

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