Project
Loading...
Searching...
No Matches
o2::gpu::GPUDisplayFrontendGlut Class Reference

#include <GPUDisplayFrontendGlut.h>

Inherits o2::gpu::GPUDisplayFrontend.

Public Member Functions

 GPUDisplayFrontendGlut ()
 
 ~GPUDisplayFrontendGlut () override=default
 
void StopDisplayA () override
 
void SwitchFullscreen (bool set) override
 
void ToggleMaximized (bool set) override
 
void SetVSync (bool enable) override
 
bool canSetVSync () override
 
- Public Member Functions inherited from o2::gpu::GPUDisplayFrontend
 GPUDisplayFrontend ()
 
 ~GPUDisplayFrontend () override
 
int32_t StartDisplay ()
 
void StopDisplay () override
 
GPUDisplayBackend * backend ()
 
virtual void getSize (int32_t &width, int32_t &height)
 
virtual float getRefreshRate ()
 
virtual float getDisplayScale () const
 
virtual int32_t getVulkanSurface (void *instance, void *surface)
 
virtual uint32_t getReqVulkanExtensions (const char **&p)
 
int32_t getDisplayControl () const override
 
void setDisplayControl (int32_t v) override
 
void sendExternalGUIKey (int32_t v, uint32_t translationMode=0, uint64_t extendedKey=0) override
 
frontendTypes frontendType () const
 
const char * frontendName () const override
 
int32_t startGUI ()
 
void stopGUI ()
 
bool isGUIRunning ()
 
- Public Member Functions inherited from o2::gpu::GPUDisplayFrontendInterface
virtual ~GPUDisplayFrontendInterface ()
 

Additional Inherited Members

- Public Types inherited from o2::gpu::GPUDisplayFrontend
enum  frontendTypes {
  TYPE_INVALID = -1 , TYPE_WIN32 = 0 , TYPE_X11 = 1 , TYPE_GLUT = 2 ,
  TYPE_GLFW = 3 , TYPE_WAYLAND = 4 , TYPE_NONE = 5
}
 
- Static Public Member Functions inherited from o2::gpu::GPUDisplayFrontend
static GPUDisplayFrontend * getFrontend (const char *type)
 
- Static Public Member Functions inherited from o2::gpu::GPUDisplayFrontendInterface
static GPUDisplayFrontendInterface * getFrontend (const char *type)
 
- Static Public Attributes inherited from o2::gpu::GPUDisplayFrontend
static constexpr int32_t GL_MIN_VERSION_MAJOR = 4
 
static constexpr int32_t GL_MIN_VERSION_MINOR = 6
 
- Protected Member Functions inherited from o2::gpu::GPUDisplayFrontend
void FrontendThreadWrapper ()
 
void waitForFPSLimit ()
 
void signalConfigUpdate ()
 
int32_t HandleUpdatesAndDrawGLScene (bool suspended=false)
 
void HandleKey (uint8_t key)
 
bool consoleShown () const
 
bool keyMapDown (uint32_t id) const
 
void HandleExternalGUISignals ()
 
bool processKeyLambda (uint32_t key)
 
uint32_t shiftedKey (uint32_t key) const
 
void showConfigInfo (uint32_t index)
 
void ResizeScene (int32_t width, int32_t height)
 
int32_t InitDisplay (bool initFailure=false)
 
void ExitDisplay ()
 
int32_t & drawTextFontSize ()
 
bool vsyncEnabled () const
 
void setWindowState (bool fullScreen, bool maximized)
 
void focusLost ()
 
void applyInitialWindowState ()
 
void requestFullScreen (bool set)
 
void requestMaximized (bool set)
 
- Protected Member Functions inherited from o2::gpu::GPUDisplayFrontendInterface
 GPUDisplayFrontendInterface ()
 
- Protected Attributes inherited from o2::gpu::GPUDisplayFrontend
std::mutex mExternalGUIKeyMutex
 
std::vector< int32_t > mExternalGUIKeys
 
