Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

PlotCtrl

 

class PlotCtrl : public Ctrl, public Plot

Widget for interactive displaying of plots.

 

Public Method List

 

PlotCtrl& Zoom(double rx,double ry,Pointf C=Null)

Anisotropic zoom of the displayed area, with center of zooming in C. If C is Null, then the zooming occurs around the center of currently displayed area.

 


 

PlotCtrl& ZoomIn(double ratio=2,const Pointf& C=Null)

Shows ratio times smaller area. Same as Zoom(1/ratio,1/ratio,C)

 


 

PlotCtrl& ZoomOut(double ratio=2,const Pointf& C=Null)

Shows ratio times bigger area. Same as Zoom(ratio,ratio,C).

 


 

PlotCtrl& ZoomAll(bool visibleonly=false)

Sets the visible area to display all data points in Plot. If visibleonly, then invisible data sets are ignored.

 


 

virtual void Layout()

Called when the widget changes size.

 


 

virtual void Paint(Draw& w)

Painting routine.

 


 

virtual void LeftDown(Point pt,dword keyflags)

virtual void LeftUp(Point pt,dword keyflags)

virtual void RightDown(Point pt,dword keyflags)

virtual void MouseMove(Point pt, dword keyflags)

virtual void MiddleDown(Point pt,dword keyflags)

virtual void MiddleUp(Point pt,dword keyflags)

virtual void MouseLeave()

virtual void MouseWheel(Point pt, int zdelta, dword keyflags)

Mouse handling routines. Default implementation provides:

Zoom in

Left click OR Mouse wheel

Zoom out

Right click OR Mouse wheel

Zoom to selection

Left button drag

Zoom all

Ctrl + Left click

Panning

Shift + Left button drag

 


 

virtual Image CursorImage(Point p, dword keyflags)

Returns cursor image to display in current situation.

 


 

Callback WhenSync

Callback executed whenever the visual representation of Plot changes.

 

Constructor detail

 

PlotCtrl()

Constructs empty PlotCtrl.

 

Do you want to contribute?