31 #include <goffice/goffice.h>
32 #include <gtk/gtkwidget.h>
37 extern double DefaultPsi, DefaultTheta, DefaultPhi;
76 void Reshape (
int width,
int height);
96 bool OnMotion (GdkEventMotion *event);
109 void SetRotation (
double psi,
double theta,
double phi);
120 void SaveAsImage (std::string
const &filename,
char const *type, std::map<std::string, std::string>& options,
unsigned width,
unsigned height)
const;
129 GdkPixbuf *
BuildPixbuf (
unsigned width,
unsigned height)
const;
137 void DoPrint (GtkPrintOperation *print, GtkPrintContext *context,
int page)
const;
149 void RenderToCairo (cairo_t *cr,
unsigned width,
unsigned height)
const;
158 void Rotate (gdouble x, gdouble y);
169 int m_WindowHeight, m_WindowWidth;
170 double m_Height, m_Width, m_Near, m_Far;
171 double m_Lastx, m_Lasty;
277 #endif // GCU_GL_VIEW_H