cds.astro
Class ZonalRegion

java.lang.Object
  extended by cds.astro.AbstractRegion
      extended by cds.astro.Region
          extended by cds.astro.ZonalRegion
All Implemented Interfaces:
java.io.Serializable

public class ZonalRegion
extends Region

Zone Target (e.g. Rectangle, polygon) return a Vector with marked Qboxes

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cds.astro.AbstractRegion
centroid, DISJOINT, INCLUDES, INTERSECTS, IS_PARTOF, maxrad, minrad
 
Method Summary
 double area()
          Area of a Zone
 int checkCircle(Coo centre, double radius)
          Verify a circle intersects a Zone
 boolean checkCoo(Coo point)
          Verify point within Zone
 int checkQbox(int qbox)
          Verify intersection Qbox + Zone (polygon)
 java.lang.String toString()
          Edition of a Zone
 
Methods inherited from class cds.astro.Region
box, circle, ellipse, ellipse, polygon, rotatedBox, zone, zone
 
Methods inherited from class cds.astro.AbstractRegion
check1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public final java.lang.String toString()
Edition of a Zone

Overrides:
toString in class Region
Returns:
ascii equivalent

area

public final double area()
Area of a Zone

Overrides:
area in class Region
Returns:
Area in square degrees.

checkCoo

public boolean checkCoo(Coo point)
Verify point within Zone

Overrides:
checkCoo in class Region
Parameters:
point - a position
Returns:
true if point within region.

checkCircle

public int checkCircle(Coo centre,
                       double radius)
Verify a circle intersects a Zone

Overrides:
checkCircle in class Region
Parameters:
centre - center of circle
radius - radius of circle
Returns:
DISJOINT / INTERSECTS / INCLUDES / IS_PARTOF for no intersection / overlap / cercle fully included

checkQbox

public int checkQbox(int qbox)
Verify intersection Qbox + Zone (polygon)

Overrides:
checkQbox in class AbstractRegion
Parameters:
qbox - the Qbox to check
Returns:
DISJOINT / INCLUDES / INTERSECTS / IS_PARTOF