Eaagles::Fltk::Display Class Reference

Inherits Eaagles::BasicGL::LcDisplay.

Inheritance diagram for Eaagles::Fltk::Display:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Fltk::Display:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Display ()
int createWindow ()
int createSubWindow (const int mainWin)
int getWindowId () const
bool isWindowId (const int id) const
unsigned int getIdleSleepTime () const
virtual bool setIdleSleepTime (const unsigned int ms)
virtual void swapbuffers ()
virtual void configureIt ()
virtual void mouseEvent (const int button, const int state, const int x, const int y)
virtual void passiveMotionEvent (const int x, const int y)
virtual void mouseMotionEvent (const int x, const int y)
bool setSlotFullScreen (const Basic::LcNumber *const msg)
bool setSlotIdleSleepTime (const Basic::LcNumber *const msg)
virtual bool event (const int event, Basic::LcObject *const obj=0)
bool isFullScreen ()
virtual bool setParentWindow (MainWindow *x)
MainWindowgetParentWindow ()

Protected Member Functions

virtual bool onEscKey ()
void specialEvent (const int key)
LcGraphic * pick (const int item=-1)
void printSelectBuffer (const GLuint sbuff[], const int size)
void clearSelectBuffer (GLuint sbuff[], const int size)
LcGraphic * findSelected (const GLuint sbuff[], const int size, const int item=0)

Static Protected Member Functions

static bool registerDisplay (const int id, Display *const display)
static bool unregisterDisplay (const int id)
static DisplayfindRegisteredDisplay (const int id)
static int findRegisteredWinId (const Display *dp)

Private Types

enum  { MAX_DISPLAYS = 500 }

Static Private Member Functions

static void drawFuncCB ()
static void reshapeItCB (int w, int h)
static void idleCB ()
static void keyboardFuncCB (unsigned char key, int x, int y)
static void specialFuncCB (int key, int x, int y)
static void mouseFuncCB (int button, int state, int x, int y)
static void passiveMotionFuncCB (int x, int y)
static void motionFuncCB (int x, int y)
static void focusFuncCB (int state)

Private Attributes

int winId
bool fullScreenFlg
unsigned int idleSleepTimeMS
MainWindowmyParent

Static Private Attributes

static const float CLICK_TIME
static int idList [MAX_DISPLAYS]
static DisplaydisplayList [MAX_DISPLAYS]
static int numDisplays

Member Enumeration Documentation

anonymous enum [private]

Maximum number of Display classes.

Enumerator:
MAX_DISPLAYS 


Constructor & Destructor Documentation

Eaagles::Fltk::Display::Display (  ) 


Member Function Documentation

int Eaagles::Fltk::Display::createWindow (  ) 

creates the main window

int Eaagles::Fltk::Display::createSubWindow ( const int  mainWin  ) 

creates the sub window

int Eaagles::Fltk::Display::getWindowId (  )  const [inline]

returns window id

bool Eaagles::Fltk::Display::isWindowId ( const int  id  )  const [inline]

returns whether the id is equal to window id

unsigned int Eaagles::Fltk::Display::getIdleSleepTime (  )  const [inline]

returns idle sleep time in ms

bool Eaagles::Fltk::Display::setIdleSleepTime ( const unsigned int  ms  )  [virtual]

sets idle sleep time

void Eaagles::Fltk::Display::swapbuffers (  )  [virtual]

swaps the data in the buffers

Reimplemented from Eaagles::BasicGL::LcDisplay.

void Eaagles::Fltk::Display::configureIt (  )  [virtual]

function to configure the display

void Eaagles::Fltk::Display::mouseEvent ( const int  button,
const int  state,
const int  x,
const int  y 
) [virtual]

takes care of the selection of graphics

Reimplemented from Eaagles::BasicGL::LcDisplay.

void Eaagles::Fltk::Display::passiveMotionEvent ( const int  x,
const int  y 
) [virtual]

passive motion event

void Eaagles::Fltk::Display::mouseMotionEvent ( const int  x,
const int  y 
) [virtual]

mouse motion event with either key pressed

bool Eaagles::Fltk::Display::setSlotFullScreen ( const Basic::LcNumber *const  msg  ) 

sets slot full screen

bool Eaagles::Fltk::Display::setSlotIdleSleepTime ( const Basic::LcNumber *const  msg  ) 

sets slot idle sleep time

virtual bool Eaagles::Fltk::Display::event ( const int  event,
Basic::LcObject *const   obj = 0 
) [virtual]

LcComponent Interface.

Reimplemented from Eaagles::Basic::LcComponent.

bool Eaagles::Fltk::Display::isFullScreen (  )  [inline]

returns whether the screen is full or not

bool Eaagles::Fltk::Display::setParentWindow ( MainWindow x  )  [virtual]

parent window stuff

MainWindow* Eaagles::Fltk::Display::getParentWindow (  )  [inline]

bool Eaagles::Fltk::Display::onEscKey (  )  [protected, virtual]

virtual bool from event handler

void Eaagles::Fltk::Display::specialEvent ( const int  key  )  [protected]

bool Eaagles::Fltk::Display::registerDisplay ( const int  id,
Display *const  display 
) [static, protected]

register (add to list) this Display & GLUT window ID

bool Eaagles::Fltk::Display::unregisterDisplay ( const int  id  )  [static, protected]

unregister (remove from list) this GLUT window ID

Display * Eaagles::Fltk::Display::findRegisteredDisplay ( const int  id  )  [static, protected]

Find the Display for this GLUT window ID.

int Eaagles::Fltk::Display::findRegisteredWinId ( const Display dp  )  [static, protected]

Find the GLUT window ID for this Display.

BasicGL::LcGraphic * Eaagles::Fltk::Display::pick ( const int  item = -1  )  [protected]

pick/select stuff

void Eaagles::Fltk::Display::printSelectBuffer ( const GLuint  sbuff[],
const int  size 
) [protected]

print the selection buffer

void Eaagles::Fltk::Display::clearSelectBuffer ( GLuint  sbuff[],
const int  size 
) [protected]

clears our pick select buffer

BasicGL::LcGraphic * Eaagles::Fltk::Display::findSelected ( const GLuint  sbuff[],
const int  size,
const int  item = 0 
) [protected]

void Eaagles::Fltk::Display::drawFuncCB (  )  [static, private]

Draw callback.

std::cout << "Display::drawFuncCB(): id = " << id << ", p = " << p << std::endl;

void Eaagles::Fltk::Display::reshapeItCB ( int  w,
int  h 
) [static, private]

Reshape callback.

void Eaagles::Fltk::Display::idleCB (  )  [static, private]

Default idle function.

void Eaagles::Fltk::Display::keyboardFuncCB ( unsigned char  key,
int  x,
int  y 
) [static, private]

Handle keyboard events.

void Eaagles::Fltk::Display::specialFuncCB ( int  key,
int  x,
int  y 
) [static, private]

Handle special function key events.

void Eaagles::Fltk::Display::mouseFuncCB ( int  button,
int  state,
int  x,
int  y 
) [static, private]

Handle mouse events.

void Eaagles::Fltk::Display::passiveMotionFuncCB ( int  x,
int  y 
) [static, private]

void Eaagles::Fltk::Display::motionFuncCB ( int  x,
int  y 
) [static, private]

Handle mouse movement when either mouse key is pressed.

void Eaagles::Fltk::Display::focusFuncCB ( int  state  )  [static, private]


Member Data Documentation

const float Eaagles::Fltk::Display::CLICK_TIME [static, private]

int Eaagles::Fltk::Display::winId [private]

Window ID.

bool Eaagles::Fltk::Display::fullScreenFlg [private]

Full screen flag (main window only).

unsigned int Eaagles::Fltk::Display::idleSleepTimeMS [private]

Idle callback sleep time (MS).

int Eaagles::Fltk::Display::idList [static, private]

List of window IDs.

Display * Eaagles::Fltk::Display::displayList [static, private]

Display List.

int Eaagles::Fltk::Display::numDisplays [static, private]

Number of Displays.

MainWindow* Eaagles::Fltk::Display::myParent [private]

our parent window (if we have one)


Generated on Tue Dec 19 16:27:00 2006 for Eaagles by  doxygen 1.5.0