Move OpenSpaceEngine::isMaster method into WindowWrapper class

This commit is contained in:
Alexander Bock
2017-02-25 11:29:28 -05:00
parent 4f64cbb141
commit 6c4efc4eec
10 changed files with 99 additions and 108 deletions

View File

@@ -73,8 +73,6 @@ public:
static bool isInitialized();
static OpenSpaceEngine& ref();
bool isMaster();
void setMaster(bool master);
double runTime();
void setRunTime(double t);
@@ -249,7 +247,6 @@ private:
} _moduleCallbacks;
bool _isMaster;
double _runTime;
// Whether the application is currently in shutdown mode (i.e. counting down the timer

View File

@@ -55,6 +55,7 @@ public:
bool isRegularRendering() const override;
bool hasGuiWindow() const override;
bool isGuiWindow() const override;
bool isMaster() const override;
bool isUsingSwapGroups() const override;
bool isSwapGroupMaster() const override;

View File

@@ -175,6 +175,13 @@ public:
* \return Whether the current rendering window is GUI-only
*/
virtual bool isGuiWindow() const;
/**
* Returns <code>true</code> if this application is the master for a clustered
* environment.
* \return Whether this applicaiton is the master for a clustered environment.
*/
virtual bool isMaster() const;
/**
* Returns <code>true</code> if the current rendering window is using swap groups.