[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] PEG null_cs_api
From: |
Tuomas Lukka |
Subject: |
[Gzz] PEG null_cs_api |
Date: |
Sat, 9 Nov 2002 15:48:11 +0200 |
User-agent: |
Mutt/1.4i |
=============================================================
PEG null_cs_api--tjl: Interface changes
=============================================================
:Author: Tuomas Lukka
:Date: $Date: 2002/11/08 13:39:24 $
:Revision: $Revision: 1.2 $
:Status: Current
:Scope: Minor
:Type: Interface
There are some coordinate systems that will not get created sometimes:
currently, buoy and cull coordsystems are sometimes returned as null.
This needs to be addressed in the VobCoorder transforming API.
Issues
======
- is it a problem that transformPoint and transformPoints2 will sometimes
not return their ``into`` parameters?
RESOLVED: Not really. The most common use is in Vobs and there the
coordinate systems are guaranteed to be valid; otherwise, they would
not be drawn.
Changes
=======
Change ::
public void transformPoints3(int withCS, float[] pt, float[]into) {
public boolean inverseTransformPoints3(int withCS, float[] pt, float[]into)
{
into ::
public float[] transformPoints3(int withCS, float[] pt, float[]into) {
public float[] inverseTransformPoints3(int withCS, float[] pt, float[]into)
{
Which will return into, if non-null and the cs is valid..
Then, change the spec of the functions
public float[] transformPoints3(int withCS, float[] pt, float[]into) {
public float[] inverseTransformPoints3(int withCS, float[] pt, float[]into)
{
public java.awt.Point transformPoint(int cs, float x, float y,
java.awt.Point into) {
public java.awt.Point[] transformPoints2(int cs, float[] coords,
java.awt.Point[] into) {
so that if the coordinate system is not valid (e.g. it's a buoy or culled
coordinate
system that is currently not shown), these will return null and not
transform anything.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz] PEG null_cs_api,
Tuomas Lukka <=