public final class PlaceHolderSource extends Object implements Source<Void>
Source that represents a BdvOverlay.
When a BdvOverlay is shown (with
BdvFunctions.showOverlay(BdvOverlay, String, BdvOptions)), a dummy
Source and ConverterSetup are added to the
BigDataViewer such that the visibility, display range, and color for
the overlay can be adjusted by the user, like for a normal Source.
PlaceHolderSource is not present at any time point, so it is never actually visible.
| Constructor and Description |
|---|
PlaceHolderSource(String name) |
| Modifier and Type | Method and Description |
|---|---|
net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<Void>> |
getInterpolatedMaskedSource(int t,
int level,
Interpolation method)
Get a
Masked version of the 3D
stack at timepoint index t, extended to infinity and interpolated. |
net.imglib2.RealRandomAccessible<Void> |
getInterpolatedSource(int t,
int level,
Interpolation method)
Get the 3D stack at timepoint index t, extended to infinity and interpolated.
|
net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<Void>> |
getMaskedSource(int t,
int level)
Get a
Masked version of the 3D stack at
timepoint index t. |
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
net.imglib2.RandomAccessibleInterval<Void> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
void |
getSourceTransform(int t,
int level,
net.imglib2.realtransform.AffineTransform3D transform)
Get the transform from the
source at the
given timepoint index and mipmap level into the global coordinate system. |
Void |
getType()
Get an instance of the pixel type.
|
mpicbg.spim.data.sequence.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, waitdoBoundingBoxCullingpublic PlaceHolderSource(String name)
public Void getType()
Sourcepublic String getName()
Sourcepublic mpicbg.spim.data.sequence.VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<Void>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<Void>public boolean isPresent(int t)
Sourcepublic net.imglib2.RandomAccessibleInterval<Void> getSource(int t, int level)
Sourcepublic net.imglib2.RealRandomAccessible<Void> getInterpolatedSource(int t, int level, Interpolation method)
SourcegetInterpolatedSource in interface Source<Void>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<Void>> getMaskedSource(int t, int level)
SourceMasked version of the 3D stack at
timepoint index t.
By default, this is just Source.getSource(int, int) augmented with a constant
mask 1.0.
getMaskedSource in interface Source<Void>t - timepoint indexlevel - mipmap levelpublic net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<Void>> getInterpolatedMaskedSource(int t, int level, Interpolation method)
SourceMasked version of the 3D
stack at timepoint index t, extended to infinity and interpolated.
By default, this is just Source.getInterpolatedSource(int, int, bdv.viewer.Interpolation) augmented with a
constant mask 1.0.
However, most sources should override this to extend Source.getMaskedSource(int, int) to infinity (with a 0 mask) and
interpolate.
getInterpolatedMaskedSource in interface Source<Void>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public void getSourceTransform(int t,
int level,
net.imglib2.realtransform.AffineTransform3D transform)
Sourcesource at the
given timepoint index and mipmap level into the global coordinate system.getSourceTransform in interface Source<Void>t - timepoint indexlevel - mipmap leveltransform - is set to the source-to-global transform, that transforms
source coordinates into the global coordinatesCopyright © 2012–2025 BigDataViewer. All rights reserved.