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

vuBasicGLCanvas Class Reference

The Basic gl canvas class that comes with the vuBasicUtility. More...

#include <vuBasicUtility.h>

Inheritance diagram for vuBasicGLCanvas:

Inheritance graph
[legend]
Collaboration diagram for vuBasicGLCanvas:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

virtual void OnChar (wxKeyEvent &event)
 This handler is called on keypress.

Private Member Functions

 vuBasicGLCanvas (vuBasicUtility *parent)
 constructor,
virtual bool glInit ()
 initializes m_Parent, the BasicUtility associated with this class
virtual void render ()
 renders m_parant
virtual void resize ()
 resizes m_parent
virtual void OnMouse (wxMouseEvent &ev)
 passes the mouse event to OnMouse

Private Attributes

vuBasicUtilitym_Parent
 the utility that this is a wrapper for

Friends

class vuBasicUtility

Detailed Description

The Basic gl canvas class that comes with the vuBasicUtility.

This class has the same functionality as the vuGLCanvas. It's purpose is to redirect the gl methods to the vuBasicGLCanvas class.

Definition at line 263 of file vuBasicUtility.h.


Constructor & Destructor Documentation

vuBasicGLCanvas::vuBasicGLCanvas vuBasicUtility parent  )  [private]
 

constructor,

passes parent to the constructors of vuGLCanvas and m_Parent

Definition at line 19 of file vuBasicUtility.cpp.


Member Function Documentation

bool vuBasicGLCanvas::glInit  )  [private, virtual]
 

initializes m_Parent, the BasicUtility associated with this class

Reimplemented from vuGLCanvas.

Definition at line 31 of file vuBasicUtility.cpp.

References vuBasicUtility::glInit(), and m_Parent.

Here is the call graph for this function:

void vuBasicGLCanvas::OnChar wxKeyEvent &  event  )  [protected, virtual]
 

This handler is called on keypress.

it calls the handler of the parent window vuBasicUtility::OnChar() . We have to do this ourselves although due to the wxWindows specifications this should happen outomaticly if there would be no handler in this class. However... To customize the keyboard handler override OnChar in your Utility (which should be derived from vuBasicUtility).

Definition at line 51 of file vuBasicUtility.cpp.

References m_Parent, and vuBasicUtility::OnChar().

Here is the call graph for this function:

void vuBasicGLCanvas::OnMouse wxMouseEvent &  ev  )  [private, virtual]
 

passes the mouse event to OnMouse

Definition at line 46 of file vuBasicUtility.cpp.

References vuBasicUtility::glOnMouse(), and m_Parent.

Here is the call graph for this function:

void vuBasicGLCanvas::render  )  [private, virtual]
 

renders m_parant

Note:
render() starts the rendering process.

If the utility's getVolume() is implemented, it tries to draw a preview by using the volume's preview() method.

Otherwise it just calls the utility's glRender().

Reimplemented from vuGLCanvas.

Definition at line 36 of file vuBasicUtility.cpp.

References vuBasicUtility::glRender(), and m_Parent.

Here is the call graph for this function:

void vuBasicGLCanvas::resize  )  [private, virtual]
 

resizes m_parent

Reimplemented from vuGLCanvas.

Definition at line 41 of file vuBasicUtility.cpp.

References vuBasicUtility::glResize(), and m_Parent.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class vuBasicUtility [friend]
 

Definition at line 266 of file vuBasicUtility.h.


Member Data Documentation

vuBasicUtility* vuBasicGLCanvas::m_Parent [private]
 

the utility that this is a wrapper for

Definition at line 306 of file vuBasicUtility.h.

Referenced by glInit(), OnChar(), OnMouse(), render(), and resize().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:11 2004 for vuVolume by  doxygen 1.3.9.1