std::mutex mConfigUpdateMutex
 
std::condition_variable mConfigUpdateCV
 
bool mConfigUpdatePending = false
 
std::mutex mExitStateMutex
 
std::condition_variable mDisplayStoppedCV
 
std::condition_variable mInitCV
 
std::thread mFrontendThread
 
bool mStartDisplayDone = false
 
bool mStartupScriptDone = false
 
std::array< uint8_t, KEY_MAP_MAX > mKeyDownMap = {}
 
bool mMouseDn = false
 
bool mMouseDnR = false
 
bool mMouseDnM = false
 
float mMouseDnX
 
float mMouseDnY
 
float mMouseMvX
 
float mMouseMvY
 
int32_t mMouseWheel = 0
 
bool mKeys [256] = {false}
 
int32_t mDisplayHeight = INIT_HEIGHT
 
int32_t mDisplayWidth = INIT_WIDTH
 
std::chrono::steady_clock::time_point mNextFrameTime
 
GPUDisplay * mDisplay = nullptr
 
GPUDisplayBackend * mBackend = nullptr
 
frontendTypes mFrontendType = TYPE_INVALID
 
const char * mFrontendName = nullptr
 
std::atomic< bool > mDisplayRunning = false
 
std::unique_ptr< GPUDisplayGUIChannel > mGUIChannel
 
std::unique_ptr< GPUDisplayGUIWrapper > mGUI
 
- Static Protected Attributes inherited from o2::gpu::GPUDisplayFrontend
static constexpr int32_t INIT_WIDTH = 1024
 
static constexpr int32_t INIT_HEIGHT = 768
 
static constexpr int32_t MIN_WIDTH = 200
 
static constexpr int32_t MIN_HEIGHT = 150
 
static constexpr const char * DISPLAY_WINDOW_NAME = "GPU CA Standalone Event Display"
 
static constexpr uint32_t N_SPECIAL_KEYS = 32
 
static constexpr uint32_t SPECIAL_KEYS_SHIFTED = 255
 
static constexpr uint32_t N_TOTAL_KEYS = 256 + N_SPECIAL_KEYS
 

Detailed Description

Definition at line 22 of file GPUDisplayFrontendGlut.h.

Constructor & Destructor Documentation

◆ GPUDisplayFrontendGlut()

GPUDisplayFrontendGlut::GPUDisplayFrontendGlut ( )

Definition at line 34 of file GPUDisplayFrontendGlut.cxx.

◆ ~GPUDisplayFrontendGlut()

o2::gpu::GPUDisplayFrontendGlut::~GPUDisplayFrontendGlut ( )
overridedefault

Member Function Documentation

◆ canSetVSync()

bool GPUDisplayFrontendGlut::canSetVSync ( )
overridevirtual

Reimplemented from o2::gpu::GPUDisplayFrontend.

Definition at line 309 of file GPUDisplayFrontendGlut.cxx.

◆ SetVSync()

void GPUDisplayFrontendGlut::SetVSync ( bool  enable)
overridevirtual

Implements o2::gpu::GPUDisplayFrontend.

Definition at line 300 of file GPUDisplayFrontendGlut.cxx.

◆ StopDisplayA()

void GPUDisplayFrontendGlut::StopDisplayA ( )
overridevirtual

Reimplemented from o2::gpu::GPUDisplayFrontend.

Definition at line 264 of file GPUDisplayFrontendGlut.cxx.

◆ SwitchFullscreen()

void GPUDisplayFrontendGlut::SwitchFullscreen ( bool  set)
overridevirtual

Implements o2::gpu::GPUDisplayFrontend.

Definition at line 269 of file GPUDisplayFrontendGlut.cxx.

◆ ToggleMaximized()

void GPUDisplayFrontendGlut::ToggleMaximized ( bool  set)
overridevirtual

Implements o2::gpu::GPUDisplayFrontend.

Definition at line 279 of file GPUDisplayFrontendGlut.cxx.


The documentation for this class was generated from the following files: