Public Member Functions | |
scene () | |
Empty constructor for the scene. More... | |
void | load_model () |
Method called only once at the beginning (load files ...) More... | |
void | draw_scene () |
Method called at every frame. More... | |
void | set_glwidget (glwidget *p_widget) |
Set the GLWidget pointer. More... | |
cpe::gui_interface & | gui_visible_interface () |
get the gui helper class More... | |
Private Member Functions | |
void | preload_sphere () |
Init the sphere loading. More... | |
void | init_gui_visibility () |
Init the visibility gui parameters. More... | |
Private Attributes | |
cpe::grid | grid_1 |
The control grid for the spline. More... | |
cpe::surface_param_drawable | surf_1 |
The Spline surface. More... | |
cpe::mesh | sphere |
storage for the sphere (to draw the grid position) More... | |
cpe::gui_interface | gui_visible |
Storage class for visibility modified in the gui. More... | |
scene::scene | ( | ) |
Empty constructor for the scene.
void scene::draw_scene | ( | ) |
Method called at every frame.
References cpe::opengl_drawer::draw(), and cpe::opengl_drawer::draw_sphere().
Referenced by glwidget::paintGL().
gui_interface & scene::gui_visible_interface | ( | ) |
get the gui helper class
Referenced by Window::grid_checkbox_clicked(), Window::gridposition_checkbox_clicked(), and Window::surface_checkbox_clicked().
|
private |
Init the visibility gui parameters.
void scene::load_model | ( | ) |
Method called only once at the beginning (load files ...)
References cpe::vec3::cross(), cpe::evaluator_spline::diff_u(), and cpe::evaluator_spline::diff_v().
Referenced by glwidget::initializeGL().
|
private |
Init the sphere loading.
void scene::set_glwidget | ( | glwidget * | p_widget | ) |
Set the GLWidget pointer.
|
private |
The control grid for the spline.
|
private |
Storage class for visibility modified in the gui.
|
private |
storage for the sphere (to draw the grid position)
|
private |
The Spline surface.