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

SXYTaskZoomIn Class Reference

#include <sxy_task_zoomin.h>

Inheritance diagram for SXYTaskZoomIn:

Inheritance graph
[legend]
Collaboration diagram for SXYTaskZoomIn:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual SXYTaskReturn makeZoom (SXYGraph *graph, SXYChart *chart, int x, int dx, int y, int dy)
SXYTaskReturn mouseClick (SXYGraph *graph, int b, int x, int y, int sft, int ctr)
SXYTaskReturn mouseUnclick (SXYGraph *graph, int b, int x, int y, int sft, int ctr)
SXYTaskReturn mouseMotion (SXYGraph *graph, int x, int y, int sft, int ctr)
SXYTaskReturn mouseEnter (SXYGraph *graph)
SXYTaskReturn mouseLeave (SXYGraph *graph)
 SXYTaskZoomIn ()
virtual ~SXYTaskZoomIn ()

Private Methods

void drawFence (void)

Private Attributes

int is_doing
int ref_x
int ref_y
int shift_x
int shift_y
SXYChartuserchart

Constructor & Destructor Documentation

SXYTaskZoomIn::SXYTaskZoomIn  
 

Definition at line 178 of file sxy_task_zoomin.cpp.

References is_doing, ref_x, ref_y, shift_x, shift_y, and userchart.

SXYTaskZoomIn::~SXYTaskZoomIn   [virtual]
 

Definition at line 187 of file sxy_task_zoomin.cpp.


Member Function Documentation

void SXYTaskZoomIn::drawFence void    [private]
 

Definition at line 115 of file sxy_task_zoomin.cpp.

References SXYTask::getXorColor(), ref_x, ref_y, shift_x, and shift_y.

Referenced by mouseClick(), mouseMotion(), and mouseUnclick().

SXYTaskReturn SXYTaskZoomIn::makeZoom SXYGraph   graph,
SXYChart   chart,
int    x,
int    dx,
int    y,
int    dy
[virtual]
 

Definition at line 149 of file sxy_task_zoomin.cpp.

References CALLBACK_TREATED, SXYChart::getAxis(), SXYChart::getNumAxes(), SXYAxis::getPositionValue(), max, min, SXYTaskReturn, SXYChart::tryGridAdjust(), and zoom().

Referenced by mouseUnclick().

SXYTaskReturn SXYTaskZoomIn::mouseClick SXYGraph   graph,
int    b,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 24 of file sxy_task_zoomin.cpp.

References CALLBACK_NOT_TREATED, CALLBACK_TREATED, drawFence(), SXYGraph::getChart(), SXYGraph::getChartOfEvent(), SXYGraph::getIupCanvas(), is_doing, ref_x, ref_y, shift_x, shift_y, SXYTaskReturn, and userchart.

SXYTaskReturn SXYTaskZoomIn::mouseEnter SXYGraph   graph [virtual]
 

Implements SXYTask.

Definition at line 93 of file sxy_task_zoomin.cpp.

References CALLBACK_NOT_TREATED, SXYGraph::getIupCanvas(), is_doing, SXYGraph::redrawGraph(), and SXYTaskReturn.

SXYTaskReturn SXYTaskZoomIn::mouseLeave SXYGraph   graph [virtual]
 

Implements SXYTask.

Definition at line 104 of file sxy_task_zoomin.cpp.

References CALLBACK_NOT_TREATED, SXYGraph::getIupCanvas(), is_doing, SXYGraph::redrawGraph(), and SXYTaskReturn.

SXYTaskReturn SXYTaskZoomIn::mouseMotion SXYGraph   graph,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 77 of file sxy_task_zoomin.cpp.

References CALLBACK_NOT_TREATED, CALLBACK_TREATED, drawFence(), SXYGraph::getChartOfEvent(), is_doing, ref_x, ref_y, shift_x, shift_y, and SXYTaskReturn.

SXYTaskReturn SXYTaskZoomIn::mouseUnclick SXYGraph   graph,
int    b,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 50 of file sxy_task_zoomin.cpp.

References CALLBACK_NOT_TREATED, drawFence(), SXYGraph::getChartOfEvent(), SXYGraph::getIupCanvas(), is_doing, makeZoom(), SXYGraph::redrawGraph(), ref_x, ref_y, shift_x, shift_y, SXYTaskReturn, and userchart.


Member Data Documentation

int SXYTaskZoomIn::is_doing [private]
 

Definition at line 22 of file sxy_task_zoomin.h.

Referenced by mouseClick(), mouseEnter(), mouseLeave(), mouseMotion(), mouseUnclick(), and SXYTaskZoomIn().

int SXYTaskZoomIn::ref_x [private]
 

Definition at line 23 of file sxy_task_zoomin.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskZoomIn().

int SXYTaskZoomIn::ref_y [private]
 

Definition at line 24 of file sxy_task_zoomin.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskZoomIn().

int SXYTaskZoomIn::shift_x [private]
 

Definition at line 25 of file sxy_task_zoomin.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskZoomIn().

int SXYTaskZoomIn::shift_y [private]
 

Definition at line 26 of file sxy_task_zoomin.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskZoomIn().

SXYChart* SXYTaskZoomIn::userchart [private]
 

Definition at line 28 of file sxy_task_zoomin.h.

Referenced by mouseClick(), mouseUnclick(), and SXYTaskZoomIn().


The documentation for this class was generated from the following files:
SXY
Tecgraf / PUC-Rio - Computer Graphics Technology Group