Welcome to the NetCologne GmbH open source mirroring service!

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 !

WorldViewInsertTool class Reference
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

WorldViewInsertTool Class Reference

#include <worldview_insert_tool.hxx>

Inheritance diagram for WorldViewInsertTool:

Inheritance graph
[legend]
Collaboration diagram for WorldViewInsertTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WorldViewInsertTool ()
 ~WorldViewInsertTool ()
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_delete_press (int x, int y)
void on_fix_press (int x, int y)
void set_particle_mass (float p)
float get_particle_mass ()

Constructor & Destructor Documentation

WorldViewInsertTool::WorldViewInsertTool  
 

Definition at line 30 of file worldview_insert_tool.cxx.

WorldViewInsertTool::~WorldViewInsertTool  
 

Definition at line 36 of file worldview_insert_tool.cxx.


Member Function Documentation

void WorldViewInsertTool::draw_background ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 41 of file worldview_insert_tool.cxx.

References Particle::draw_highlight(), WorldViewComponent::get_gc(), InputContext::get_mouse_x(), InputContext::get_mouse_y(), World::get_particle(), Controller::get_world(), input_context, Controller::instance(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world_x(), and ZoomGraphicContext::screen_to_world_y().

void WorldViewInsertTool::draw_foreground ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 56 of file worldview_insert_tool.cxx.

References Spring::draw_highlight(), Particle::draw_infos(), WorldViewComponent::get_gc(), InputContext::get_mouse_pos(), InputContext::get_mouse_x(), InputContext::get_mouse_y(), World::get_particle(), World::get_spring(), Controller::get_world(), input_context, WorldViewComponent::instance(), Controller::instance(), Particle::pos, ZoomGraphicContext::screen_to_world(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), Vector2d::x, and Vector2d::y.

float WorldViewInsertTool::get_particle_mass   [inline]
 

Definition at line 53 of file worldview_insert_tool.hxx.

Referenced by decrease_particle_mass(), and increase_particle_mass().

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

Reimplemented from WorldViewTool.

Definition at line 139 of file worldview_insert_tool.cxx.

References WorldViewComponent::get_gc(), World::get_particle(), World::get_spring(), Controller::get_world(), WorldGUIManager::instance(), WorldViewComponent::instance(), Controller::instance(), Controller::push_undo(), World::remove_particle(), World::remove_spring(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), and GUIManager::ungrab_mouse().

Referenced by on_secondary_button_press().

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

Reimplemented from WorldViewTool.

Definition at line 170 of file worldview_insert_tool.cxx.

References Particle::get_fixed(), WorldViewComponent::get_gc(), World::get_particle(), Controller::get_world(), Controller::instance(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), and Particle::set_fixed().

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

Reimplemented from WorldViewTool.

Definition at line 85 of file worldview_insert_tool.cxx.

References ParticleFactory::add_particle(), World::add_spring(), WorldViewComponent::get_gc(), World::get_particle(), World::get_particle_mgr(), Controller::get_world(), GUIManager::grab_mouse(), WorldGUIManager::instance(), WorldViewComponent::instance(), Controller::instance(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), and GUIManager::ungrab_mouse().

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

Reimplemented from WorldViewTool.

Definition at line 123 of file worldview_insert_tool.cxx.

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

Reimplemented from WorldViewTool.

Definition at line 128 of file worldview_insert_tool.cxx.

References on_delete_press().

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

Reimplemented from WorldViewTool.

Definition at line 134 of file worldview_insert_tool.cxx.

void WorldViewInsertTool::set_particle_mass float    p [inline]
 

Definition at line 52 of file worldview_insert_tool.hxx.

Referenced by decrease_particle_mass(), and increase_particle_mass().


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