Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
TAChart
(Moderator:
Ask
) »
Datapoint HintTool's PointIndex not updated for CubicSplineSeries
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: Datapoint HintTool's PointIndex not updated for CubicSplineSeries (Read 374 times)
wp
Hero Member
Posts: 559
Datapoint HintTool's PointIndex not updated for CubicSplineSeries
«
on:
February 17, 2013, 12:07:39 am »
The DatapointHintTool gives access to the point index of the datapoint in the series over which the mouse is hovering. And when moving the mouse along the series the cursor is locked to the nearest data point if the the mouse cursor is sufficiently close. This behaviour is not true for the CubicSplineSeries. The OnDraw event of the tool always reports PointIndex = -1, and the cursor tracks the entire curve, not only the data points -- see attached demo. While the latter behaviour might be advantageous also for other interpolating series it would be good to have also the mode of locking to data points in which PointIndex is valid. The current behavior makes the TDatapointHintTool.OnDraw event handler querying data point values unnecessarily complicated if the user can change the interpolation type (linear segments, cubic spline, B-Spline).
Logged
Lazarus trunk / fpc 2.6.2 / Win32
wp
Hero Member
Posts: 559
Re: Datapoint HintTool's PointIndex not updated for CubicSplineSeries
«
Reply #1 on:
February 18, 2013, 12:42:43 am »
I tried to use the NearestGraphPoint property as a replacement. However this one has rounding errors for the BSplineSeries. See attached demo which uses data points at integer coordinates.
Logged
Lazarus trunk / fpc 2.6.2 / Win32
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
TAChart
(Moderator:
Ask
) »
Datapoint HintTool's PointIndex not updated for CubicSplineSeries
Recent
[Solved] What did I do to...
by
Avishai
[
Today
at 07:37:27 am]
Can LCL classes use Qt or...
by
vicot
[
Today
at 06:43:02 am]
ReverseStringUTF8 functio...
by
typo
[
Today
at 02:48:07 am]
TStringGrid: How to move ...
by
jshand2010
[
Today
at 12:27:48 am]
How does one specify a fi...
by
Giu
[May 24, 2013, 11:10:01 pm]
PrintDlg.Execute raises r...
by
reltek
[May 24, 2013, 10:32:20 pm]
New component tab with gr...
by
howardpc
[May 24, 2013, 10:03:02 pm]
True Democracy: Game for ...
by
count
[May 24, 2013, 09:18:44 pm]
Visual form designer for ...
by
zeljko
[May 24, 2013, 07:53:14 pm]
Building 1.1
by
Giu
[May 24, 2013, 06:33:43 pm]