Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::X11Session Class Reference

X Window System (X11R6) session. More...

#include <mitsuba/hw/x11session.h>

+ Inheritance diagram for mitsuba::X11Session:

Public Member Functions

 X11Session ()
 Create a new session. More...
 
void setDisplayName (const std::string &displayname)
 Set the display name (eg. "localhost:0.0") More...
 
void init ()
 Initialize the session. More...
 
void shutdown ()
 Shut the session down. More...
 
void processEvents ()
 Process all events and call event callbacks. More...
 
void processEventsBlocking (bool &stop)
 Process all events and call event callbacks. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 
virtual std::string toString () const
 Return a human-readable string representation of the object's contents. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from mitsuba::Session
static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Member Functions

virtual ~X11Session ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from mitsuba::Session
virtual ~Session ()
 Virtual destructor. More...
 
 Session ()
 Create a new session. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Protected Attributes

std::string m_displayName
 
Display * m_display
 
Window m_root
 
int m_screen
 
bool m_hasVidMode
 
bool m_hasGLX
 
- Protected Attributes inherited from mitsuba::Session
bool m_initialized
 
std::vector< Device * > m_devices
 

Friends

class X11Device
 
class GLXDevice
 
class GLXRenderer
 

Additional Inherited Members

- Static Public Member Functions inherited from mitsuba::Session
static Sessioncreate ()
 Create a new session using the appropriate implementation. More...
 
- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 

Detailed Description

X Window System (X11R6) session.

Constructor & Destructor Documentation

mitsuba::X11Session::X11Session ( )

Create a new session.

virtual mitsuba::X11Session::~X11Session ( )
protectedvirtual

Virtual destructor.

Member Function Documentation

virtual const Class* mitsuba::X11Session::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from mitsuba::Session.

void mitsuba::X11Session::init ( )
virtual

Initialize the session.

Reimplemented from mitsuba::Session.

void mitsuba::X11Session::processEvents ( )
virtual

Process all events and call event callbacks.

Implements mitsuba::Session.

void mitsuba::X11Session::processEventsBlocking ( bool stop)
virtual

Process all events and call event callbacks.

This function will run until the stop parameter is set to true from within an event callback.

Implements mitsuba::Session.

void mitsuba::X11Session::setDisplayName ( const std::string &  displayname)

Set the display name (eg. "localhost:0.0")

void mitsuba::X11Session::shutdown ( )
virtual

Shut the session down.

Reimplemented from mitsuba::Session.

Friends And Related Function Documentation

friend class GLXDevice
friend
friend class GLXRenderer
friend
friend class X11Device
friend

Member Data Documentation

Display* mitsuba::X11Session::m_display
protected
std::string mitsuba::X11Session::m_displayName
protected
bool mitsuba::X11Session::m_hasGLX
protected
bool mitsuba::X11Session::m_hasVidMode
protected
Window mitsuba::X11Session::m_root
protected
int mitsuba::X11Session::m_screen
protected
Class* mitsuba::X11Session::m_theClass
static

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