Package skyview.geometry.projecter
Class Mer
- java.lang.Object
-
- skyview.geometry.Transformer
-
- skyview.geometry.Projecter
-
- skyview.geometry.projecter.Mer
-
- All Implemented Interfaces:
java.io.Serializable,Component
public class Mer extends Projecter
This class implements the Mercator projection- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMer.MerDeproj
-
Constructor Summary
Constructors Constructor Description Mer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()A description of the componentjava.lang.StringgetName()The name of the ComponentDeprojecterinverse()Get the associated deprojecterbooleanisInverse(Transformer trans)Is this the inverse of another transformation?double[]shadowPoint(double x, double y)Find the shadow point for the given element.booleanstraddle(double[][] pnts)Does this figure straddle the boundary.booleanstraddleable()Is it possible for a pixel to straddle the valid region.double[][][]straddleComponents(double[][] input)Get the straddle regions from a given set.voidtransform(double[] sphere, double[] plane)Convert a single point where the output vector is supplied.booleanvalidPosition(double[] plane)Is this a valid position in the projection plane for this image.-
Methods inherited from class skyview.geometry.Projecter
allValid, getInputDimension, getOutputDimension, getXTiling, getYTiling, tissot
-
Methods inherited from class skyview.geometry.Transformer
transform, transform
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the Component
-
getDescription
public java.lang.String getDescription()
A description of the component
-
inverse
public Deprojecter inverse()
Get the associated deprojecter
-
isInverse
public boolean isInverse(Transformer trans)
Is this the inverse of another transformation?- Specified by:
isInversein classTransformer
-
transform
public final void transform(double[] sphere, double[] plane)Description copied from class:TransformerConvert a single point where the output vector is supplied.- Specified by:
transformin classTransformer- Parameters:
sphere- The input vector.plane- The output vector, it may be the same as the input vector if the dimensionalities are the same. All transformers are expected to work with aliased inputs and output.
-
validPosition
public boolean validPosition(double[] plane)
Description copied from class:ProjecterIs this a valid position in the projection plane for this image. This default is appropriate for all projections where the projection plane is infinite.- Overrides:
validPositionin classProjecter
-
straddleable
public boolean straddleable()
Description copied from class:ProjecterIs it possible for a pixel to straddle the valid region.- Overrides:
straddleablein classProjecter
-
straddle
public boolean straddle(double[][] pnts)
Does this figure straddle the boundary.
-
shadowPoint
public double[] shadowPoint(double x, double y)Find the shadow point for the given element.- Overrides:
shadowPointin classProjecter
-
straddleComponents
public double[][][] straddleComponents(double[][] input)
Get the straddle regions from a given set. We don't truncate the at the boundaries of the ellipse. We can probably calulate this (i.e., by looking to see if each component crosses the ellipse boundary) but invalid pixels should be handled by the validPosition check. It seems unlikely that anyone is handling this boundary perfectly...- Overrides:
straddleComponentsin classProjecter
-
-