NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #524 (closed defect: fixed)

Opened 2011-05-19T12:37:45-05:00

Last modified 2011-05-19T13:05:50-05:00

DatasetView:setPosition() called more often than expected

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2011: May-09 to May-20
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

When you scroll within a slider of a 3 or more dimensional image DatasetView::setPosition() gets called more than once. First the current value is sent, then the new value, then the new value again. Because of this projector.map() is getting called multiple times.

Do one of two things:
1) determine why its getting called multiple times and avoid it
OR
2) cache last dimensionalIndex and value passed in and only call the drawing code when the position or dimensionalIndex changes

Change History

comment:1 Changed 2011-05-19T13:05:50-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 267a33831ffeddb55ce12b6d172325010c50e508.