Provides a synchronization mechanism for multiple Stellarium instances in a network. This plugin has been developed during ESA SoCiS 2015/2016.
- Author
- Florian Schaukowitsch
-
Georg Zotti
Public Types |
enum | SyncState {
IDLE,
SERVER,
CLIENT,
CLIENT_CONNECTING,
CLIENT_CLOSING,
CLIENT_WAIT_RECONNECT
} |
|
enum | ClientBehavior { NONE,
RECONNECT,
QUIT
} |
| Defines behavior when client connection is lost/server quits.
|
|
enum | StelModuleSelectAction { AddToSelection,
ReplaceSelection,
RemoveFromSelection
} |
| Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More...
|
|
enum | StelModuleActionName {
ActionDraw,
ActionUpdate,
ActionHandleMouseClicks,
ActionHandleMouseMoves,
ActionHandleKeys
} |
| Define the possible action for which an order is defined. More...
|
|
Public Slots |
void | setClientServerHost (const QString &clientServerHost) |
|
void | setClientServerPort (const int port) |
|
void | setServerPort (const int port) |
|
void | setClientSyncOptions (SyncClient::SyncOptions options) |
|
void | setStelPropFilter (const QStringList &stelPropFilter) |
|
void | setConnectionLostBehavior (const ClientBehavior bh) |
|
void | setQuitBehavior (const ClientBehavior bh) |
|
void | startServer () |
| Starts the plugin in server mode, on the port specified by the serverPort property. More...
|
|
void | stopServer () |
| Tries to disconnect all current clients and stops the server, returning to the IDLE state. More...
|
|
void | connectToServer () |
| Connects the plugin to the server specified by the clientServerHost and clientServerPort properties. More...
|
|
void | disconnectFromServer () |
| Disconnects from the server and returns to the IDLE state. More...
|
|
void | loadSettings () |
| Load the plug-in's settings from the configuration file. More...
|
|
void | saveSettings () |
| Save the plug-in's settings to the configuration file. More...
|
|
void | restoreDefaultSettings () |
| Restore the plug-in's settings to the default state. More...
|
|
Signals |
void | errorOccurred (const QString &errorString) |
|
void | clientServerHostChanged (const QString &clientServerHost) |
|
void | clientServerPortChanged (const int port) |
|
void | serverPortChanged (const int port) |
|
void | clientSyncOptionsChanged (const SyncClient::SyncOptions options) |
|
void | stelPropFilterChanged (const QStringList &stelPropFilter) |
|
void | connectionLostBehaviorChanged (const ClientBehavior bh) |
|
void | quitBehaviorChanged (const ClientBehavior bh) |
|
void | stateChanged (RemoteSync::SyncState state) |
|
Public Member Functions |
virtual void | init () Q_DECL_OVERRIDE |
| Initialize itself. More...
|
|
virtual void | update (double deltaTime) Q_DECL_OVERRIDE |
| Update the module with respect to the time. More...
|
|
virtual double | getCallOrder (StelModuleActionName actionName) const Q_DECL_OVERRIDE |
| Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More...
|
|
virtual bool | configureGui (bool show=true) Q_DECL_OVERRIDE |
| Detect or show the configuration GUI elements for the module. More...
|
|
QString | getClientServerHost () const |
|
int | getClientServerPort () const |
|
int | getServerPort () const |
|
SyncClient::SyncOptions | getClientSyncOptions () const |
|
QStringList | getStelPropFilter () const |
|
ClientBehavior | getConnectionLostBehavior () const |
|
ClientBehavior | getQuitBehavior () const |
|
SyncState | getState () const |
|
virtual void | deinit () |
| Called before the module will be delete, and before the openGL context is suppressed. More...
|
|
virtual void | draw (StelCore *core) |
| Execute all the drawing functions for this module. More...
|
|
virtual QString | getModuleVersion () const |
| Get the version of the module, default is stellarium main version.
|
|
virtual QString | getAuthorName () const |
| Get the name of the module author.
|
|
virtual QString | getAuthorEmail () const |
| Get the email adress of the module author.
|
|
virtual void | handleMouseClicks (class QMouseEvent *) |
| Handle mouse clicks. More...
|
|
virtual void | handleMouseWheel (class QWheelEvent *) |
| Handle mouse wheel. More...
|
|
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
| Handle mouse moves. More...
|
|
virtual void | handleKeys (class QKeyEvent *e) |
| Handle key events. More...
|
|
virtual bool | handlePinch (qreal scale, bool started) |
| Handle pinch gesture events. More...
|
|