class GenericViewer

Generic Viewer.

Inheritance:

GenericViewer - Viewer


Public Fields

[more]CameraControl caminfb
The CameraControl window
[more]Gtk::Toolbar toolbar
The GenericViewers toolbar is public so new tools can be inserted by derived Classes for example (might change to protected though).
[more]Gtk::Toolbar gv_toolbar
For the GV tools

Public Methods

[more] GenericViewer(char* label)
Constructor.
[more]virtual gint gl_motion_notify_handler_imp(GdkEventMotion* event)
the virtual mouse handler methods are overriden to realize the new control mode.
[more]virtual gint gl_button_press_handler_imp(GdkEventButton* event)
the virtual mouse handler methods are overriden to realize the new control mode.
[more]virtual gint gl_button_release_handler_imp(GdkEventButton* event)
the virtual mouse handler methods are overriden to realize the new control mode.
[more]void update_caminfb()
This signal is connected to the gl_changed_event of the Viewer.
[more]void tool_handler(int id)
Handles the buttons of the ViewerToolbox member


Inherited from Viewer:

Public Fields

oSpaceEntity camera
oVector3 gl_light_pos
oGtk::HBox upper_hbox
oGtk::HBox lower_hbox
oSigC::Signal0<void> gl_changed_event

Public Methods

ovoid initgl()
ovoid updategl()
ogint drawgl()
ovirtual gint init_gl_context_imp()
ovirtual gint draw_gl_context_imp()
ogint gl_expose_handler(GdkEventExpose* expose)
ogint gl_configure_handler(GdkEventConfigure* configure)
ovoid gl_realize_handler()
oint set_light(Vector3 pos)


Documentation

Generic Viewer. Derived from Viewer class. It is supposed to have some additional functions which are still kept rather general so that this Class can be used in many applications. At the moment the Generic Viewer contains a toolbox, which is inserted in Viewer::upper_hbox, a ViewerToolbox member object, and a CameraControl member object which supports an additional mouse mode.
o GenericViewer(char* label)
Constructor. Argument is a string which will label the window.

ovirtual gint gl_motion_notify_handler_imp(GdkEventMotion* event)
the virtual mouse handler methods are overriden to realize the new control mode. If the old mode is active, the underlying Viewer methods are called.

ovirtual gint gl_button_press_handler_imp(GdkEventButton* event)
the virtual mouse handler methods are overriden to realize the new control mode. If the old mode is active, the underlying Viewer methods are called.

ovirtual gint gl_button_release_handler_imp(GdkEventButton* event)
the virtual mouse handler methods are overriden to realize the new control mode. If the old mode is active, the underlying Viewer methods are called.

oCameraControl caminfb
The CameraControl window

ovoid update_caminfb()
This signal is connected to the gl_changed_event of the Viewer. Whenever the camera stats change (eg. by Viewers mouse control), the CameraControl window will be updated with the new coordinates.

ovoid tool_handler(int id)
Handles the buttons of the ViewerToolbox member

oGtk::Toolbar toolbar
The GenericViewers toolbar is public so new tools can be inserted by derived Classes for example (might change to protected though).

oGtk::Toolbar gv_toolbar
For the GV tools


Direct child classes:
QuatFractViewer

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.