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

Abstract windowing environment session. More...

#include <mitsuba/hw/session.h>

+ Inheritance diagram for mitsuba::Session:

Public Member Functions

virtual void init ()
 Initialize the session. More...
 
virtual void shutdown ()
 Shut the session down. More...
 
virtual void processEvents ()=0
 Process all events and call event callbacks. More...
 
virtual void processEventsBlocking (bool &stop)=0
 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 Member Functions

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...
 

Static Public Attributes

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

Protected Member Functions

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

bool m_initialized
 
std::vector< Device * > m_devices
 

Friends

class Device
 

Detailed Description

Abstract windowing environment session.

Constructor & Destructor Documentation

virtual mitsuba::Session::~Session ( )
inlineprotectedvirtual

Virtual destructor.

mitsuba::Session::Session ( )
protected

Create a new session.

Member Function Documentation

static Session* mitsuba::Session::create ( )
static

Create a new session using the appropriate implementation.

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

Retrieve this object's class.

Reimplemented from Object.

Reimplemented in mitsuba::X11Session, mitsuba::WGLSession, and mitsuba::NSGLSession.

virtual void mitsuba::Session::init ( )
virtual

Initialize the session.

Reimplemented in mitsuba::X11Session, mitsuba::WGLSession, and mitsuba::NSGLSession.

virtual void mitsuba::Session::processEvents ( )
pure virtual

Process all events and call event callbacks.

Implemented in mitsuba::X11Session, mitsuba::WGLSession, and mitsuba::NSGLSession.

virtual void mitsuba::Session::processEventsBlocking ( bool stop)
pure 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.

Implemented in mitsuba::X11Session, mitsuba::WGLSession, and mitsuba::NSGLSession.

virtual void mitsuba::Session::shutdown ( )
virtual

Shut the session down.

Reimplemented in mitsuba::X11Session, mitsuba::WGLSession, and mitsuba::NSGLSession.

Friends And Related Function Documentation

friend class Device
friend

Member Data Documentation

std::vector<Device *> mitsuba::Session::m_devices
protected
bool mitsuba::Session::m_initialized
protected
Class* mitsuba::Session::m_theClass
static

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