Closed bogovicj closed 4 years ago
Why is the default doBoundingBoxCulling true
for RandomAccessibleSource
, but false
for RealRandomAccessibleIntervalSource
and RandomAccessibleSource4D
?
In my opinion, the default should be true
for ***IntervalSource
and false
for the others?
For completeness, could you also do the remaining
RandomAccessibleIntervalMipmapSource
RandomAccessibleIntervalSource
RandomAccessibleIntervalSource4D
VolatileRandomAccessibleIntervalMipmapSource
?
I would add the doBoundingBoxCulling
field and method override to AbstractSource
, and then just pass constructor parameters from the above ***Source
(which all extend AbstractSource
)
Thanks @tpietzsch
I would add the doBoundingBoxCulling field and method override to AbstractSource, and then just pass constructor parameters from the above ***Source (which all extend AbstractSource)
Done. The ***IntervalSource
s now default to true
, because that is the default state of the flag in AbstractSource
. Others default to false
- meaning constructors that don't take the flag as an argument set it to false.
One different case is RealRandomAccessibleIntervalSource
, which defaults to false
like the non-Interval
sources. When @axtimwalde and I talked, we thought this made sense.
Why is the default doBoundingBoxCulling true for RandomAccessibleSource, but false for RealRandomAccessibleIntervalSource and RandomAccessibleSource4D?
My mistake. Fixed now. (My initial draft had the flag mean "skip", then switched it to "do" and I got confused / that flag got lost :-/ thanks for catching).
thanks!
Depends on: https://github.com/bigdataviewer/bigdataviewer-core/pull/110
Added a constructor to
RandomAccessibleSource
setting the value of an immutable flag.Example
Test with the following: