Home » Developing U++ » UppHub » PlotCtrl
Re: PlotCtrl [message #23517 is a reply to message #22884] |
Mon, 26 October 2009 09:22  |
 |
mirek
Messages: 14256 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
|
|
|
Goto Forum:
Current Time: Sat May 03 11:14:52 CEST 2025
Total time taken to generate the page: 0.03680 seconds
|