public class ZoomMap extends Mapping
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for more details.
You should have received a copy of the GNU General Public Licence along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,Fifth Floor, Boston, MA 02110-1301, USA
Mapping.Interpolator, Mapping.Spreader
LINEAR_INTERPOLATOR, LINEAR_SPREADER, NEAREST_INTERPOLATOR, NEAREST_SPREADER
AST__BAD, AST__TUNULL, pointer
Constructor and Description |
---|
ZoomMap(int ncoord,
double zoom)
Creates a ZoomMap.
|
Modifier and Type | Method and Description |
---|---|
double |
getZoom()
Get
zoomMap scale factor.
|
void |
setZoom(double zoom)
Set
zoomMap scale factor.
|
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
annul, clear, copy, delete, equals, finalize, 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
public ZoomMap(int ncoord, double zoom)
ncoord
- The number of coordinate values for each point to be
transformed (i.e. the number of dimensions of the space in
which the points will reside). The same number is applicable
to both input and output points.zoom
- Initial scale factor by which coordinate values should be
multiplied (by the forward transformation) or divided (by the
inverse transformation). This factor may subsequently be
changed via the ZoomMap's Zoom attribute. It may be positive
or negative, but should not be zero.AstException
- if an error occurred in the AST librarypublic double getZoom()
Note that if a ZoomMap is inverted (e.g. by using astInvert), then the reciprocal of this zoom factor will, in effect, be used.
public void setZoom(double zoom)
Note that if a ZoomMap is inverted (e.g. by using astInvert), then the reciprocal of this zoom factor will, in effect, be used.
zoom
- the Zoom attribute of this objectCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.