Class DataViewCoords
java.lang.Object
org.micromanager.ndviewer.internal.gui.DataViewCoords
public class DataViewCoords extends Object
- Author:
- henrypinkard
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataViewCoords(DataSourceInterface cache, String currentChannel, double xView, double yView, double initialWidth, double initialHeight, int[] imageBounds, boolean rgb) -
Method Summary
Modifier and Type Method Description DataViewCoordscopy()StringgetActiveChannel()HashMap<String,Integer>getAxesPositions()intgetAxisPosition(String axis)int[]getBounds()Point2D.DoublegetDisplayImageSize()doublegetDownsampleFactor()Point2D.DoublegetFullResSourceDataSize()doublegetMagnification()doublegetMagnificationFromResLevel()Computes the scaling between display pixels and whatever pixels they were derived fromintgetResolutionIndex()Compute the resolution index used for gettting data based on zoom and available resolution indicesPoint2D.DoublegetSourceImageSizeAtResLevel()Point2D.DoublegetViewOffset()booleanisRGB()voidsetActiveChannel(String channelName)voidsetAxisPosition(String axis, Integer position)voidsetDisplayImageSize(int width, int height)voidsetFullResSourceDataSize(double newWidth, double newHeight)voidsetImageBounds(int[] bounds)voidsetViewOffset(double xOffset, double yOffset)
-
Field Details
-
Constructor Details
-
DataViewCoords
public DataViewCoords(DataSourceInterface cache, String currentChannel, double xView, double yView, double initialWidth, double initialHeight, int[] imageBounds, boolean rgb)
-
-
Method Details
-
setImageBounds
public void setImageBounds(int[] bounds) -
getSourceImageSizeAtResLevel
- Returns:
-
isRGB
public boolean isRGB() -
setFullResSourceDataSize
public void setFullResSourceDataSize(double newWidth, double newHeight) -
getFullResSourceDataSize
-
getDisplayImageSize
-
getMagnificationFromResLevel
public double getMagnificationFromResLevel()Computes the scaling between display pixels and whatever pixels they were derived from -
getMagnification
public double getMagnification() -
getResolutionIndex
public int getResolutionIndex()Compute the resolution index used for gettting data based on zoom and available resolution indices- Returns:
-
getDownsampleFactor
public double getDownsampleFactor() -
getViewOffset
-
setViewOffset
public void setViewOffset(double xOffset, double yOffset) -
setDisplayImageSize
public void setDisplayImageSize(int width, int height) -
setAxisPosition
-
getAxisPosition
-
copy
-
getActiveChannel
-
getAxesPositions
-
setActiveChannel
-
getBounds
public int[] getBounds()
-