This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from Astroua/develop
Merge Develop into Master for release 0.5.0
- Loading branch information
Showing
292 changed files
with
14,419 additions
and
4,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
top_srcdir=$$PWD | ||
top_builddir=$$shadowed($$PWD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Hook for adding new image render service. | ||
* | ||
**/ | ||
|
||
#pragma once | ||
|
||
#include "CartaLib/CartaLib.h" | ||
#include "CartaLib/IPlugin.h" | ||
#include "CartaLib/IImageRenderService.h" | ||
#include <vector> | ||
|
||
namespace Carta | ||
{ | ||
namespace Lib | ||
{ | ||
namespace Hooks | ||
{ | ||
class GetImageRenderService : public BaseHook | ||
{ | ||
CARTA_HOOK_BOILER1( GetImageRenderService ); | ||
|
||
public: | ||
|
||
/** | ||
* @brief Result is a render service. | ||
*/ | ||
typedef IImageRenderService::SharedPtr ResultType; | ||
|
||
/** | ||
* @brief No input | ||
*/ | ||
struct Params { }; | ||
|
||
/** | ||
* @brief constructor | ||
* @param pptr pointer to the input parameters | ||
*/ | ||
GetImageRenderService( Params * pptr ) : BaseHook( staticId ), paramsPtr( pptr ) | ||
{ | ||
CARTA_ASSERT( is < Me > () ); | ||
} | ||
|
||
ResultType result; | ||
Params * paramsPtr; | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Defines a hook for obtaining an initial file list. | ||
* | ||
**/ | ||
|
||
#pragma once | ||
|
||
#include "CartaLib/CartaLib.h" | ||
#include "CartaLib/IPlugin.h" | ||
#include <vector> | ||
|
||
namespace Carta | ||
{ | ||
namespace Lib | ||
{ | ||
namespace Hooks | ||
{ | ||
/// \brief Hook for loading a plugin of an unknown type | ||
/// | ||
class GetInitialFileList : public BaseHook | ||
{ | ||
CARTA_HOOK_BOILER1( GetInitialFileList ); | ||
|
||
public: | ||
|
||
/// result of the hook is a list of filenames | ||
typedef QStringList ResultType; | ||
|
||
/// input parameters are: | ||
/// map of all url parameters | ||
struct Params { | ||
Params( const std::map< QString, QString> & p_urlParams ) | ||
{ | ||
urlParams = p_urlParams; | ||
} | ||
|
||
std::map< QString, QString> urlParams; | ||
}; | ||
|
||
/// standard constructor (could be probably a macro) | ||
GetInitialFileList( Params * pptr ) : BaseHook( staticId ), paramsPtr( pptr ) | ||
{ | ||
// force instantiation of templates | ||
CARTA_ASSERT( is < Me > () ); | ||
} | ||
|
||
ResultType result; | ||
Params * paramsPtr = nullptr; | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Defines a hook that is executed once, when core is starting up. | ||
* | ||
**/ | ||
|
||
#pragma once | ||
|
||
#include "CartaLib/CartaLib.h" | ||
#include "CartaLib/IPlugin.h" | ||
#include <vector> | ||
|
||
namespace Carta | ||
{ | ||
namespace Lib | ||
{ | ||
namespace Hooks | ||
{ | ||
/// \brief Hook for loading a plugin of an unknown type | ||
/// | ||
class Initialize : public BaseHook | ||
{ | ||
CARTA_HOOK_BOILER1( Initialize ); | ||
|
||
public: | ||
|
||
typedef FakeVoid ResultType; | ||
typedef struct { } Params; | ||
|
||
/// standard constructor (could be probably a macro) | ||
Initialize( Params * pptr ) : BaseHook( staticId ), paramsPtr( pptr ) | ||
{ | ||
// force instantiation of templates | ||
CARTA_ASSERT( is < Me > () ); | ||
} | ||
|
||
ResultType result; | ||
Params * paramsPtr = nullptr; | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.