Package bdv.viewer

Interface Source<T>

    • Method Detail

      • isPresent

        boolean isPresent​(int t)
        Is there a stack at timepoint index t?
        Parameters:
        t - timepoint index
        Returns:
        true, if there is data for timepoint index t.
      • getSource

        net.imglib2.RandomAccessibleInterval<T> getSource​(int t,
                                                          int level)
        Get the 3D stack at timepoint index t.
        Parameters:
        t - timepoint index
        level - mipmap level
        Returns:
        the stack.
      • doBoundingBoxCulling

        default boolean doBoundingBoxCulling()
        Whether this source participates in bounding box culling.

        If true, then this source will only be rendered if its bounding box, i.e., the interval of 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.)

        Returns:
        true, if this source participates in bounding box culling.
      • getInterpolatedSource

        net.imglib2.RealRandomAccessible<T> getInterpolatedSource​(int t,
                                                                  int level,
                                                                  Interpolation method)
        Get the 3D stack at timepoint index t, extended to infinity and interpolated.
        Parameters:
        t - timepoint index
        level - mipmap level
        method - interpolation method to use
        Returns:
        the extended and interpolated stack.
      • getSourceTransform

        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.
        Parameters:
        t - timepoint index
        level - mipmap level
        transform - is set to the source-to-global transform, that transforms source coordinates into the global coordinates
      • getType

        T getType()
        Get an instance of the pixel type.
        Returns:
        instance of pixel type.
      • getName

        String getName()
        Get the name of the source.
        Returns:
        the name of the source.
      • getNumMipmapLevels

        int getNumMipmapLevels()