Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

WorldViewSelectTool Class Reference

#include <worldview_select_tool.hxx>

Inheritance diagram for WorldViewSelectTool:

Inheritance graph
[legend]
Collaboration diagram for WorldViewSelectTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WorldViewSelectTool ()
 ~WorldViewSelectTool ()
void activate ()
void deactivate ()
void draw_background (ZoomGraphicContext *gc)
void draw_foreground (ZoomGraphicContext *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_mouse_move (int x, int y, int of_x, int of_y)
void on_button_press (int button_id, int x, int y)
void on_flip_press (int x, int 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)

Constructor & Destructor Documentation

WorldViewSelectTool::WorldViewSelectTool  
 

Definition at line 31 of file worldview_select_tool.cxx.

WorldViewSelectTool::~WorldViewSelectTool  
 

Definition at line 36 of file worldview_select_tool.cxx.


Member Function Documentation

void WorldViewSelectTool::activate   [virtual]
 

Let the Tool to some initialisation

Reimplemented from WorldViewTool.

Definition at line 109 of file worldview_select_tool.cxx.

void WorldViewSelectTool::deactivate   [virtual]
 

Let the Tool to some deinitialisation

Reimplemented from WorldViewTool.

Definition at line 114 of file worldview_select_tool.cxx.

References Selection::clear().

void WorldViewSelectTool::draw_background ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 41 of file worldview_select_tool.cxx.

References Selection::begin(), Selection::end(), and Selection::iterator.

void WorldViewSelectTool::draw_foreground ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 51 of file worldview_select_tool.cxx.

References Selection::begin(), GraphicContext::draw_circle(), ZoomGraphicContext::draw_fill_rect(), ZoomGraphicContext::draw_rect(), Selection::empty(), Selection::end(), Selection::get_center(), WorldViewComponent::get_gc(), InputContext::get_mouse_x(), InputContext::get_mouse_y(), ZoomGraphicContext::get_parent_gc(), ZoomGraphicContext::get_zoom(), input_context, WorldViewComponent::instance(), Selection::iterator, Math::max(), Math::min(), Particle::pos, ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), ZoomGraphicContext::world_to_screen(), Vector2d::x, Rect< T >::x1, Rect< T >::x2, Vector2d::y, Rect< T >::y1, and Rect< T >::y2.

void WorldViewSelectTool::on_button_press int    button_id,
int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 291 of file worldview_select_tool.cxx.

References BUTTON_FLIP, BUTTON_SETVELOCITY, Selection::flip(), Selection::get_center(), WorldViewComponent::get_gc(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world(), and Selection::set_velocity().

void WorldViewSelectTool::on_delete_press int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 196 of file worldview_select_tool.cxx.

References Selection::begin(), Selection::clear(), Selection::end(), Controller::get_world(), Controller::instance(), Selection::iterator, Controller::push_undo(), and World::remove_particle().

void WorldViewSelectTool::on_duplicate_press int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 285 of file worldview_select_tool.cxx.

References Selection::duplicate().

void WorldViewSelectTool::on_fix_press int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 210 of file worldview_select_tool.cxx.

References Selection::begin(), Selection::end(), and Selection::iterator.

void WorldViewSelectTool::on_flip_press int    x,
int    y
 

void WorldViewSelectTool::on_mouse_move int    x,
int    y,
int    of_x,
int    of_y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 238 of file worldview_select_tool.cxx.

References Selection::begin(), Selection::end(), WorldViewComponent::get_gc(), World::get_spring_mgr(), Controller::get_world(), ZoomGraphicContext::get_zoom(), WorldViewComponent::instance(), Controller::instance(), Selection::iterator, Selection::rotate(), Vector2d::x, and Vector2d::y.

void WorldViewSelectTool::on_primary_button_press int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 120 of file worldview_select_tool.cxx.

References Selection::begin(), Selection::clear(), Selection::end(), WorldViewComponent::get_gc(), World::get_particle(), Controller::get_world(), GUIManager::grab_mouse(), WorldGUIManager::instance(), Controller::instance(), WorldViewComponent::instance(), Selection::iterator, Controller::push_undo(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), Vector2d::x, and Vector2d::y.

void WorldViewSelectTool::on_primary_button_release int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 153 of file worldview_select_tool.cxx.

References WorldGUIManager::instance(), Selection::select_particles(), and GUIManager::ungrab_mouse().

void WorldViewSelectTool::on_secondary_button_press int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 170 of file worldview_select_tool.cxx.

References Selection::empty(), Selection::get_center(), WorldViewComponent::get_gc(), GUIManager::grab_mouse(), WorldViewComponent::instance(), WorldGUIManager::instance(), Controller::instance(), Controller::push_undo(), and ZoomGraphicContext::screen_to_world().

void WorldViewSelectTool::on_secondary_button_release int    x,
int    y
[virtual]
 

Reimplemented from WorldViewTool.

Definition at line 189 of file worldview_select_tool.cxx.

References WorldGUIManager::instance(), and GUIManager::ungrab_mouse().


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 10:25:30 2003 for Construo by doxygen1.3-rc3

Rabisu Mirror Service We provide mirrors to support Open source communities. Our mirror server is located in Istanbul/Turkey region.

Please do not hesitate to contact mirror@rabisu.com for new open source mirror submissions.