Skip to content
Snippets Groups Projects
Select Git revision
  • 9b71a236415fe5a92c5f6c8b05b56e65b08be7bf
  • stable default protected
  • MA_Pape_2018
  • MA_2018_Lopatin
  • feature/mesh_viewer
  • feature/#468_access_isosurface_scalar
  • feature/#459_default_primitives
  • master protected
  • feature/#470_Create_a_color_lookup_table
  • feature/#473_resize_companion_window
  • feature/#462_do_not_use_arb_extensions
  • feature/#495_Provide_data_for_larger_isosurfaces
  • feature/#323_default_image
  • feature/#480_Create_a_smaller_test_mesh_for_combustion_demo
  • feature/#236_Get_Integration_tests_running_on_CI
  • feature/#447_Copy_standard_assets_to_build_folder
  • 447-copy-standard-assets-to-build-folder-and-remove-resource-path
  • feature/#445_mesh_render_settings_component
  • feature/#251_Make_sure_tests_cpp_is_compiled_once
  • feature/#455_Remove_navigation_and_improve_interaction_for_combustion_demo
  • feature/446_strange_txt_files
  • v18.06.0
  • v18.05.0
  • #251_bad
  • #251_good
  • v18.03.0
  • v18.02.0
  • v18.01.0
  • v17.12.0
  • v17.11.0
  • v17.10.0
  • v17.09.0
  • v17.07.0
33 results

rotation_helper.hpp

Blame
  • rotation_helper.hpp 2.45 KiB
    #pragma once
    
    #if PLATFORM_WINDOWS || PLATFORM_LINUX
    #include "IDisplayCluster.h"
    #endif
    
    #include "Modules/ModuleManager.h"
    
    #include "ILogStream.h"
    
    class IUniversalLogging : public IModuleInterface
    {
    public:
      /**
      * Singleton-like access to this module's interface. This should not be necessary as the intended use is through the UniLog macro
      *
      * @return Returns singleton instance, loading the module on demand if needed.
      */
      static inline IUniversalLogging& Get()
      {
        return FModuleManager::LoadModuleChecked< IUniversalLogging >("UniversalLogging");
      }
    
      /**
      * Checks to see if this module is loaded and ready.  It is only valid to call Get() if IsAvailable() returns true.
      *
      * @return True if the module is loaded and ready to use.
      */
      static inline bool IsAvailable()
      {
        return FModuleManager::Get().IsModuleLoaded("UniversalLogging");
      }
    
      /**
      * Creates a new log stream with the name UniversalLogging_<StreamName>.log in <projectdir>/Saved/Logs.
      *
      * @return the newly created log stream object.
      */
      virtual ILogStream* NewLogStream(const FString StreamName) = 0;
    
      /**
      * Creates a new log stream with the name <filename> in <projectdir>/<filepath>.
      *
      * @return the newly created log stream object.
      */
      virtual ILogStream* NewLogStream(const FString StreamName, const FString Filepath, const FString Filename,
                                       bool bPer_Session = false, const bool bLogOnMaster = true,
                                       const bool bLogOnSlaves = false) = 0;
    
      /**
      * Closes a specific named log stream.
      * This is done by default when a session stops, but can also be done manually if needed
      */
      virtual void CloseLogStream(const FString StreamName) = 0;
    
      /**
      * Getter for log streams.
      *
      * @return the requested log stream or nullptr if it does not exist.
      */
      virtual ILogStream* GetLogStream(const FString StreamName) = 0;
    
      /**
      * Getter for the default log streams (convenience). Equivalent to GetLogStream("").
      *
      * @return the default log stream.
      */
      virtual ILogStream* GetDefaultLogStream() = 0;
    
      /**
      float angle_horizontal_ = 0;
      float angle_vertical_ = 0;
    
      phx::Entity* LoadAndInsertMesh(phx::Scene* scene, std::string file,
                                     std::string name);
    };
    
    #endif  // OPTICAL_BENCH_ROTATION_HELPER_HPP_