V-ARTContributions
Public Member Functions | Protected Attributes | Friends | List of all members
VART::ViewerGlutOGL::DrawHandler Class Referenceabstract

Draw handler. More...

#include <viewerglutogl.h>

Inheritance diagram for VART::ViewerGlutOGL::DrawHandler:
VART::PNMExporter

Public Member Functions

virtual ~DrawHandler ()
 
virtual void OnDraw ()=0
 Called when the window is redrawn. More...
 

Protected Attributes

ViewerGlutOGLviewerPtr
 Points to the viewer on which the handler was attached. More...
 

Friends

class ViewerGlutOGL
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual VART::ViewerGlutOGL::DrawHandler::~DrawHandler ( )
inlinevirtual

Definition at line 102 of file viewerglutogl.h.

Member Function Documentation

virtual void VART::ViewerGlutOGL::DrawHandler::OnDraw ( )
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.

Friends And Related Function Documentation

friend class ViewerGlutOGL
friend

Definition at line 100 of file viewerglutogl.h.

Member Data Documentation

ViewerGlutOGL* VART::ViewerGlutOGL::DrawHandler::viewerPtr
protected

Points to the viewer on which the handler was attached.

Definition at line 110 of file viewerglutogl.h.

Referenced by VART::ViewerGlutOGL::SetDrawHandler().


The documentation for this class was generated from the following file: