[QUANTITY] Data Model for Quantity v0.5

David Berry dsb at ast.man.ac.uk
Tue May 11 12:03:01 PDT 2004


Brian,

> > So how would you modify the code example I gave, which was:
> >
> >    public void GridPlotter( StandardQuantity stdQ ){
> >       Mapping map = stdQ.getCurrentCoordsQuantity().getMapping();
> >
> >       <then proceed to use the Mapping to transform arbitrary positions
> >       backwards and forwards between pixel coords and current WCS coords>
> >
> >    }
>
>
> Make the "getMapping()" method require an AxisFrame as an input. e.g.
>
> Mapping map = stdQ.getMapping(frameIWantToUse);
>
> We can also have the empty accessor call ("getMapping()") which returns
> the default/first mapping if you like.

So this is nothing really to do with locators?

Also, would your proposed empty accessor call "getMapping()" not just be
a convenience method equivalent to the current

getCurrentCoordsQuantity().getMapping()

??

In your "getMapping(frameIWantToUse)" what is the data type of
frameIWantToUse ?

David




----------------------------------------------------------------------
Dr David S. Berry    (dsb at ast.man.ac.uk)

STARLINK project		 |	Centre for Astrophysics
(http://www.starlink.ac.uk/)	 |	University of Central Lancashire
Rutherford Appleton Laboratory	 |	PRESTON
DIDCOT				 |	United Kingdom
United Kingdom			 |	PR1 2HE
OX11 0QX                                Tel. 01772 893733
                                             01257 273192



More information about the dm mailing list