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

sxy_task_zoomin.h

Go to the documentation of this file.
00001 
00002 #ifndef task_zoomin_h
00003 #define task_zoomin_h
00004 
00005 // =======================================================================
00006 
00007 #include <xy.h>
00008 
00009 #include "sxy_graph.h"
00010 #include "sxy_task.h"
00011 
00012 // =======================================================================
00013 
00014 class SXYGraph;
00015 class SXYChart;
00016 class SXYCurve;
00017 
00018 // ----------------------------------------------------------------------
00019 //* Define uma tarefa de seleção de uma máscara
00020 
00021 class SXYTaskZoomIn : public SXYTask {
00022    int is_doing;
00023    int ref_x;
00024    int ref_y;
00025    int shift_x;
00026    int shift_y;
00027 
00028    SXYChart*  userchart;
00029 
00030  private:
00031 
00032    void drawFence(void);
00033 
00034 
00035  public:
00036 
00037    virtual SXYTaskReturn makeZoom( SXYGraph* graph, SXYChart* chart, 
00038         int x, int dx, int y, int dy );
00039 
00040    SXYTaskReturn mouseClick(SXYGraph* graph, int b, int x, int y, int sft, int ctr);
00041    SXYTaskReturn mouseUnclick(SXYGraph* graph, int b, int x, int y, int sft, int ctr);
00042    SXYTaskReturn mouseMotion(SXYGraph* graph, int x, int y, int sft, int ctr);
00043 
00044    SXYTaskReturn mouseEnter(SXYGraph* graph);
00045    SXYTaskReturn mouseLeave(SXYGraph* graph);
00046 
00047    SXYTaskZoomIn();
00048    virtual ~SXYTaskZoomIn();
00049 };
00050 
00051 #endif
00052 

SXY
Tecgraf / PUC-Rio - Computer Graphics Technology Group