Equalizer  2.1.0
Parallel Rendering Framework
eq::WindowSystemIF Class Referenceabstract

The interface for windowing toolkits. More...

#include <windowSystem.h>

+ Collaboration diagram for eq::WindowSystemIF:

Public Member Functions

virtual ~WindowSystemIF ()
 Destroy the window system instance. More...
 

Protected Member Functions

 WindowSystemIF ()
 Create a new window system instance. More...
 
virtual std::string getName () const =0
 
virtual SystemPipecreatePipe (Pipe *pipe)=0
 
virtual MessagePumpcreateMessagePump ()=0
 
virtual SystemWindowcreateWindow (Window *window, const WindowSettings &settings)=0
 
virtual bool setupFont (util::ObjectManager &gl, const void *key, const std::string &name, const uint32_t size) const =0
 Create a set of display lists for the given font. More...
 
virtual void configInit (Node *)
 Perform per-process initialization for a Config. More...
 
virtual void configExit (Node *)
 Perform per-process de-initialization for a Config. More...
 
virtual bool hasMainThreadEvents () const
 

Static Protected Member Functions

static uint32_t _setupLists (util::ObjectManager &gl, const void *key, const int num)
 

Friends

class WindowSystem
 

Detailed Description

The interface for windowing toolkits.

This class is intended to be overwritten by an (anonymous) class with exactly one static instance. The constructor will register this factory instance for use with the WindowSystem frontend. See glx/windowSystem.cpp for an example.

The implementation provides access to operating system dependent functionality needed by Equalizer, and hides these specifics behind interfaces.

Definition at line 39 of file windowSystem.h.

Constructor & Destructor Documentation

virtual eq::WindowSystemIF::~WindowSystemIF ( )
inlinevirtual

Destroy the window system instance.

Version
1.6

Definition at line 43 of file windowSystem.h.

eq::WindowSystemIF::WindowSystemIF ( )
inlineprotected

Create a new window system instance.

Version
1.6

Definition at line 46 of file windowSystem.h.

References createMessagePump(), createPipe(), createWindow(), getName(), and setupFont().

+ Here is the call graph for this function:

Member Function Documentation

virtual void eq::WindowSystemIF::configExit ( Node )
inlineprotectedvirtual

Perform per-process de-initialization for a Config.

Version
1.6

Definition at line 85 of file windowSystem.h.

virtual void eq::WindowSystemIF::configInit ( Node )
inlineprotectedvirtual

Perform per-process initialization for a Config.

Version
1.6

Definition at line 83 of file windowSystem.h.

virtual MessagePump* eq::WindowSystemIF::createMessagePump ( )
protectedpure virtual
Returns
a new event message pump
Version
1.6

Referenced by WindowSystemIF().

+ Here is the caller graph for this function:

virtual SystemPipe* eq::WindowSystemIF::createPipe ( Pipe pipe)
protectedpure virtual
Returns
a new system pipe.
Version
1.6

Referenced by WindowSystemIF().

+ Here is the caller graph for this function:

virtual SystemWindow* eq::WindowSystemIF::createWindow ( Window window,
const WindowSettings settings 
)
protectedpure virtual
Returns
a new system window
Version
1.7.2

Referenced by WindowSystemIF().

+ Here is the caller graph for this function:

virtual std::string eq::WindowSystemIF::getName ( ) const
protectedpure virtual
Returns
the unique name of the window system.
Version
1.6

Referenced by WindowSystemIF().

+ Here is the caller graph for this function:

virtual bool eq::WindowSystemIF::hasMainThreadEvents ( ) const
inlineprotectedvirtual
Returns
true if events have to be dispatched in the main thread.
Version
1.7.4

Definition at line 90 of file windowSystem.h.

virtual bool eq::WindowSystemIF::setupFont ( util::ObjectManager gl,
const void *  key,
const std::string &  name,
const uint32_t  size 
) const
protectedpure virtual

Create a set of display lists for the given font.

The implementation is expected to set up one display list per ASCII character, and store the name of the first list in the given object manager using the given key.

Parameters
glthe object manager for display list allocation.
keythe key for display list allocation.
namethe name of the font, OS-specific.
sizethe font size in points.
Returns
true if the font was created, false otherwise.
Warning
experimental, might not be supported in the future.

Referenced by WindowSystemIF().

+ Here is the caller graph for this function:


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