#include <gcu/glview.h>

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 | SetRotation (double psi, double theta, double phi) |
| void | Print (GnomePrintContext *pc, gdouble width, gdouble height) |
| void | SaveAsImage (string const &filename, char const *type, map< string, string > &options, unsigned width, unsigned height) |
| void | SetAngle (double val) |
| double | GetAngle (void) |
| double & | GetRefAngle (void) |
| void | SetPsi (double val) |
| double | GetPsi (void) |
| double & | GetRefPsi (void) |
| void | SetPhi (double val) |
| double | GetPhi (void) |
| double & | GetRefPhi (void) |
| void | SetTheta (double val) |
| double | GetTheta (void) |
| double & | GetRefTheta (void) |
| void | SetRed (float val) |
| float | GetRed (void) |
| float & | GetRefRed (void) |
| void | SetGreen (float val) |
| float | GetGreen (void) |
| float & | GetRefGreen (void) |
| void | SetBlue (float val) |
| float | GetBlue (void) |
| float & | GetRefBlue (void) |
| void | SetAlpha (float val) |
| float | GetAlpha (void) |
| float & | GetRefAlpha (void) |
| GLDocument * | GetDoc (void) |
| double | GetRadius (void) |
Protected Attributes | |
| GtkWidget * | m_pWidget |
| unsigned | m_nGLList |
| double | m_Radius |
Definition at line 48 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.
| GtkWidget* gcu::GLView::GetWidget | ( | ) | [inline] |
| 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::SetRotation | ( | double | psi, | |
| double | theta, | |||
| double | phi | |||
| ) |
| psi | the first Euler's angle. | |
| theta | the second Euler's angle. | |
| phi | the third Euler's angle. |
| void gcu::GLView::Print | ( | GnomePrintContext * | pc, | |
| gdouble | width, | |||
| gdouble | height | |||
| ) |
| pc | the GnomePrintContext used for printing. | |
| width | the width of the printed view. | |
| height | th height of the printed view. |
| void gcu::GLView::SaveAsImage | ( | string const & | filename, | |
| char const * | type, | |||
| map< string, string > & | options, | |||
| unsigned | width, | |||
| unsigned | height | |||
| ) |
| 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. | |
| width | the width of the generated image. | |
| height | the height of the enerated image. |
| gcu::GLView::SetAngle | ( | double | angle | ) | [inline] |
| gcu::GLView::GetAngle | ( | void | ) | [inline] |
| gcu::GLView::GetRefAngle | ( | void | ) | [inline] |
| gcu::GLView::SetPsi | ( | double | psi | ) | [inline] |
| gcu::GLView::GetPsi | ( | void | ) | [inline] |
| gcu::GLView::GetRefPsi | ( | void | ) | [inline] |
| gcu::GLView::SetPhi | ( | double | phi | ) | [inline] |
| gcu::GLView::GetPhi | ( | void | ) | [inline] |
| gcu::GLView::GetRefPhi | ( | void | ) | [inline] |
| gcu::GLView::SetTheta | ( | double | theta | ) | [inline] |
| gcu::GLView::GetTheta | ( | void | ) | [inline] |
| gcu::GLView::GetRefTheta | ( | void | ) | [inline] |
| gcu::GLView::SetRed | ( | float | red | ) | [inline] |
| gcu::GLView::GetRed | ( | void | ) | [inline] |
| gcu::GLView::GetRefRed | ( | void | ) | [inline] |
| gcu::GLView::SetGreen | ( | float | green | ) | [inline] |
| gcu::GLView::GetGreen | ( | void | ) | [inline] |
| gcu::GLView::GetRefGreen | ( | void | ) | [inline] |
| gcu::GLView::SetBlue | ( | float | blue | ) | [inline] |
| gcu::GLView::GetBlue | ( | void | ) | [inline] |
| gcu::GLView::GetRefBlue | ( | void | ) | [inline] |
| gcu::GLView::SetAlpha | ( | float | alpha | ) | [inline] |
| gcu::GLView::GetAlpha | ( | void | ) | [inline] |
| gcu::GLView::GetRefAlpha | ( | void | ) | [inline] |
| gcu::GLView::GetDoc | ( | void | ) | [inline] |
| gcu::GLView::GetRadius | ( | void | ) | [inline] |
GtkWidget* gcu::GLView::m_pWidget [protected] |
unsigned gcu::GLView::m_nGLList [protected] |
gcu::GLView::m_Radius [protected] |
1.5.4