glwidget Class Reference
+ Inheritance diagram for glwidget:
+ Collaboration diagram for glwidget:

Public Member Functions

 glwidget (QWidget *parent=0)
 
 ~glwidget ()
 
void set_wireframe ()
 
void set_filled ()
 
void draw_text (double x, double y, double z, QString text, QFont font)
 

Public Attributes

scene current_scene
 

Protected Member Functions

void initializeGL ()
 
void paintGL ()
 
void resizeGL (int width, int height)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void timerEvent (QTimerEvent *event)
 

Private Member Functions

void print_help_start () const
 
void draw_pointer (cpe::navigator_tool &nav) const
 
void draw_orientation (cpe::navigator_tool &nav) const
 
void draw_camera_stat ()
 
void draw_fps ()
 
void draw_decorating_info ()
 

Private Attributes

cpe::navigator_tool nav
 
QTime t_timer
 

Constructor & Destructor Documentation

glwidget::glwidget ( QWidget *  parent = 0)

References print_help_start().

+ Here is the call graph for this function:

glwidget::~glwidget ( )

Member Function Documentation

void glwidget::draw_camera_stat ( )
private

References cpe::navigator_tool::dist_cam(), and nav.

Referenced by draw_decorating_info().

+ Here is the call graph for this function:

void glwidget::draw_fps ( )
private

References cpe::navigator_tool::fps(), and nav.

Referenced by draw_decorating_info().

+ Here is the call graph for this function:

void glwidget::draw_orientation ( cpe::navigator_tool nav) const
private

References cpe::navigator_tool::camera_orientation(), and cpe::matrix4::pointer().

Referenced by draw_decorating_info().

+ Here is the call graph for this function:

void glwidget::draw_pointer ( cpe::navigator_tool nav) const
private

References cpe::navigator_tool::camera_orientation(), cpe::navigator_tool::dist_cam(), and cpe::matrix4::pointer().

Referenced by draw_decorating_info().

+ Here is the call graph for this function:

void glwidget::draw_text ( double  x,
double  y,
double  z,
QString  text,
QFont  font 
)
void glwidget::initializeGL ( )
protected

References current_scene, and scene::load_model().

+ Here is the call graph for this function:

void glwidget::keyPressEvent ( QKeyEvent *  event)
protected
void glwidget::mousePressEvent ( QMouseEvent *  event)
protected

References nav, cpe::navigator_tool::x_previous(), and cpe::navigator_tool::y_previous().

+ Here is the call graph for this function:

void glwidget::mouseReleaseEvent ( QMouseEvent *  event)
protected
void glwidget::print_help_start ( ) const
private

Referenced by glwidget().

void glwidget::resizeGL ( int  width,
int  height 
)
protected

References nav, cpe::navigator_tool::screen_size_x(), and cpe::navigator_tool::screen_size_y().

+ Here is the call graph for this function:

void glwidget::set_filled ( )

Referenced by Window::set_wireframe().

void glwidget::set_wireframe ( )

Referenced by Window::set_wireframe().

void glwidget::timerEvent ( QTimerEvent *  event)
protected

Member Data Documentation

QTime glwidget::t_timer
private

Referenced by draw_decorating_info().


The documentation for this class was generated from the following files: