swift
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
swift::misc::simulation::settings::CXSwiftBusSettingsQtFree Class Referenceabstract

xswiftbus/swift side settings class, JSON capable, shared among all services More...

Inheritance diagram for swift::misc::simulation::settings::CXSwiftBusSettingsQtFree:
[legend]

Public Member Functions

const std::string & getDBusServerAddress () const
 DBus server.
 
void setDBusServerAddress (const std::string &dBusServer)
 Set DBus server.
 
void setDrawingLabels (bool drawing)
 Set whether the plugin draws type and callsign labels above aircraft.
 
bool isDrawingLabels () const
 Get whether the plugin draws type and callsign labels above aircraft.
 
void setLabelColor (int rgb)
 Set the color to draw the callsign labels above aircraft.
 
int getLabelColor () const
 Get the color to draw the callsign labels above aircraft.
 
void setBundlingTaxiAndLandingLights (bool bundle)
 Bundle taxi and landing lights.
 
bool isBundlingTaxiAndLandingLights () const
 Bundle taxi and landing lights.
 
void setNightTextureMode (const std::string &mode)
 The the night texture mode.
 
const std::string & getNightTextureMode () const
 The the night texture mode.
 
void setMessageBoxValues (const std::string &positions)
 Left, top, right, bottom, lines, duration, color(freq, priv, serv, stat, sup)
 
void setMessageBoxValues (int leftPx, int topPx, int rightPx, int bottomPx, int lines, int durationMs, int freqRgb, int privRgb, int servRgb, int statRgb, int supRgb)
 Left, top, right, bottom, lines, duration, color(freq, priv, serv, stat, sup)
 
const std::string & getMessageBoxValues () const
 Left, top, right, bottom, lines, duration, color(freq, priv, serv, stat, sup)
 
std::vector< int > getMessageBoxValuesVector () const
 Left, top, right, bottom, lines, duration, color(freq, priv, serv, stat, sup)
 
bool setMaxPlanes (int planes)
 Set the maximum number of aircraft.
 
int getMaxPlanes () const
 Get the maximum number of aircraft.
 
bool setFollowAircraftDistanceM (int meters)
 Set follow aircraft distance.
 
int getFollowAircraftDistanceM () const
 Get follow aircraft distance.
 
double getMaxDrawDistanceNM () const
 Set the maximum distance at which to draw aircraft (nautical miles).
 
bool setMaxDrawDistanceNM (double nauticalMiles)
 Set the maximum distance at which to draw aircraft (nautical miles).
 
bool isLogRenderPhases () const
 Debug messages?
 
void setLogRenderPhases (bool log)
 Debug messages?
 
bool isTcasEnabled () const
 TCAS functionality?
 
void setTcasEnabled (bool tcas)
 TCAS functionality?
 
bool isTerrainProbeEnabled () const
 Terrain probe to query ground elevation enabled?
 
void setTerrainProbeEnabled (bool enabled)
 Terrain probe to query ground elevation enabled?
 
bool parseXSwiftBusString (const std::string &json)
 Load and parse config file.
 
std::string toXSwiftBusJsonString () const
 As JSON string.
 
std::string convertToString () const
 Convert to string.
 
int update (const CXSwiftBusSettingsQtFree &newValues)
 Update only changed values.
 
virtual void setCurrentUtcTime ()
 Sets timestamp to now.
 

Protected Member Functions

 CXSwiftBusSettingsQtFree ()=default
 Constructor.
 
virtual ~CXSwiftBusSettingsQtFree ()=default
 Destructor.
 
virtual void objectUpdated ()=0
 Object has been updated.
 

Protected Attributes

std::string m_dBusServerAddress
 DBus server (also in class CXSwiftBusConfigWriter) More...
 
std::string m_nightTextureMode { "auto" }
 night texture mode
 
std::string m_msgBox
 left, top, right, bottom, lines, duration, colors More...
 
int m_maxPlanes = 100
 max. More...
 
int m_followAircraftDistanceM = 200
 follow aircraft in distance
 
bool m_drawingLabels = true
 labels in XPlane
 
int m_labelColor = 0xffc000
 labels in XPlane
 
bool m_bundleTaxiLandingLights = true
 bundle taxi and landing lights
 
bool m_logRenderPhases = false
 render phases debug messages
 
bool m_tcasEnabled = true
 TCAS functionality.
 
bool m_terrainProbeEnabled = true
 terrain probe to establish ground elevation
 
double m_maxDrawDistanceNM = 50.0
 distance in XPlane
 
int64_t m_msSinceEpochQtFree = 0
 timestamp
 

Static Protected Attributes

static constexpr char JsonDBusServerAddress [] = "dbusserveradress"
 The JSON members.
 
static constexpr char JsonDrawingLabels [] = "drawinglabels"
 The JSON members.
 
static constexpr char JsonLabelColor [] = "labelcolor"
 The JSON members.
 
static constexpr char JsonLogRenderPhases [] = "renderPhases"
 The JSON members.
 
static constexpr char JsonTcas [] = "tcas"
 The JSON members.
 
static constexpr char JsonTerrainProbe [] = "terrainProbe"
 The JSON members.
 
static constexpr char JsonMaxPlanes [] = "maxplanes"
 The JSON members.
 
static constexpr char JsonMaxDrawDistance [] = "maxDrawDistance"
 The JSON members.
 
static constexpr char JsonNightTextureMode [] = "nighttexture"
 The JSON members.
 
static constexpr char JsonTimestamp [] = "timestamp"
 The JSON members.
 
static constexpr char JsonMessageBox [] = "msgbox"
 The JSON members.
 
static constexpr char JsonBundleTaxiLandingLights [] = "bundleLights"
 The JSON members.
 
static constexpr char JsonFollowAircraftDistanceM [] = "followAircraftDistance"
 The JSON members.
 

Detailed Description

xswiftbus/swift side settings class, JSON capable, shared among all services

Used on swift and xswiftbus side, MUST BE Qt free

Definition at line 19 of file xswiftbussettingsqtfree.h.

Member Data Documentation

◆ m_dBusServerAddress

std::string swift::misc::simulation::settings::CXSwiftBusSettingsQtFree::m_dBusServerAddress
protected
Initial value:
{
"tcp:host=127.0.0.1,port=45001"
}

DBus server (also in class CXSwiftBusConfigWriter)

Definition at line 186 of file xswiftbussettingsqtfree.h.

◆ m_maxPlanes

int swift::misc::simulation::settings::CXSwiftBusSettingsQtFree::m_maxPlanes = 100
protected

max.

planes in XPlane

Definition at line 193 of file xswiftbussettingsqtfree.h.

◆ m_msgBox

std::string swift::misc::simulation::settings::CXSwiftBusSettingsQtFree::m_msgBox
protected
Initial value:
{
"20;20;20;-1;5;5000;65280;16711935;14315734;65535;16776960"
}

left, top, right, bottom, lines, duration, colors

Definition at line 190 of file xswiftbussettingsqtfree.h.


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