Skip to content
Snippets Groups Projects
Select Git revision
  • 288bd0e3f65c7a5a8ebf44eb1f3af996317df35a
  • master default
  • mingw_gcc44
  • release_ABP1_012
  • release_ABP1_008
  • release_ABP1_006
  • release_ABP1_007
  • release_ABP1_005
  • release_ABP1_004
  • release_ABP1_003
  • pre_release_0.15
  • release_ABP1_001
  • release_ABP1_002
  • pre_release_0.13
  • pre_release_0.14
  • pre_release_0.11
  • pre_release_0.12
  • pre_release_0.10
  • pre_release_0.09
  • pre_release_0.08
20 results

GraphicsEngineFactory.h

Blame
  • Forked from einsteinathome / graphicsframework
    Source project has a limited visibility.
    GraphicsEngineFactory.h 1.26 KiB
    #ifndef GRAPHICSENGINEFACTORY_H_
    #define GRAPHICSENGINEFACTORY_H_
    
    #include "AbstractGraphicsEngine.h"
    #include "StarsphereS5R3.h"
    
    /**
     * \brief Factory to create graphics engines
     *
     * \author Oliver Bock\n
     * Max-Planck-Institute for Gravitational Physics\n
     * Hannover, Germany
     */
    class GraphicsEngineFactory
    {
    public:
    	/// Destructor
    	virtual ~GraphicsEngineFactory();
    	
    	/// Identifiers of supported graphics engines
    	enum Engines {
    		Starsphere = 1
    	};
    	
    	/// Identifiers of supported science applications
    	enum Applications {
    		EinsteinS5R3 = 53
    	};
    	
    	/**
    	 * \brief Instaniates a new graphics engine
    	 * 
    	 * Use this method to create a new grahics engine instance. However, please make
    	 * that you use only sensible combinations of \c engine and \c application (you
    	 * should know them).
    	 * 
    	 * \param engine The identifier of the requested graphics engine
    	 * \param application The identifier of the requested science application support
    	 * 
    	 * \return The pointer to the new engine instance
    	 * 
    	 * \see Engines
    	 * \see Applications
    	 */
    	static AbstractGraphicsEngine * createInstance(Engines engine, Applications application);
    	
    private:
    	/// Contructor (private since this a purely static factory)
    	GraphicsEngineFactory();
    };
    
    #endif /*GRAPHICSENGINEFACTORY_H_*/