Generic Viewer.
Inheritance:
GenericViewer
- Viewer
Public Fields
-
CameraControl caminfb
- The CameraControl window
-
Gtk::Toolbar toolbar
- The GenericViewers toolbar is public so new tools can be inserted by derived Classes for example (might change to protected though).
-
Gtk::Toolbar gv_toolbar
- For the GV tools
Public Methods
-
GenericViewer(char* label)
- Constructor.
-
virtual gint gl_motion_notify_handler_imp(GdkEventMotion* event)
- the virtual mouse handler methods are overriden to realize the new control mode.
-
virtual gint gl_button_press_handler_imp(GdkEventButton* event)
- the virtual mouse handler methods are overriden to realize the new control mode.
-
virtual gint gl_button_release_handler_imp(GdkEventButton* event)
- the virtual mouse handler methods are overriden to realize the new control mode.
-
void update_caminfb()
- This signal is connected to the gl_changed_event of the Viewer.
-
void tool_handler(int id)
- Handles the buttons of the ViewerToolbox member
Inherited from Viewer:
Public Fields
-
SpaceEntity camera
-
Vector3 gl_light_pos
-
Gtk::HBox upper_hbox
-
Gtk::HBox lower_hbox
-
SigC::Signal0<void> gl_changed_event
Public Methods
-
void initgl()
-
void updategl()
-
gint drawgl()
-
virtual gint init_gl_context_imp()
-
virtual gint draw_gl_context_imp()
-
gint gl_expose_handler(GdkEventExpose* expose)
-
gint gl_configure_handler(GdkEventConfigure* configure)
-
void gl_realize_handler()
-
int 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.
- GenericViewer(char* label)
- Constructor. Argument is a string which will label the window.
- virtual 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.
- virtual 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.
- virtual 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.
- CameraControl caminfb
- The CameraControl window
- void 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.
- void tool_handler(int id)
- Handles the buttons of the ViewerToolbox member
- Gtk::Toolbar toolbar
- The GenericViewers toolbar is public so new tools can be inserted by
derived Classes for example (might change to protected though).
- Gtk::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++.