gcu::GLView Class Reference

List of all members.

Public Member Functions

 GLView (GLDocument *pDoc)
 Constructor.
virtual ~GLView ()
 Destructor.
GtkWidget * GetWidget ()
void Init ()
void Reshape ()
void Draw ()
bool OnPressed (GdkEventButton *event)
void OnMotion (GdkEventMotion *event)
void Update ()

Protected Attributes

GtkWidget * m_pWidget
unsigned m_nGLList

Detailed Description

Definition at line 39 of file glview.h.


Constructor & Destructor Documentation

gcu::GLView::GLView ( GLDocument pDoc  ) 

Constructor.

Parameters:
pDoc,: a pointer to the GLDocument instance.
Creates a view for the document.

virtual gcu::GLView::~GLView (  )  [virtual]

Destructor.

The destructor of GLView.


Member Function Documentation

void gcu::GLView::Draw (  ) 

Draws the contents of the associated widget. Automatically called by the framework.

void gcu::GLView::Init (  ) 

Initialize the associated widget. Automatically called by the framework.

void gcu::GLView::OnMotion ( GdkEventMotion *  event  ) 

Parameters:
event,: a pointer to a GdkEvent.
Automatically called by the framework when the mouse cursor moves over the associated widget drawing area.

bool gcu::GLView::OnPressed ( GdkEventButton *  event  ) 

Parameters:
event,: a pointer to a GdkEvent.
Automatically called by the framework when a left button click occurs in the associated widget drawing area.

void gcu::GLView::Reshape (  ) 

Automatically called by the framework when the associated widget size changes.

void gcu::GLView::Update (  ) 

Update the contents of the associated widget. This method must be called each time the document or the view are modified.


The documentation for this class was generated from the following file:
Generated on Tue Aug 15 10:47:36 2006 for The Gnome Chemistry Utils by  doxygen 1.4.7