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












SourceForge.net Logo
Home » Developing U++ » UppHub » Scatter: Propose to add new methods
Re: Scatter: Propose to add new methods [message #28585 is a reply to message #28581] Wed, 08 September 2010 07:46 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

It is perfect!

koldo wrote on Wed, 08 September 2010 00:27

Hello Ion

You read my mind Smile. I like them.

And this?:

double Scatter::GetXByPoint(const int x){
	return (x-GetH_Border())*GetXRange()/(GetSize().cx-2*GetH_Border()-1)+GetXMin();		
}

double Scatter::GetYByPoint(const int y){
	return (GetSize().cy-GetV_Border()-y-1)*GetYRange()/(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1)+GetYMin();
}

double Scatter::GetY2ByPoint(const int y){
	return (GetSize().cy-GetV_Border()-y-1)*GetY2Range()/(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1)+GetYMin2();
}

double Scatter::GetXPointByValue(const double x){
	return x-GetXMin())/GetXRange()*(GetSize().cx-2*GetH_Border()-1)+GetH_Border();
}

double Scatter::GetYPointByValue(const double y){
	return (GetSize().cy-GetV_Border()-1)-(y-GetYMin())/GetYRange()*(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1);
}



 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Docking: How to dock to the entire portion of what remains?
Next Topic: Scatter : getDrawing !!!! help !!!!
Goto Forum:
  


Current Time: Thu May 09 18:38:36 CEST 2024

Total time taken to generate the page: 0.02302 seconds