V-ARTContributions
|
Draw handler. More...
#include <viewerglutogl.h>
Public Member Functions | |
virtual | ~DrawHandler () |
virtual void | OnDraw ()=0 |
Called when the window is redrawn. More... | |
Protected Attributes | |
ViewerGlutOGL * | viewerPtr |
Points to the viewer on which the handler was attached. More... | |
Friends | |
class | ViewerGlutOGL |
Draw handler.
A draw handler allows the application programmer to add custom behavior associated with the window drawing. To use a draw handler, declare a derived class that implements the OnDraw method, then link it to the viewer using SetDrawHandler. The OnDraw method will be called after the window is drawn at every rendering cycle.
Definition at line 98 of file viewerglutogl.h.
|
inlinevirtual |
Definition at line 102 of file viewerglutogl.h.
|
pure virtual |
Called when the window is redrawn.
When a draw handler is associated to a viewer, the OnDraw method will be called at every rendering cycle, after the scene has been drawn.
Implemented in VART::PNMExporter.
|
friend |
Definition at line 100 of file viewerglutogl.h.
|
protected |
Points to the viewer on which the handler was attached.
Definition at line 110 of file viewerglutogl.h.
Referenced by VART::ViewerGlutOGL::SetDrawHandler().