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 » GraphDraw/GraphCtrl
Re: GraphDraw/GraphCtrl [message #57116 is a reply to message #57071] Wed, 26 May 2021 16:22 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Did you have time to play around with the selection ?

I deployed it to one of applications and had to make some adjustments and add WhenSelectAction.
==> This first use-case is now OK for me.
Next step is to try to deploy it to ScatterSeries.
With these two use-cases, maybe selection will be stabilized.

How does you're use-case go ?

I will deliver tonight a new version

[Updated on: Wed, 26 May 2021 16:23]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #57157 is a reply to message #57116] Tue, 01 June 2021 23:23 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Here is my lattest update Smile


There is a lot of cleaning up and corrections around the GraphSerie style editor
As for selection, I had to do some small refactoring (nothing really heavy, but you will be impacted: See PaintDataPoint() and MCoordinateConverter


All modifications are:
Quote:
* GraphSerieEditorInterface:
* Added default filling of Functions<> (no more needed to fill them in custom creator function)
* Changed procedure used to create GraphSerieEditorInterface instances
==> You now have to use GraphSerieEditorInterface::Create()
This allows to "catch" types and have full type checking in code
* Added RevertChange() : used by the [Cancel] button (All is managed automatically by doing a copy of the Style before modifying it)
!! NOTE !!! : All MY_GrapSerie::StyleGS structs now MUST have an 'operator=()' defined (needed to copy styles)

* Series Style editor :
* corrected serie selection when filtering & sorting
* Corrected preview update
* added upddate of preview in list table

* Added FitToData() capacities to SimpleJobSerie example

* Corrected FitToVisibleData() (had same behaviour as FitToData() since refactoring)

* Removed method: CustomData::PaintDataPoint(BufferPainter& , int scale, const MCoordinateConverter& coordConv )
Only version with 'int style' is kept

* Introduced class : MCoordinateConverter
* Changed GraphSerie::SelectXxx() API (to use MCoordinateConverter)
* Changed GraphSerie::PaintXxx() API (to use MCoordinateConverter)
* Changed CustomData class methods API (to use MCoordinateConverter)

* Added GraphSerie selection related action Functions<>
Event<> WhenPreSelectAction;
Event<> WhenPostSelectAction;
Re: GraphDraw/GraphCtrl [message #57189 is a reply to message #57157] Mon, 07 June 2021 10:43 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 109
Registered: February 2019
Location: India
Experienced Member
Hello Didier!

You are taking GraphCtrl to new heights! Really cool 👍

Sorry last few days I got busy with other things a bit, also I was trying to show the info by mouse hover, which I could achieve by using CursorImage(), though perhaps it wasn't the intention of that method, but it is working quite well.

In a few days I'll download the new package and will sync.

Noticed one thing though now, which wasn't happening before:
If the GraphCtrl Rect has non-positive height or width (which might happen by window resizing or by moving a Splitter), then it crashes at this line:

index.php?t=getfile&id=6467&private=0

Please notice the _plotRect

Will let you know how the syncing goes, very soon.


Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #57191 is a reply to message #57189] Mon, 07 June 2021 13:33 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

I also noticed this crash, and did not take time to look into it.
I will do it as soon as I have some time
Re: GraphDraw/GraphCtrl [message #57196 is a reply to message #57191] Tue, 08 June 2021 22:28 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Quote:
If the GraphCtrl Rect has non-positive height or width (which might happen by window resizing or by moving a Splitter), then it crashes at this line:


just surround the code with :
if ( ( _plotRect.GetHeight() > 0 ) && ( _plotRect.GetWidth() > 0 ) ) {


just like for 'paint PLOT DATA'

It will be in next release Smile
Re: GraphDraw/GraphCtrl [message #57306 is a reply to message #57196] Sat, 03 July 2021 06:18 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 109
Registered: February 2019
Location: India
Experienced Member
Hello Didier!

I'm all done with the syncing, and woah!

You indeed made huge progress with the selection, using ALT and CTRL and SHIFT, amazing! And the style editor improvements are done wonderfully as well. Though as of now I'm not using the full potential of these features, but very soon I will!

Kudos to you 👍👍



Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #57307 is a reply to message #57306] Sat, 03 July 2021 09:41 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Glad to see the recent evolutions fit you're apps needs Thumbs Up
If you need to change the default keys, look at :
GraphCtrl_Keys::Reset()


I am less working on it these days : rainning has stopped Very Happy
So i'm spending most of my spare time taking advantage of the good weather Cool

[Updated on: Sat, 03 July 2021 09:44]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #59771 is a reply to message #57307] Wed, 12 April 2023 09:12 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 109
Registered: February 2019
Location: India
Experienced Member
Hello Didier!

It's been a long time since we communicated last. How have you been? Facing another rainy season soon? Very Happy We are getting geared up for the famous Indian summer here Shocked

I have been using the GraphCtrl, the masterpiece done by you in some projects. Have you done some more refinements to it? If yes then let me have the latest one please.

I've got one question: is it possible to keep the scale factors for both X and Y scale same always? I did it some messy way by overriding paint and setting min and max of axes, just wondering if there would be a better way.


Regards,
Pradip

[Updated on: Thu, 13 April 2023 07:07]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #60468 is a reply to message #59771] Fri, 23 February 2024 18:23 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Nice to here about you.
It's been some time since i've connected to the forum, although I go to it without connecting myself ... so I missed you're message Embarassed

I have done some enhancements since then (maybe not much though : I didn't have any needs) but I am currently adding data selection for ScatterSeries (I already added whole serie selection/highlight through legend select)

I will try to add X/Y zoom synchronisation.
Re: GraphDraw/GraphCtrl [message #60469 is a reply to message #60468] Fri, 23 February 2024 18:26 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello again Pradip,
do you have an image of you're app using GraphCtrl, so I can see what you've done with it, how you styled it ?

Thanks Smile
Previous Topic: Anboto/Surface updated
Goto Forum:
  


Current Time: Thu Mar 28 15:27:15 CET 2024

Total time taken to generate the page: 0.01540 seconds