This machine mirrors various open-source projects.
20 Gbit/s uplink.
If there are any issues or you want another project mirrored, please contact
mirror-service -=AT=- netcologne DOT de !
#include <worldview_component.hxx>
Inheritance diagram for WorldViewComponent:
Public Types | |
enum | Mode { INSERT_MODE, SELECT_MODE, ZOOM_MODE, COLLIDER_MODE } |
Public Member Functions | |
void | set_mode (Mode m) |
Mode | get_mode () |
WorldViewComponent () | |
~WorldViewComponent () | |
WorldViewInsertTool * | get_insert_tool () |
ZoomGraphicContext * | get_gc () |
void | draw (GraphicContext *parent_gc) |
void | on_primary_button_press (int x, int y) |
void | on_primary_button_release (int x, int y) |
void | on_secondary_button_press (int x, int y) |
void | on_secondary_button_release (int x, int y) |
void | on_tertiary_button_press (int x, int y) |
void | on_tertiary_button_release (int x, int y) |
void | on_mouse_move (int x, int y, int of_x, int of_y) |
void | on_duplicate_press (int x, int y) |
void | on_delete_press (int x, int y) |
void | on_fix_press (int x, int y) |
void | on_button_press (int button_id, int x, int y) |
void | wheel_up (int x, int y) |
void | wheel_down (int x, int y) |
void | scroll_left () |
void | scroll_right () |
void | scroll_up () |
void | scroll_down () |
float | get_zoom () |
bool | is_at (int x, int y) |
Static Public Member Functions | |
WorldViewComponent * | instance () |
Definition at line 36 of file worldview_component.hxx.
|
Definition at line 39 of file worldview_component.hxx. Referenced by get_mode(). |
|
Definition at line 32 of file worldview_component.cxx. References graphic_context, and INSERT_MODE. |
|
Definition at line 84 of file worldview_component.cxx. |
|
|
|
Definition at line 72 of file worldview_component.hxx. Referenced by decrease_particle_mass(), and increase_particle_mass(). |
|
Definition at line 65 of file worldview_component.hxx. References Mode. Referenced by collider_mode_hfunc(), WorldGUIManager::draw_overlay(), insert_mode_hfunc(), select_mode_hfunc(), and zoom_mode_hfunc(). |
|
Definition at line 267 of file worldview_component.cxx. References ZoomGraphicContext::get_zoom(). |
|
|
Reimplemented from GUIComponent. Definition at line 105 of file worldview_component.hxx. |
|
Reimplemented from GUIComponent. Definition at line 158 of file worldview_component.cxx. References WorldViewTool::on_button_press(). |
|
Reimplemented from GUIComponent. Definition at line 188 of file worldview_component.cxx. References WorldViewTool::on_delete_press(). |
|
Reimplemented from GUIComponent. Definition at line 194 of file worldview_component.cxx. References WorldViewTool::on_duplicate_press(). |
|
Reimplemented from GUIComponent. Definition at line 200 of file worldview_component.cxx. References WorldViewTool::on_fix_press(). |
|
Reimplemented from GUIComponent. Definition at line 249 of file worldview_component.cxx. References ZoomGraphicContext::get_zoom(), WorldViewTool::on_mouse_move(), and ZoomGraphicContext::set_offset(). |
|
Reimplemented from GUIComponent. Definition at line 164 of file worldview_component.cxx. References WorldViewTool::on_primary_button_press(). |
|
Reimplemented from GUIComponent. Definition at line 170 of file worldview_component.cxx. References WorldViewTool::on_primary_button_release(). |
|
Reimplemented from GUIComponent. Definition at line 176 of file worldview_component.cxx. References WorldViewTool::on_secondary_button_press(). |
|
Reimplemented from GUIComponent. Definition at line 182 of file worldview_component.cxx. References WorldViewTool::on_secondary_button_release(). |
|
Reimplemented from GUIComponent. Definition at line 230 of file worldview_component.cxx. References ZoomGraphicContext::get_x_offset(), ZoomGraphicContext::get_y_offset(), GUIManager::grab_mouse(), WorldGUIManager::instance(), ZoomGraphicContext::screen_to_world_x(), and ZoomGraphicContext::screen_to_world_y(). |
|
Reimplemented from GUIComponent. Definition at line 242 of file worldview_component.cxx. References WorldGUIManager::instance(), and GUIManager::ungrab_mouse(). |
|
Reimplemented from GUIComponent. Definition at line 224 of file worldview_component.cxx. References ZoomGraphicContext::translate_offset(). |
|
Reimplemented from GUIComponent. Definition at line 206 of file worldview_component.cxx. References ZoomGraphicContext::translate_offset(). |
|
Reimplemented from GUIComponent. Definition at line 212 of file worldview_component.cxx. References ZoomGraphicContext::translate_offset(). |
|
Reimplemented from GUIComponent. Definition at line 218 of file worldview_component.cxx. References ZoomGraphicContext::translate_offset(). |
|
Definition at line 49 of file worldview_component.cxx. References WorldViewTool::activate(), COLLIDER_MODE, WorldViewTool::deactivate(), INSERT_MODE, SELECT_MODE, and ZOOM_MODE. Referenced by switch_to_collider_mode(), switch_to_insert_mode(), switch_to_select_mode(), and switch_to_zoom_mode(). |
|
Reimplemented from GUIComponent. Definition at line 152 of file worldview_component.cxx. References ZoomGraphicContext::zoom_out(). Referenced by GUIZoomOutButton::on_click(), and zoom_out_callback(). |
|
Reimplemented from GUIComponent. Definition at line 146 of file worldview_component.cxx. References ZoomGraphicContext::zoom_in(). Referenced by GUIZoomInButton::on_click(), and zoom_in_callback(). |