Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16291 > unrolled thread

LocatorPane and tooltips for the locators

Started by"E. Martin-Serrano" <drmartinspain@gmail.com>
First post2013-11-30 07:22 +0000
Last post2013-11-30 07:22 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  LocatorPane and tooltips for the locators "E. Martin-Serrano" <drmartinspain@gmail.com> - 2013-11-30 07:22 +0000

#16291 — LocatorPane and tooltips for the locators

From"E. Martin-Serrano" <drmartinspain@gmail.com>
Date2013-11-30 07:22 +0000
SubjectLocatorPane and tooltips for the locators
Message-ID<l7c3nt$ccl$1@smc.vnet.net>
Hi,

I have the below sketchy  *LocatorPane* piece of code  with dynamic
locators,  defined over  the set of points pts . I use this device to deal
with multiple 2D Bezier curves, which involve several sets of  grouped
locators  for the controls of each curve. *LocatorPane* imposes some
restrictions on dynamic programs. **Locator** itself is (should be) much
more flexible but it does not work for me yet. When the dynamic stuff gets
just a bit complex (not very much) *Locator* does not work (definitively)
and *LocatorPane* seems to be much more agile and handy, by far. But it
imposes other restrictions not to be mentioned here, except for the one
about *Tooltip* on the locators (as far as I am aware of it).

Now, it follows  the *LocatorPane* piece of pseudo code  with dynamic
locators 

----------------------------------------

pts = *list of  {xi, yi}  locator coordinates*

calcAll[pts_,stuff_]:=  (* calcAllBody to treat secondary dynamic items*)

LocatorPane[Dynamic[pts, (pts = #; calcAll[pts, suff]) &],
*LocatorPaneBody*]

-----------------------------

This generates a LocatorPane with the set ts of dynamic  locators
partitioned according it is needed. But, I  need the locators to be wrapped
by *Tooltip*,  so that the current position of each  pts[[i]] could be
displayed  at will, however I can't  find how this can be done within the
*LocatorPane* construct, since the locators themselves are defined in the
heading part of the construct, namely: *Dynamic[pts, (pts = #; calcAll[pts,
suff]) &]*,  in no other place of the *LocatorPane* construct are the
locators mentioned.



Currently I have this working with inset labels on every locator, but it is
not the proper solution at all.



By the way, my previous post on Intersecting Bezier is just about 2D curves.



Any help will be appreciated.



Cheers.



E. Martin-Serrano

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web