Equalizer  1.10.1
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eq::WindowSystemIF Class Referenceabstract

The interface for windowing toolkits. More...

#include <windowSystem.h>

+ Inheritance diagram for eq::WindowSystemIF:
+ Collaboration diagram for eq::WindowSystemIF:

Public Member Functions

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

Protected Member Functions

EQ_API 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 40 of file windowSystem.h.

Constructor & Destructor Documentation

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

Destroy the window system instance.

Version
1.6

Definition at line 44 of file windowSystem.h.

EQ_API eq::WindowSystemIF::WindowSystemIF ( )
protected

Create a new window system instance.

Version
1.6

Member Function Documentation

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

Perform per-process de-initialization for a Config.

Version
1.6

Definition at line 89 of file windowSystem.h.

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

Perform per-process initialization for a Config.

Version
1.6

Definition at line 86 of file windowSystem.h.

virtual MessagePump* eq::WindowSystemIF::createMessagePump ( )
protectedpure virtual
Returns
a new event message pump
Version
1.6
virtual SystemPipe* eq::WindowSystemIF::createPipe ( Pipe pipe)
protectedpure virtual
Returns
a new system pipe.
Version
1.6
virtual SystemWindow* eq::WindowSystemIF::createWindow ( Window window,
const WindowSettings settings 
)
protectedpure virtual
Returns
a new system window
Version
1.7.2
virtual std::string eq::WindowSystemIF::getName ( ) const
protectedpure virtual
Returns
the unique name of the window system.
Version
1.6
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 95 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.

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