Re: avoiding a 3D graphic to refresh

Hi Vladimir,

> Does somebody know if it is possible
> to avoid a 3D graphic to refresh during
> the mouse dragging?
> Actually, is it possible to make a repaint
> only when the mouse is released, having
> only the axis repainted during the dragging,
> for example?
> (in order to make the mouse manipulation faster)

In order to do this, you'd need to write a custom DisplayRenderer
and MouseBehavior, along with a custom version of visad.MouseHelper.
It would be a bit complex, but the good news is that you can
probably do it by hacking the code from the existing classes.

Specifically, your DisplayRenderer and MouseBehavior would be
almost identical to DefaultDisplayRendererJ3D and
MouseBehaviorJ3D, except they would use a new version of
MouseHelper that only called ProjectionControl.setMatrix()
on mouse release events.

Good luck,
p.s., MouseHelper should not be confused with the product
sold to cats and foxes during lean times.
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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