wxArt2D
zoomcur.h
Go to the documentation of this file.
1 /*! \file wx/curves/zoomcur.h
2  \brief classes for plotting curve and pie data, and editing them.
3 
4  Data stored in a derived a2dCanvasObject, can be plotted as a curve of pie chart.
5  One can add markers on the curves, and several curves can be plot as a group in one plot.
6 
7  \author Klaas Holwerda
8 
9  Copyright: 2000-2004 (c) Klaas Holwerda
10 
11  Licence: wxWidgets Licence
12 
13  RCS-ID: $Id: zoomcur.h,v 1.4 2006/12/13 21:43:27 titato Exp $
14 */
15 
16 #ifndef __WXZOOMCUR_H__
17 #define __WXZOOMCUR_H__
18 
19 #ifndef WX_PRECOMP
20 #include "wx/wx.h"
21 #endif
22 
23 #include "wx/canvas/canmod.h"
24 #include "wx/curves/meta.h"
25 
26 //!Interactive Zooming into a a2dCanvasXYDisplayGroup.
27 /*! Use mouse to drag a rectangle to zoom into curves.
28 
29 \remark Left Click and/or drag.
30 \remark Right Click for zoom popup.
31 \remark Double Left Click for zoom to full bbox of all curves.
32 
33  \ingroup tools
34 */
35 class A2DCURVESDLLEXP a2dCurveZoomTool: public a2dStTool
36 {
37 public:
38 
39  a2dCurveZoomTool( a2dStToolContr* controller );
41  bool ZoomSave() {return true;};
42 
43 protected:
44 
45  virtual void GenerateAnotation();
46 
47  //! character handling
48  void OnChar( wxKeyEvent& event );
49 
50  void OnMouseEvent( wxMouseEvent& event );
51 
52  virtual wxString GetCommandGroupName() { return _( "Curve zoom" ) ; }
53 
54 public:
55 
57 
58  DECLARE_EVENT_TABLE()
59 
60  DECLARE_CLASS( a2dCurveZoomTool )
61 
62  static const a2dPropertyIdCanvasObject PROPID_curves;
63 };
64 
65 #endif
66 
classes for plotting curve and pie data, and editing them.
The a2dStTool is used to derive tools from.
Definition: sttool.h:115
virtual wxString GetCommandGroupName()
return the command group name for commands of a derived class
Definition: zoomcur.h:52
Interactive Zooming into a a2dCanvasXYDisplayGroup.
Definition: zoomcur.h:35
void OnMouseEvent(wxMouseEvent &event)
called on mouse events
Definition: sttool.cpp:1203
The a2dStToolContr is a Tool Controller specialized for working with a2dCanvasView.
Definition: sttool.h:485
bool ZoomSave()
Is Zooming while the tool is busy Save.
Definition: zoomcur.h:41
void OnChar(wxKeyEvent &event)
called on key events
Definition: sttool.cpp:1568
all headers of the canvas module
This template class is for property ids with a known data type.
Definition: id.h:477
virtual void GenerateAnotation()
to display a string along with a tool drawing.
Definition: sttool.cpp:1346
zoomcur.h Source File -- Sun Oct 12 2014 17:04:26 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation