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

WorldViewZoomTool Class Reference

#include <worldview_zoom_tool.hxx>

Inheritance diagram for WorldViewZoomTool:

Inheritance graph
[legend]
Collaboration diagram for WorldViewZoomTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WorldViewZoomTool ()
 ~WorldViewZoomTool ()
void activate ()
void draw_foreground (ZoomGraphicContext *gc)
void draw_background (ZoomGraphicContext *gc)
void on_primary_button_press (int x, int y)
void on_primary_button_release (int x, int y)

Constructor & Destructor Documentation

WorldViewZoomTool::WorldViewZoomTool  
 

Definition at line 27 of file worldview_zoom_tool.cxx.

WorldViewZoomTool::~WorldViewZoomTool  
 

Definition at line 32 of file worldview_zoom_tool.cxx.


Member Function Documentation

void WorldViewZoomTool::activate   [virtual]
 

Let the Tool to some initialisation

Reimplemented from WorldViewTool.

Definition at line 37 of file worldview_zoom_tool.cxx.

void WorldViewZoomTool::draw_background ZoomGraphicContext   gc [inline, virtual]
 

Implements WorldViewTool.

Definition at line 44 of file worldview_zoom_tool.hxx.

void WorldViewZoomTool::draw_foreground ZoomGraphicContext   gc [virtual]
 

Implements WorldViewTool.

Definition at line 43 of file worldview_zoom_tool.cxx.

References ZoomGraphicContext::draw_rect(), WorldViewComponent::get_gc(), InputContext::get_mouse_x(), InputContext::get_mouse_y(), input_context, WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), Vector2d::x, and Vector2d::y.

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

Reimplemented from WorldViewTool.

Definition at line 59 of file worldview_zoom_tool.cxx.

References WorldViewComponent::get_gc(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), Vector2d::x, and Vector2d::y.

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

Reimplemented from WorldViewTool.

Definition at line 67 of file worldview_zoom_tool.cxx.

References WorldViewComponent::get_gc(), WorldViewComponent::instance(), ZoomGraphicContext::screen_to_world_x(), ZoomGraphicContext::screen_to_world_y(), Vector2d::x, Vector2d::y, and ZoomGraphicContext::zoom_to().


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