public class DataViewCoords extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
xMax_ |
int |
xMin_ |
int |
yMax_ |
int |
yMin_ |
| Constructor and Description |
|---|
DataViewCoords(NDViewerDataSource cache,
double xView,
double yView,
Double initialWidth,
Double initialHeight,
int[] imageBounds,
boolean rgb) |
| Modifier and Type | Method and Description |
|---|---|
DataViewCoords |
copy() |
String |
getActiveChannel() |
HashMap<String,Object> |
getAxesPositions() |
Object |
getAxisPosition(String axis) |
int[] |
getBounds() |
Point2D.Double |
getDisplayImageSize() |
double |
getDownsampleFactor() |
Point2D.Double |
getFullResSourceDataSize() |
double |
getMagnification() |
double |
getMagnificationFromResLevel()
Computes the scaling between display pixels and whatever pixels they were
derived from
|
int |
getResolutionIndex()
Compute the resolution index used for gettting data based on zoom and
available resolution indices
|
Point2D.Double |
getSourceImageSizeAtResLevel() |
Point2D.Double |
getViewOffset() |
boolean |
isRGB() |
void |
setActiveChannel(String channelName) |
void |
setAxisPosition(String axis,
Object position) |
void |
setDisplayImageSize(int width,
int height) |
void |
setFullResSourceDataSize(double newWidth,
double newHeight) |
void |
setImageBounds(int[] bounds) |
void |
setViewOffset(double xOffset,
double yOffset) |
public int xMax_
public int yMax_
public int xMin_
public int yMin_
public DataViewCoords(NDViewerDataSource cache, double xView, double yView, Double initialWidth, Double initialHeight, int[] imageBounds, boolean rgb)
public void setImageBounds(int[] bounds)
public Point2D.Double getSourceImageSizeAtResLevel()
public boolean isRGB()
public void setFullResSourceDataSize(double newWidth,
double newHeight)
public Point2D.Double getFullResSourceDataSize()
public Point2D.Double getDisplayImageSize()
public double getMagnificationFromResLevel()
public double getMagnification()
public int getResolutionIndex()
public double getDownsampleFactor()
public Point2D.Double getViewOffset()
public void setViewOffset(double xOffset,
double yOffset)
public void setDisplayImageSize(int width,
int height)
public DataViewCoords copy()
public String getActiveChannel()
public void setActiveChannel(String channelName)
public int[] getBounds()
Copyright © 2023. All rights reserved.