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

Video::Redrawer Class Reference

User redraw class. draw() will be called from the video thread. More...

#include <Video.h>

Inheritance diagram for Video::Redrawer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Redrawer ()
 default ctor - sets viewport to whole actual window

virtual ~Redrawer ()
 Redrawer (uint ox, uint oy, uint sx, uint sy)
void doRedraw ()
void setViewport (uint ox, uint oy, uint sx, uint sy)
void setFullViewport ()
 sets viewport to full current window


Protected Member Functions

virtual void draw ()=0
 actual draw - to be implemented in childs Shouldn't do clearing or glFinish the viewport is set to redrawer's range and X-form matrix is set to default 2D ortho (0,0,sizeX,sizeY)


Detailed Description

User redraw class. draw() will be called from the video thread.


Constructor & Destructor Documentation

Redrawer  )  [inline]
 

default ctor - sets viewport to whole actual window

Here is the call graph for this function:

virtual ~Redrawer  )  [inline, virtual]
 

Redrawer uint  ox,
uint  oy,
uint  sx,
uint  sy
[inline]
 


Member Function Documentation

void doRedraw  ) 
 

virtual void draw  )  [protected, pure virtual]
 

actual draw - to be implemented in childs Shouldn't do clearing or glFinish the viewport is set to redrawer's range and X-form matrix is set to default 2D ortho (0,0,sizeX,sizeY)

Implemented in KohonenAnalyzer, KohonenDraw, and ExKohonenDraw.

void setFullViewport  ) 
 

sets viewport to full current window

void setViewport uint  ox,
uint  oy,
uint  sx,
uint  sy
[inline]
 

Todo:
we could store the viewport in normalized values so it would be independent of window size ..


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 13:19:39 2004 for Annie by doxygen 1.3.5