mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ScatterDraw: Interface updated
git-svn-id: svn://ultimatepp.org/upp/trunk@10841 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0daab260de
commit
3b7216a90b
1 changed files with 6 additions and 15 deletions
|
|
@ -496,23 +496,14 @@ public:
|
|||
ScatterDraw& LinkedWith(ScatterDraw& ctrl);
|
||||
void Unlinked();
|
||||
|
||||
int GetPlotWidth() {return plotW;}
|
||||
int GetPlotHeight() {return plotH;}
|
||||
Pointf GetPosPrimary(double x, double y) {
|
||||
Pointf ret;
|
||||
ret.x = plotW*(x - xMin)/xRange;
|
||||
ret.y = plotH - plotH*(y - yMin)/yRange;
|
||||
return ret;
|
||||
}
|
||||
int GetPlotWidth() {return plotW;}
|
||||
int GetPlotHeight() {return plotH;}
|
||||
double GetPosX(double x) {return plotW*(x - xMin)/xRange;}
|
||||
double GetSizeX(double cx) {return plotW*cx/xRange;}
|
||||
double GetPosYPrimary(double y) {return plotH - plotH*(y - yMin)/yRange;}
|
||||
double GetSizeYPrimary(double cy) {return plotH*cy/yRange;}
|
||||
Pointf GetPosSecondary(double x, double y) {
|
||||
Pointf ret;
|
||||
ret.x = plotW*(x - xMin)/xRange;
|
||||
ret.y = plotH - plotH*(y - yMin2)/yRange2;
|
||||
return ret;
|
||||
}
|
||||
double GetSizeYSecondary(double cy) {return plotH*cy/yRange2;}
|
||||
double GetPosYSecondary(double y) {return plotH - plotH*(y - yMin2)/yRange2;}
|
||||
double GetSizeYSecondary(double cy) {return plotH*cy/yRange2;}
|
||||
|
||||
protected:
|
||||
ScatterDraw &_AddSeries(DataSource *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue