Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgGLUT::Window Class Reference

A basic GLUTWindow base class which provides a just a basic window. More...

Inheritance diagram for osgGLUT::Window:

Inheritance graph
[legend]
List of all members.

Public Methods

 Window ()
virtual ~Window ()
void setWindowOrigin (int x, int y)
void setWindowSize (int width, int height)
void setWindowTitle (const std::string &title)
void setDisplayMode (unsigned int displayMode)
virtual bool open ()
virtual bool run ()
virtual void display ()

Protected Methods

virtual void clear ()
virtual void reshape (GLint w, GLint h)
virtual void visibility (int state)
virtual void mouseMotion (int x, int y)
virtual void mousePassiveMotion (int x, int y)
virtual void mouse (int button, int state, int x, int y)
virtual void keyboard (unsigned char key, int x, int y)
virtual void special (int key, int x, int y)
virtual void spaceballMotion (int x, int y, int z)
virtual void spaceballRotate (int x, int y, int z)
virtual void spaceballButton (int button, int state)
void check_if_exit ()

Static Protected Methods

void displayCB ()
void reshapeCB (int w, int h)
void visibilityCB (int state)
void mouseMotionCB (int x, int y)
void mousePassiveMotionCB (int x, int y)
void mouseCB (int button, int state, int x, int y)
void keyboardCB (unsigned char key, int x, int y)
void specialCB (int key, int x, int y)
void spaceballMotionCB (int x, int y, int z)
void spaceballRotateCB (int x, int y, int z)
void spaceballButtonCB (int button, int state)

Protected Attributes

std::string _title
int _wx
int _wy
int _ww
int _wh
unsigned int _displayMode
int _is_open
int _mx
int _my
int _mbutton
bool _fullscreen
int _saved_wx
int _saved_wy
int _saved_ww
int _saved_wh
bool _exit

Static Protected Attributes

Window * s_theWindow

Detailed Description

A basic GLUTWindow base class which provides a just a basic window.


Constructor & Destructor Documentation

osgGLUT::Window::Window  
 

virtual osgGLUT::Window::~Window   [virtual]
 


Member Function Documentation

void osgGLUT::Window::check_if_exit   [protected]
 

virtual void osgGLUT::Window::clear   [protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

virtual void osgGLUT::Window::display   [virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::displayCB   [static, protected]
 

virtual void osgGLUT::Window::keyboard unsigned char    key,
int    x,
int    y
[protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::keyboardCB unsigned char    key,
int    x,
int    y
[static, protected]
 

virtual void osgGLUT::Window::mouse int    button,
int    state,
int    x,
int    y
[protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::mouseCB int    button,
int    state,
int    x,
int    y
[static, protected]
 

virtual void osgGLUT::Window::mouseMotion int    x,
int    y
[protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::mouseMotionCB int    x,
int    y
[static, protected]
 

virtual void osgGLUT::Window::mousePassiveMotion int    x,
int    y
[protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::mousePassiveMotionCB int    x,
int    y
[static, protected]
 

virtual bool osgGLUT::Window::open   [virtual]
 

Reimplemented in osgGLUT::Viewer.

virtual void osgGLUT::Window::reshape GLint    w,
GLint    h
[protected, virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::reshapeCB int    w,
int    h
[static, protected]
 

virtual bool osgGLUT::Window::run   [virtual]
 

Reimplemented in osgGLUT::Viewer.

void osgGLUT::Window::setDisplayMode unsigned int    displayMode [inline]
 

void osgGLUT::Window::setWindowOrigin int    x,
int    y
[inline]
 

void osgGLUT::Window::setWindowSize int    width,
int    height
[inline]
 

void osgGLUT::Window::setWindowTitle const std::string &    title [inline]
 

virtual void osgGLUT::Window::spaceballButton int    button,
int    state
[protected, virtual]
 

void osgGLUT::Window::spaceballButtonCB int    button,
int    state
[static, protected]
 

virtual void osgGLUT::Window::spaceballMotion int    x,
int    y,
int    z
[protected, virtual]
 

void osgGLUT::Window::spaceballMotionCB int    x,
int    y,
int    z
[static, protected]
 

virtual void osgGLUT::Window::spaceballRotate int    x,
int    y,
int    z
[protected, virtual]
 

void osgGLUT::Window::spaceballRotateCB int    x,
int    y,
int    z
[static, protected]
 

virtual void osgGLUT::Window::special int    key,
int    x,
int    y
[protected, virtual]
 

void osgGLUT::Window::specialCB int    key,
int    x,
int    y
[static, protected]
 

virtual void osgGLUT::Window::visibility int    state [protected, virtual]
 

void osgGLUT::Window::visibilityCB int    state [static, protected]
 


Member Data Documentation

unsigned int osgGLUT::Window::_displayMode [protected]
 

bool osgGLUT::Window::_exit [protected]
 

bool osgGLUT::Window::_fullscreen [protected]
 

int osgGLUT::Window::_is_open [protected]
 

int osgGLUT::Window::_mbutton [protected]
 

int osgGLUT::Window::_mx [protected]
 

int osgGLUT::Window::_my [protected]
 

int osgGLUT::Window::_saved_wh [protected]
 

int osgGLUT::Window::_saved_ww [protected]
 

int osgGLUT::Window::_saved_wx [protected]
 

int osgGLUT::Window::_saved_wy [protected]
 

std::string osgGLUT::Window::_title [protected]
 

int osgGLUT::Window::_wh [protected]
 

int osgGLUT::Window::_ww [protected]
 

int osgGLUT::Window::_wx [protected]
 

int osgGLUT::Window::_wy [protected]
 

Window* osgGLUT::Window::s_theWindow [static, protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:50 2002 for the Open Scene Graph by doxygen 1.2.16.