golib
0.5
|
Scene view widget, showing a goGL::Scene
.
More...
#include <sceneview.h>
Public Member Functions | |
void | loadOFF (const char *filename) |
Load an OFF into the scene. More... | |
virtual void | glDraw () |
Sets the camera width/height to this widget's size and calls goGL::Scene::render() . | |
void | setRadius (goFloat) |
Set radius of the sphere around the origin at which the camera resides. More... | |
void | setSphericalPosition (const goVectorf &phiThetaRadius) |
Set the spherical position of the camera. More... | |
void | setView (const goVectorf &position, const goVectorf &up, const goVectorf &focus) |
Set the camera position. More... | |
const goVectorf & | getSphericalPosition () const |
Get the spherical position of the camera around the scene. More... | |
void | setLight (const goGL::Light &light) |
Set the light GL_LIGHT0. More... | |
void | setScene (goAutoPtr< goGL::Scene > s) |
Set the scene. More... | |
goAutoPtr< goGL::Scene > | getScene () |
Get goAutoPtr to the scene. More... | |
void | setActiveObject (goIndex_t i) |
sigc::signal< void > & | signalChanged () |
sigc::signal< void > & | signalChangedFinal () |
sigc::signal< void > & | signalRotated () |
bool | motionSlot (GdkEventMotion *e) |
bool | buttonSlot (GdkEventButton *e) |
![]() | |
void | GLWidgetBegin () |
void | GLWidgetEnd () |
void | swapBuffers () |
Can only be called between GLWidgetBegin and ...End. | |
const goVectorf & | getRotationStart () const |
2-Vector, mouse position last rotation start More... | |
const goVectorf & | getRotationEnd () const |
2-Vector, mouse position last rotation end More... | |
bool | renderSlot (const Glib::RefPtr< Gdk::GLContext > &context) |
bool | exposeSlot (GdkEventExpose *e) |
bool | motionSlot (GdkEventMotion *e) |
bool | buttonSlot (GdkEventButton *e) |
Scene view widget, showing a goGL::Scene
.
goAutoPtr< goGL::Scene > goGUI::SceneView::getScene | ( | ) |
Get goAutoPtr to the scene.
const goVectorf & goGUI::SceneView::getSphericalPosition | ( | ) | const |
Get the spherical position of the camera around the scene.
This is a remnant from OFFView
– keep it or not?
void goGUI::SceneView::loadOFF | ( | const char * | filename | ) |
Load an OFF into the scene.
filename |
void goGUI::SceneView::setLight | ( | const goGL::Light & | light | ) |
void goGUI::SceneView::setRadius | ( | goFloat | r | ) |
Set radius of the sphere around the origin at which the camera resides.
This is a remnant from OFFView
– keep it or not?
r |
void goGUI::SceneView::setScene | ( | goAutoPtr< goGL::Scene > | s | ) |
Set the scene.
s | The scene. It is not copied, the same pointer is used. |
void goGUI::SceneView::setSphericalPosition | ( | const goVectorf & | r | ) |
Set the spherical position of the camera.
This is a remnant from OFFView
– keep it or not?
r |
void goGUI::SceneView::setView | ( | const goVectorf & | position, |
const goVectorf & | up, | ||
const goVectorf & | focus | ||
) |
Set the camera position.
This is a remnant from OFFView
– keep it or not?
position | Position of the camera |
up | Up vector |
focus | Point the camera looks at. |