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 » PlotCtrl
Re: PlotCtrl [message #23517 is a reply to message #22884] Mon, 26 October 2009 09:22 Go to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
pveach1 wrote on Mon, 24 August 2009 13:28


I would like to see this project expanded into a general charting library. It has a lot of potential especially when combined with the new headless drawing capabilities.

Google has an online charting service. But if they change it, a lot of programs will break.

One of the more confusing things is setting coordinate transformation/translation. I am currently using Win32 API to set xformations. Like this:
XFORM xm_  = { 1, 0, 0, -1, FLOAT(size.cx -100), FLOAT(Offset + size.cy+50)};		
HDC hdc = w.GetHandle();
SetGraphicsMode ( hdc, GM_ADVANCED );
SetWorldTransform ( hdc, & xm );
// do something
SetWorldTransform ( hdc, & xm_default ) ; // restore coordinates



This is only valid for WIN2k or later.

I am unsure how U++ draw does xforms.



Any plotting package IMHO should use Painter.

See PainterExamples, that is selfexplaining code covering all details, including transformation matrices.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Splash Screen for Your applications!
Next Topic: String near match algorithm
Goto Forum:
  


Current Time: Sat Jun 08 08:18:40 CEST 2024

Total time taken to generate the page: 0.01145 seconds