|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ast.AstObject
uk.ac.starlink.ast.Mapping
uk.ac.starlink.ast.IntraMap
public class IntraMap
Java interface to the AST IntraMap
class
- map points using a private transformation function.
The IntraMap
allows you to use a custom transformation
function, as implemented by a Transformer
object,
to perform the transformations used by a Mapping
.
This allows you to create Mapping
s that perform any
conceivable coordinate transformation.
However, an IntraMap
is intended for use within a
given software environment, and if they are to be communicated
via Channel
s can only be used where class libraries containing
the appropriate Transformer
classes are available
(and only if those classes are Serializable
).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.starlink.ast.Mapping |
---|
Mapping.Interpolator, Mapping.Spreader |
Field Summary |
---|
Fields inherited from class uk.ac.starlink.ast.Mapping |
---|
LINEAR_INTERPOLATOR, LINEAR_SPREADER, NEAREST_INTERPOLATOR, NEAREST_SPREADER |
Fields inherited from class uk.ac.starlink.ast.AstObject |
---|
AST__BAD, AST__TUNULL, pointer |
Constructor Summary | |
---|---|
IntraMap(Transformer1 trans)
Constructs a one-dimensional IntraMap from a given
Transformer1 object. |
|
IntraMap(Transformer2 trans)
Constructs a two-dimensional IntraMap from a given
Transformer2 object. |
|
IntraMap(Transformer trans,
int nin,
int nout)
Constructs an IntraMap from a given Transformer
object. |
Method Summary | |
---|---|
void |
channelize()
This method, called by Channel's write method, attempts to serialize this IntraMap's Transformer object into the IntraFlag attribute. |
AstObject |
copy()
Returns a fairly deep copy of this object. |
void |
finalize()
Finalizes the object. |
void |
unChannelize()
This method, called by Channel's read method, recovers the serialized Transformer object from the IntraFlag attribute of the AST object, and invokes the non-trivial parts of the IntraMap's construction. |
Methods inherited from class uk.ac.starlink.ast.Mapping |
---|
decompose, getInvert, getNin, getNout, getReport, getTranForward, getTranInverse, invert, linearApprox, mapBox, mapSplit, rate, rebin, rebinD, rebinF, rebinI, resample, resampleB, resampleD, resampleF, resampleI, resampleL, resampleS, setInvert, setReport, simplify, tran1, tran2, tranGrid, tranN, tranP |
Methods inherited from class uk.ac.starlink.ast.AstObject |
---|
annul, clear, delete, equals, getAstConstantI, getB, getC, getD, getF, getI, getID, getIdent, getL, getNobject, getObjSize, getRefCount, hashCode, isThreaded, reportVersions, sameObject, set, setB, setC, setD, setF, setI, setID, setIdent, setL, show, test, tune |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntraMap(Transformer trans, int nin, int nout)
IntraMap
from a given Transformer
object.
trans
- the Transformer which will do the actual transformationsnin
- the number of input coordinates for the forward
transformation
(or output coordinates for the inverse transformation)nout
- the number of output coordinates for the forward
transformation
(or input coordinates for the inverse transformation)
AstException
- if an error arose in the AST library, or
if trans
is not able to transform
from nin
to nout
coordinatespublic IntraMap(Transformer2 trans)
IntraMap
from a given
Transformer2
object.
trans
- the Transformer2
which will do the actual
two-coordinate to two-coordinate transformationspublic IntraMap(Transformer1 trans)
IntraMap
from a given
Transformer1
object.
trans
- the Transformer1
which will do the actual
one-coordinate to one-coordinate transformationsMethod Detail |
---|
public void finalize() throws Throwable
finalize
in class AstObject
Throwable
public void channelize() throws IOException
channelize
in interface NeedsChannelizing
NotSerializableException
- if the Transformer
used by this mapping cannot be
serialized
IOException
- if there was some error in I/Opublic void unChannelize() throws IOException
unChannelize
in interface NeedsChannelizing
IOException
- if there was some error in I/Opublic AstObject copy()
copy
in class AstObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |