Re: thanks, slider example

Hi Doug,
> OK, I do actually have a couple of questions:
> 1) Why won't the shape appear till after clicking on the slider? (It
> worked for me before I "cleaned up" my code. I see the same problem in
> some Test programs.)
Congratulations, and thank you.  You have uncovered a bug.  I know the
fix, but am very busy next week so the fix won't show up on our ftp
for a while (we run a lot of tests before updating the ftp site).
In the meantime, you can hack Plot2D to work by moving
'vc.setValue(50.0);' after 'display.addReference(ref2, null);' and
inserting another statement as follows:
    display.addReference(ref2, null);
> 2) Is there a convenient way to center the text shape thingy?
> ("center=true" seems to apply only to the horizontal)
"center" is more necessary in the horizontal because of the difficulty
of estimating the width of a string.  In the vertical, you could just
subtract 0.5*up from start (it might not be exactly 0.5) to center.
> 3) Is my code a bunch of crap or am I catching on to this thing? Any
> comments welcome.
Looks like you've got a pretty good grasp of VisAD.
One small thing: the FlatField range elements of your FieldImpl
time_sequence all have domain Sets with one element.  So those
FlatField range elements could instead be RealTuples and and
time_sequence could be a FlatField rather than a FieldImpl (unless
you are planning to change time_sequence so that its FlatField
range elements have domain Sets with more than one element).
That is, time_sequence has the MathType:
  (Time -> ((x, y) -> shape))
and this could be changed to:
  (Time -> (x, y, shape))
in which case time_sequence could be a FlatField.
I am anxious to see how your application develops - please keep me
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
whibbard@xxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: