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

WorldViewColliderTool Class Reference

#include <worldview_collider_tool.hxx>

Inheritance diagram for WorldViewColliderTool:

Inheritance graph
[legend]
Collaboration diagram for WorldViewColliderTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WorldViewColliderTool ()
 ~WorldViewColliderTool ()
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)

Constructor & Destructor Documentation

WorldViewColliderTool::WorldViewColliderTool  
 

Definition at line 29 of file worldview_collider_tool.cxx.

WorldViewColliderTool::~WorldViewColliderTool  
 

Definition at line 36 of file worldview_collider_tool.cxx.


Member Function Documentation

void WorldViewColliderTool::draw_background ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 41 of file worldview_collider_tool.cxx.

References WorldViewComponent::get_gc(), InputContext::get_mouse_pos(), input_context, WorldViewComponent::instance(), and ZoomGraphicContext::screen_to_world().

void WorldViewColliderTool::draw_foreground ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 65 of file worldview_collider_tool.cxx.

References Collider::draw_highlight(), WorldViewComponent::get_gc(), InputContext::get_mouse_pos(), input_context, WorldViewComponent::instance(), and ZoomGraphicContext::screen_to_world().

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

Reimplemented from WorldViewTool.

Definition at line 122 of file worldview_collider_tool.cxx.

References WorldViewComponent::get_gc(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world(), and Collider::set_pos().

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

Reimplemented from WorldViewTool.

Definition at line 76 of file worldview_collider_tool.cxx.

References WorldViewComponent::get_gc(), InputContext::get_mouse_pos(), Collider::get_pos(), GUIManager::grab_mouse(), input_context, Controller::instance(), WorldViewComponent::instance(), WorldGUIManager::instance(), Controller::push_undo(), and ZoomGraphicContext::screen_to_world().

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

Reimplemented from WorldViewTool.

Definition at line 97 of file worldview_collider_tool.cxx.

References World::add_rect_collider(), WorldViewComponent::get_gc(), InputContext::get_mouse_pos(), Controller::get_world(), input_context, Controller::instance(), WorldViewComponent::instance(), WorldGUIManager::instance(), ZoomGraphicContext::screen_to_world(), GUIManager::ungrab_mouse(), Vector2d::x, and Vector2d::y.

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

Reimplemented from WorldViewTool.

Definition at line 133 of file worldview_collider_tool.cxx.

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

Reimplemented from WorldViewTool.

Definition at line 139 of file worldview_collider_tool.cxx.

References Controller::get_world(), Controller::instance(), Controller::push_undo(), and World::remove_collider().


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