U++ framework
Do not panic. Ask here before giving up.

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: 14290
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: Sun Apr 26 04:57:39 GMT+2 2026

Total time taken to generate the page: 0.00581 seconds