Merge branch 'develop' of github.com:OpenSpace/OpenSpace into pr/scenegraph-refactor

This commit is contained in:
Emil Axelsson
2017-03-16 16:35:29 +01:00
62 changed files with 1773 additions and 1059 deletions

View File

@@ -44,6 +44,8 @@ namespace documentation {
* description of the Verifier subclass and what it tests for.
*/
struct Verifier {
virtual ~Verifier() = default;
/**
* This method tests whether the \p key contained in the \p dictionary adheres to
* whatever the concrete Verifer needs to test. The actual testing depends on the

View File

@@ -108,11 +108,10 @@ namespace interaction {
class InteractionMode
{
class InteractionMode {
public:
InteractionMode();
~InteractionMode();
virtual ~InteractionMode();
// Mutators
virtual void setFocusNode(SceneGraphNode* focusNode);

View File

@@ -120,7 +120,7 @@ class ParallelConnection {
*/
static scripting::LuaLibrary luaLibrary();
Status status();
size_t nConnections();
int nConnections();
std::shared_ptr<ghoul::Event<>> connectionEvent();

View File

@@ -38,8 +38,8 @@ namespace ghoul {
namespace openspace {
class RenderData;
class RaycastData;
struct RenderData;
struct RaycastData;
class VolumeRaycaster {
public:

View File

@@ -74,7 +74,7 @@ public:
/**
* Default constructor initializing the AberrationCorrection to Type::None with a
* Drection::Reception
* Direction::Reception
*/
AberrationCorrection() = default;
@@ -461,6 +461,33 @@ public:
AberrationCorrection aberrationCorrection, double ephemerisTime,
double& lightTime) const;
/**
* Returns the \p position of a \p target body relative to an \p observer in a
* specific \p referenceFrame, optionally corrected for \p lightTime (planetary
* aberration) and stellar aberration (\p aberrationCorrection).
* \param target The target body name or the target body's NAIF ID
* \param observer The observing body name or the observing body's NAIF ID
* \param referenceFrame The reference frame of the output position vector
* \param aberrationCorrection The aberration correction used for the position
* calculation
* \param ephemerisTime The time at which the position is to be queried
* \return The position of the \p target relative to the \p observer in the specified
* \p referenceFrame
* \throws SpiceException If the \p target or \p observer do not name a valid
* NAIF object, \p referenceFrame does not name a valid reference frame or if there is
* not sufficient data available to compute the position or neither the target nor the
* observer have coverage.
* \pre \p target must not be empty.
* \pre \p observer must not be empty.
* \pre \p referenceFrame must not be empty.
* \post If an exception is thrown, \p lightTime will not be modified.
* \sa http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpos_c.html
* \sa http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/naif_ids.html
*/
glm::dvec3 targetPosition(const std::string& target,
const std::string& observer, const std::string& referenceFrame,
AberrationCorrection aberrationCorrection, double ephemerisTime) const;
/**
* This method returns the transformation matrix that defines the transformation from
* the reference frame \p from to the reference frame \p to. As both reference frames