mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-03 02:48:32 -06:00
Adapt to typesafe ghoul::Boolean parameters
This commit is contained in:
@@ -36,7 +36,7 @@ namespace ghoul { class Dictionary; }
|
||||
|
||||
namespace openspace::documentation {
|
||||
|
||||
using Optional = ghoul::Boolean;
|
||||
BooleanType(Optional);
|
||||
|
||||
/**
|
||||
* The TestResult structure returns the information from the #testSpecification method. It
|
||||
|
||||
@@ -42,7 +42,7 @@ class Syncable;
|
||||
*/
|
||||
class SyncEngine {
|
||||
public:
|
||||
using IsMaster = ghoul::Boolean;
|
||||
BooleanType(IsMaster);
|
||||
|
||||
/**
|
||||
* Creates a new SyncEngine which a buffer size of \p syncBufferSize
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace openspace::interaction {
|
||||
|
||||
class KeyBindingManager : public DocumentationGenerator {
|
||||
public:
|
||||
using IsLocalBind = ghoul::Boolean;
|
||||
using IsSynchronized = ghoul::Boolean;
|
||||
BooleanType(IsLocalBind);
|
||||
BooleanType(IsSynchronized);
|
||||
|
||||
struct KeyInformation {
|
||||
std::string command;
|
||||
|
||||
@@ -33,7 +33,8 @@ class Deferredcaster;
|
||||
|
||||
class DeferredcasterListener {
|
||||
public:
|
||||
using isAttached = ghoul::Boolean;
|
||||
BooleanType(isAttached);
|
||||
|
||||
virtual ~DeferredcasterListener() = default;
|
||||
|
||||
virtual void deferredcastersChanged(Deferredcaster& deferredcaster,
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
|
||||
virtual void raycastersChanged(VolumeRaycaster& raycaster, bool attached) override;
|
||||
virtual void deferredcastersChanged(Deferredcaster& deferredcaster,
|
||||
ghoul::Boolean isAttached) override;
|
||||
isAttached isAttached) override;
|
||||
|
||||
private:
|
||||
std::map<VolumeRaycaster*, RaycastData> _raycastData;
|
||||
|
||||
@@ -49,10 +49,10 @@ namespace openspace {
|
||||
|
||||
class LoadingScreen {
|
||||
public:
|
||||
using ShowMessage = ghoul::Boolean;
|
||||
using ShowNodeNames = ghoul::Boolean;
|
||||
using ShowProgressbar = ghoul::Boolean;
|
||||
using CatastrophicError = ghoul::Boolean;
|
||||
BooleanType(ShowMessage);
|
||||
BooleanType(ShowNodeNames);
|
||||
BooleanType(ShowProgressbar);
|
||||
BooleanType(CatastrophicError);
|
||||
|
||||
LoadingScreen(ShowMessage showMessage, ShowNodeNames showNodeNames,
|
||||
ShowProgressbar showProgressbar);
|
||||
|
||||
@@ -54,7 +54,7 @@ class Scene
|
||||
: public properties::PropertyOwner
|
||||
{
|
||||
public:
|
||||
using UpdateDependencies = ghoul::Boolean;
|
||||
BooleanType(UpdateDependencies);
|
||||
|
||||
struct InvalidSceneError : ghoul::RuntimeError {
|
||||
/**
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
GLInitialized
|
||||
};
|
||||
|
||||
using UpdateScene = ghoul::Boolean;
|
||||
BooleanType(UpdateScene);
|
||||
|
||||
struct PerformanceRecord {
|
||||
long long renderTime; // time in ns
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace openspace::scripting {
|
||||
*/
|
||||
class ScriptEngine : public Syncable, public DocumentationGenerator {
|
||||
public:
|
||||
using RemoteScripting = ghoul::Boolean;
|
||||
BooleanType(RemoteScripting);
|
||||
|
||||
ScriptEngine();
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ private:
|
||||
|
||||
class HttpFileDownload : public virtual HttpDownload {
|
||||
public:
|
||||
using Overwrite = ghoul::Boolean;
|
||||
BooleanType(Overwrite);
|
||||
|
||||
HttpFileDownload() = default;
|
||||
HttpFileDownload(std::string destination, Overwrite = Overwrite::No);
|
||||
|
||||
@@ -45,7 +45,7 @@ class SpiceManager : public ghoul::Singleton<SpiceManager> {
|
||||
friend class ghoul::Singleton<SpiceManager>;
|
||||
public:
|
||||
using TransformMatrix = std::array<double, 36>;
|
||||
using UseException = ghoul::Boolean;
|
||||
BooleanType(UseException);
|
||||
using KernelHandle = unsigned int;
|
||||
|
||||
struct SpiceException : public ghoul::RuntimeError {
|
||||
|
||||
Reference in New Issue
Block a user