Inheritance diagram for gcu::GLView:

Public Member Functions | |
| GLView (GLDocument *pDoc) | |
| Constructor. | |
| virtual | ~GLView () |
| Destructor. | |
| GtkWidget * | GetWidget () |
| void | Init () |
| void | Reshape () |
| void | Draw () |
| bool | OnPressed (GdkEventButton *event) |
| bool | OnMotion (GdkEventMotion *event) |
| void | Update () |
| void | SaveAsImage (string const &filename, char const *type, map< string, string > &options, int resolution=0) |
Protected Attributes | |
| GtkWidget * | m_pWidget |
| unsigned | m_nGLList |
Definition at line 42 of file glview.h.
| gcu::GLView::GLView | ( | GLDocument * | pDoc | ) |
Constructor.
| pDoc,: | a pointer to the GLDocument instance. |
| virtual gcu::GLView::~GLView | ( | ) | [virtual] |
Destructor.
The destructor of GLView.
| void gcu::GLView::Init | ( | ) |
Initialize the associated widget. Automatically called by the framework.
| void gcu::GLView::Reshape | ( | ) |
Automatically called by the framework when the associated widget size changes.
| void gcu::GLView::Draw | ( | ) |
Draws the contents of the associated widget. Automatically called by the framework.
| bool gcu::GLView::OnPressed | ( | GdkEventButton * | event | ) |
| event,: | a pointer to a GdkEvent. |
| bool gcu::GLView::OnMotion | ( | GdkEventMotion * | event | ) |
| event,: | a pointer to a GdkEvent. |
| 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.
| void gcu::GLView::SaveAsImage | ( | string const & | filename, | |
| char const * | type, | |||
| map< string, string > & | options, | |||
| int | resolution = 0 | |||
| ) |
| filename,: | the name of the file. | |
| type,: | the type as supported by GdkPixbuf (e.g. "png" or "jpeg"). | |
| options,: | the pairs of keys/values to pass GdkPixbuf. | |
| resolution,: | the resolution to use. This means that the image size will be the view size multiplied by resolution divided by the screen resolution. If 0, the screen resolution is used. |
1.5.1