T - public abstract class RealRandomAccessibleSource<T extends Type<T>> extends Object implements Source<T>
Source wrapping some RealRandomAccessible. Derived concrete
classes must implement getInterval(int, int) to specify which
interval to use for getSource(int, int).| Modifier and Type | Field and Description |
|---|---|
protected RealRandomAccessible<T> |
accessible |
protected boolean |
doBoundingBoxIntersectionCheck |
protected String |
name |
protected T |
type |
protected VoxelDimensions |
voxelDimensions |
| Constructor and Description |
|---|
RealRandomAccessibleSource(RealRandomAccessible<T> accessible,
T type,
String name) |
RealRandomAccessibleSource(RealRandomAccessible<T> accessible,
T type,
String name,
VoxelDimensions voxelDimensions) |
RealRandomAccessibleSource(RealRandomAccessible<T> accessible,
T type,
String name,
VoxelDimensions voxelDimensions,
boolean doBoundingBoxIntersectionCheck) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doBoundingBoxCulling()
Whether this source participates in bounding box culling.
|
RealRandomAccessible<T> |
getInterpolatedSource(int t,
int level,
Interpolation method)
Get the 3D stack at timepoint index t, extended to infinity and interpolated.
|
abstract Interval |
getInterval(int t,
int level)
Return the interval which should be used to bound the wrapped
(unbounded)
RealRandomAccessible for getSource(int, int). |
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
RandomAccessibleInterval<T> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
void |
getSourceTransform(int t,
int level,
AffineTransform3D transform)
Get the transform from the
source at the
given timepoint index and mipmap level into the global coordinate system. |
T |
getType()
Get an instance of the pixel type.
|
VoxelDimensions |
getVoxelDimensions()
Get voxel size and unit for this source.
|
boolean |
isPresent(int t)
Is there a stack at timepoint index t?
|
protected RealRandomAccessible<T extends Type<T>> accessible
protected final String name
protected final VoxelDimensions voxelDimensions
protected final boolean doBoundingBoxIntersectionCheck
public RealRandomAccessibleSource(RealRandomAccessible<T> accessible, T type, String name)
public RealRandomAccessibleSource(RealRandomAccessible<T> accessible, T type, String name, VoxelDimensions voxelDimensions)
public RealRandomAccessibleSource(RealRandomAccessible<T> accessible, T type, String name, VoxelDimensions voxelDimensions, boolean doBoundingBoxIntersectionCheck)
public boolean isPresent(int t)
Sourcepublic abstract Interval getInterval(int t, int level)
RealRandomAccessible for getSource(int, int).public RandomAccessibleInterval<T> getSource(int t, int level)
Sourcepublic RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
Sourcepublic void getSourceTransform(int t,
int level,
AffineTransform3D transform)
Sourcesource at the
given timepoint index and mipmap level into the global coordinate system.getSourceTransform in interface Source<T extends Type<T>>t - timepoint indexlevel - mipmap leveltransform - is set to the source-to-global transform, that transforms
source coordinates into the global coordinatespublic T getType()
Sourcepublic String getName()
Sourcepublic VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<T extends Type<T>>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<T extends Type<T>>public boolean doBoundingBoxCulling()
Source
If true, then this source will only be rendered if its bounding
box, i.e., the interval of Source.getSource(int, int), intersects the
current screen area (when transformed to viewer coordinates).
If false, then this source will be always rendered (if it is
set to be visible.)
doBoundingBoxCulling in interface Source<T extends Type<T>>true, if this source participates in bounding box culling.Copyright © 2015–2021 Fiji. All rights reserved.