mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Created classes for PlanetGeometry
Added SimpleSphereGeometry Created infrastructure for added other geometries
This commit is contained in:
@@ -55,9 +55,19 @@ namespace renderable {
|
||||
const std::string keyType = "Type";
|
||||
} // namespace renderable
|
||||
|
||||
namespace renderableplanet {
|
||||
const std::string keyGeometry = "Geometry";
|
||||
} // namespace renderableplanet
|
||||
|
||||
namespace planetgeometry {
|
||||
const std::string keyType = "Type";
|
||||
} // namespace planetgeometry
|
||||
|
||||
|
||||
|
||||
namespace ephemeris {
|
||||
const std::string keyType = "Type";
|
||||
}
|
||||
} // namespace ephemeris
|
||||
|
||||
} // namespace constants
|
||||
} // namespace openspace
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
#include <ghoul/misc/templatefactory.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
|
||||
#include <openspace/scenegraph/ephemeris.h>
|
||||
#include <openspace/rendering/renderable.h>
|
||||
|
||||
namespace openspace {
|
||||
|
||||
class FactoryManager {
|
||||
@@ -54,7 +51,7 @@ public:
|
||||
void addFactory(ghoul::TemplateFactoryBase* factory);
|
||||
|
||||
template <class T>
|
||||
ghoul::TemplateFactory<T>* factory();
|
||||
ghoul::TemplateFactory<T>* factory() const;
|
||||
|
||||
private:
|
||||
FactoryManager();
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
namespace openspace {
|
||||
|
||||
template <class T>
|
||||
ghoul::TemplateFactory<T>* FactoryManager::factory()
|
||||
ghoul::TemplateFactory<T>* FactoryManager::factory() const
|
||||
{
|
||||
for (ghoul::TemplateFactoryBase* factory : _factories) {
|
||||
if (factory->baseClassType() == typeid(T))
|
||||
|
||||
Reference in New Issue
Block a user