Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
Datapoint HintTool's PointIndex not updated for CubicSplineSeries
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: Datapoint HintTool's PointIndex not updated for CubicSplineSeries (Read 1570 times)
wp
Hero Member
Posts: 4399
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 3.0.4 / all 32-bit on Win-10
wp
Hero Member
Posts: 4399
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 3.0.4 / all 32-bit on Win-10
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
Datapoint HintTool's PointIndex not updated for CubicSplineSeries
Recent
Writing a Free Pasca Libr...
by
Igor Pool
[
Today
at 11:39:19 am]
Nested Functions and Gene...
by
MountainQ
[
Today
at 11:37:50 am]
Identfier not found "Send...
by
rvk
[
Today
at 11:08:19 am]
fpreport: TFPReportUserDa...
by
af0815
[
Today
at 10:48:57 am]
CAD program written in La...
by
zamtmn
[
Today
at 10:38:46 am]
Assistance with Android P...
by
Handoko
[
Today
at 10:38:18 am]
Help me, Firebird Sql emb...
by
tonyw
[
Today
at 10:17:32 am]
Lazarus Stuck at compile ...
by
Deepaak
[
Today
at 10:12:22 am]
LazAutoSave - IDE Plugin
by
GetMem
[
Today
at 10:04:36 am]
Sizable TPanel
by
zoltanleo
[
Today
at 09:52:27 am]