public class IntraMap extends Mapping implements NeedsChannelizing
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 Mappings 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 Channels can only be used where class libraries containing
the appropriate Transformer classes are available
(and only if those classes are Serializable).
Mapping.Interpolator, Mapping.SpreaderLINEAR_INTERPOLATOR, LINEAR_SPREADER, NEAREST_INTERPOLATOR, NEAREST_SPREADERAST__BAD, AST__TUNULL, pointer| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, tranPannul, 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, tunepublic 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 transformationspublic void finalize()
throws Throwable
public void channelize()
throws IOException
channelize in interface NeedsChannelizingNotSerializableException - if the Transformer
used by this mapping cannot be
serializedIOException - if there was some error in I/Opublic void unChannelize()
throws IOException
unChannelize in interface NeedsChannelizingIOException - if there was some error in I/OCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.