Files
OpenSpace/include/openspace/util/spice.h
Jonas Strandstedt 89eeae62d0 Restructuring for OpenSpace tests
- Moved all OpenSpace headers to separate include directory
- Added OpenSpaceTests binary with OPENSPACE_HAVE_TESTS define
- Added CMake setting of BASE_DIR
- Added OpenSpace initial tests for SceneGraph and SceneGraphNodes
- Added OpenSpace initial tests for psc and pss
- Restructured OpenSpace so no GL functions are called in constructors
to make the classes testable

- Todo: Make the base dir possible to set through command line argument
and configuration file
2014-03-19 14:57:10 -04:00

42 lines
832 B
C++

#ifndef SPICE_H
#define SPICE_H
// std includes
#include <string>
namespace openspace
{
class Spice {
public:
virtual ~Spice();
static void init();
static void deinit();
static Spice& ref();
static bool isInitialized();
void loadDefaultKernels();
bool loadKernel(const std::string &path);
void bod_NameToInt(const std::string &name, int *id, int *success);
bool getRadii(const std::string & name, double radii[3], int *n);
bool spk_getPosition(const std::string &target, const std::string &origin, double state[3]);
void spk_getPosition(int target, int origin, double state[3]);
bool spk_getOrientation(const std::string &target, double state[3][3]);
private:
static Spice* this_;
Spice(void);
Spice(const Spice& src);
Spice& operator=(const Spice& rhs);
};
} // namespace openspace
#endif