public abstract class AbstractSource<T extends NumericType<T>> extends Object implements Source<T>
| Modifier and Type | Field and Description |
|---|---|
protected DefaultInterpolators<T> |
interpolators |
protected String |
name |
protected T |
type |
protected VoxelDimensions |
voxelDimensions |
| Constructor and Description |
|---|
AbstractSource(Supplier<T> typeSupplier,
String name) |
AbstractSource(T type,
String name) |
AbstractSource(T type,
String name,
boolean doBoundingBoxCulling) |
AbstractSource(T type,
String name,
VoxelDimensions voxelDimensions) |
AbstractSource(T type,
String name,
VoxelDimensions voxelDimensions,
boolean doBoundingBoxCulling) |
| 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.
|
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
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?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSource, getSourceTransformprotected final T extends NumericType<T> type
protected final String name
protected final VoxelDimensions voxelDimensions
protected final DefaultInterpolators<T extends NumericType<T>> interpolators
public AbstractSource(T type, String name, VoxelDimensions voxelDimensions, boolean doBoundingBoxCulling)
public AbstractSource(T type, String name, VoxelDimensions voxelDimensions)
public boolean isPresent(int t)
SourceisPresent in interface Source<T extends NumericType<T>>t - timepoint indexpublic T getType()
SourcegetType in interface Source<T extends NumericType<T>>public RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
SourcegetInterpolatedSource in interface Source<T extends NumericType<T>>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public String getName()
SourcegetName in interface Source<T extends NumericType<T>>public VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<T extends NumericType<T>>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<T extends NumericType<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 NumericType<T>>true, if this source participates in bounding box culling.Copyright © 2015–2021 Fiji. All rights reserved.