Package skyview.survey
Class ProxyImage
- java.lang.Object
-
- skyview.survey.Image
-
- skyview.survey.ProxyImage
-
- All Implemented Interfaces:
java.io.Serializable,Component
public class ProxyImage extends Image
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProxyImage(java.lang.String spell, WCS wcs, int width, int height, int depth)Construct a WCS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearData()Clear the data arrayImagegetBaseImage()Get the current 'real' image.double[]getCenter(int npix)Get the center position of the given output pixeldouble[][]getCorners(int npix)Get the corners of the given output pixeldoublegetData(long npix)Get a pixels data associated with the image.double[]getDataArray()Get the data as an arrayintgetDepth()Get the number of planes in the imageintgetHeight()Get the height of the imagejava.lang.StringgetName()Get the name of the imagejava.lang.StringgetSpell()Get the spell associated with the proxyTransformergetTransformer()Get the transformation to the pixel coordinates of the imageWCSgetWCS()Get the WCS associated with the image.intgetWidth()Get the width of the imagevoidsetData(long npix, double newData)Set the Data associated with the image.voidsetDataArray(double[] newData)Set the data arrayvoidsetFactory(ImageFactory imFac)Set the factory that is used to create the real imagesprotected voidsetName(java.lang.String name)set the name of the imagebooleanvalid()Is this currently a fully validated image?voidvalidate()Make sure the image is read for detailed use.-
Methods inherited from class skyview.survey.Image
getDescription, initialize, isTiled, setAccumulate
-
-
-
-
Constructor Detail
-
ProxyImage
public ProxyImage(java.lang.String spell, WCS wcs, int width, int height, int depth) throws TransformationExceptionConstruct a WCS- Throws:
TransformationException
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the image
-
setName
protected void setName(java.lang.String name)
set the name of the image
-
setFactory
public void setFactory(ImageFactory imFac)
Set the factory that is used to create the real images
-
getData
public double getData(long npix)
Get a pixels data associated with the image.
-
getDataArray
public double[] getDataArray()
Get the data as an array- Overrides:
getDataArrayin classImage
-
setData
public void setData(long npix, double newData)Set the Data associated with the image.
-
setDataArray
public void setDataArray(double[] newData)
Set the data array- Overrides:
setDataArrayin classImage
-
getTransformer
public Transformer getTransformer()
Get the transformation to the pixel coordinates of the image- Overrides:
getTransformerin classImage
-
getDepth
public int getDepth()
Get the number of planes in the image
-
getCenter
public double[] getCenter(int npix)
Get the center position of the given output pixel
-
getCorners
public double[][] getCorners(int npix)
Get the corners of the given output pixel- Overrides:
getCornersin classImage
-
validate
public void validate()
Make sure the image is read for detailed use. Replace the proxy with the real image
-
valid
public boolean valid()
Is this currently a fully validated image?
-
getBaseImage
public Image getBaseImage()
Get the current 'real' image.- Overrides:
getBaseImagein classImage
-
getSpell
public java.lang.String getSpell()
Get the spell associated with the proxy
-
-