#include <GeneralViewer.h>
Inheritance diagram for GeneralViewer< InputType >:

Public Member Functions | |
| GeneralViewer (FrameProducer< InputType > *inputProducer, CoordSpace2DMap viewMap, const char *title) | |
| Constructor. | |
| virtual | ~GeneralViewer () |
| Destructor. | |
| void | getMouse (int &x, int &y) |
| Gets the current position of the mouse relative to the viewer's window. | |
| void | waitForEvent () |
| Blocks the calling thread until an event occurs within the viewer's window. | |
| int | checkMouseButton () |
| Check the status of the mouse buttons. | |
| int | userFunction (const char *functionTitle,...) |
| Permits subclasses to create special functionality by redefining this method's behavior. | |
Protected Member Functions | |
| void | clearBuffer () |
| Clear the viewer's image buffer. | |
| void | setBuffer (const unsigned char *data) |
| Set the pixels of the viewer's image buffer. | |
| void | display () |
| Refresh the viewer's image buffer. | |
| void | map_coord (double &x, double &y) |
| Convert the input coordinates in place by the mapping specified in the constructor. | |
Protected Attributes | |
| int | viewerWidth |
| width of the viewer's image buffer. | |
| int | viewerHeight |
| height of the viewer's image buffer. | |
| CImg< unsigned char > | viewBuffer |
| CImg data element that contains the image buffer of the viewer. | |
|
||||||||||||||||||||
|
Constructor.
|
|
|||||||||
|
Check the status of the mouse buttons.
|
|
||||||||||||||||
|
Gets the current position of the mouse relative to the viewer's window.
|
|
||||||||||||||||
|
Convert the input coordinates in place by the mapping specified in the constructor.
|
|
||||||||||
|
Set the pixels of the viewer's image buffer.
|
1.4.6-NO