- java.lang.Object
-
- bdv.util.PlaceHolderSource
-
public final class PlaceHolderSource extends Object implements Source<Void>
A dummySourcethat represents aBdvOverlay.When a
BdvOverlayis shown (withBdvFunctions.showOverlay(BdvOverlay, String, BdvOptions)), a dummySourceandConverterSetupare added to theBigDataViewersuch that the visibility, display range, and color for the overlay can be adjusted by the user, like for a normalSource.PlaceHolderSourceis notpresentat any time point, so it is never actually visible.- Author:
- Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description PlaceHolderSource(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<Void>>getInterpolatedMaskedSource(int t, int level, Interpolation method)Get aMaskedversion of the3D stackat 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 aMaskedversion of the3D stackat timepoint index t.StringgetName()Get the name of the source.intgetNumMipmapLevels()net.imglib2.RandomAccessibleInterval<Void>getSource(int t, int level)Get the 3D stack at timepoint index t.voidgetSourceTransform(int t, int level, net.imglib2.realtransform.AffineTransform3D transform)Get the transform from thesourceat the given timepoint index and mipmap level into the global coordinate system.VoidgetType()Get an instance of the pixel type.mpicbg.spim.data.sequence.VoxelDimensionsgetVoxelDimensions()Get voxel size and unit for this source.booleanisPresent(int t)Is there a stack at timepoint index t?-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.viewer.Source
doBoundingBoxCulling
-
-
-
-
Constructor Detail
-
PlaceHolderSource
public PlaceHolderSource(String name)
-
-
Method Detail
-
getType
public Void getType()
Description copied from interface:SourceGet an instance of the pixel type.
-
getName
public String getName()
Description copied from interface:SourceGet the name of the source.
-
getVoxelDimensions
public mpicbg.spim.data.sequence.VoxelDimensions getVoxelDimensions()
Description copied from interface:SourceGet voxel size and unit for this source. May return null.- Specified by:
getVoxelDimensionsin interfaceSource<Void>- Returns:
- voxel size and unit or
null.
-
getNumMipmapLevels
public int getNumMipmapLevels()
- Specified by:
getNumMipmapLevelsin interfaceSource<Void>
-
isPresent
public boolean isPresent(int t)
Description copied from interface:SourceIs there a stack at timepoint index t?
-
getSource
public net.imglib2.RandomAccessibleInterval<Void> getSource(int t, int level)
Description copied from interface:SourceGet the 3D stack at timepoint index t.
-
getInterpolatedSource
public net.imglib2.RealRandomAccessible<Void> getInterpolatedSource(int t, int level, Interpolation method)
Description copied from interface:SourceGet the 3D stack at timepoint index t, extended to infinity and interpolated.- Specified by:
getInterpolatedSourcein interfaceSource<Void>- Parameters:
t- timepoint indexlevel- mipmap levelmethod- interpolation method to use- Returns:
- the extended and interpolated
stack.
-
getMaskedSource
public net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<Void>> getMaskedSource(int t, int level)
Description copied from interface:SourceGet aMaskedversion of the3D stackat timepoint index t.By default, this is just
Source.getSource(int, int)augmented with a constant mask1.0.- Specified by:
getMaskedSourcein interfaceSource<Void>- Parameters:
t- timepoint indexlevel- mipmap level- Returns:
- the masked stack
-
getInterpolatedMaskedSource
public net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<Void>> getInterpolatedMaskedSource(int t, int level, Interpolation method)
Description copied from interface:SourceGet aMaskedversion of the3D stackat timepoint index t, extended to infinity and interpolated.By default, this is just
Source.getInterpolatedSource(int, int, bdv.viewer.Interpolation)augmented with a constant mask1.0.However, most sources should override this to extend
Source.getMaskedSource(int, int)to infinity (with a0mask) and interpolate.- Specified by:
getInterpolatedMaskedSourcein interfaceSource<Void>- Parameters:
t- timepoint indexlevel- mipmap levelmethod- interpolation method to use- Returns:
- the extended and interpolated
stack.
-
getSourceTransform
public void getSourceTransform(int t, int level, net.imglib2.realtransform.AffineTransform3D transform)Description copied from interface:SourceGet the transform from thesourceat the given timepoint index and mipmap level into the global coordinate system.- Specified by:
getSourceTransformin interfaceSource<Void>- Parameters:
t- timepoint indexlevel- mipmap leveltransform- is set to the source-to-global transform, that transforms source coordinates into the global coordinates
-
-