edu.jhu.htm.core
Class Domain

java.lang.Object
  |
  +--edu.jhu.htm.core.Domain

public class Domain
extends java.lang.Object

A Domain manages a list of Convexes. This is the data structure that can define any area on the sphere. With the intersect method, the htm index returns the trixels that intersect with the area specified by the current Domain instance. There are two lists returned: one for the nodes fully contained in the area and one for the triangles which lie only partially in the domain.

  Current Version
  ===============
  ID:	$Id: Domain.java,v 1.2 2003/02/19 15:46:11 womullan Exp $
  Revision: 	$Revision: 1.2 $
  Date/time:	$Date: 2003/02/19 15:46:11 $
 


Field Summary
protected  int olevel
           
 
Constructor Summary
Domain()
          Default constructor
 
Method Summary
 void add(Convex c)
          Add a convex
 void add(Domain d)
          Add all convexces of given domain to this one - simple union
 void clear()
          Clear domain, empty convex list
 boolean contains(Vector3d p)
           
 Convex getConvex(int i)
          Fetch the convex number i
 int getNumberOfConvexes()
          Return the number of convexes in this domain
 int getOlevel()
           
 boolean intersect(HTMindexImp idx, HTMrange range, boolean varlen)
          Intersect with index.
 void setOlevel(int lev)
           
 Domain simplify()
           
 java.lang.String toString()
          Convert domain to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

olevel

protected int olevel
Constructor Detail

Domain

public Domain()
Default constructor

Method Detail

setOlevel

public void setOlevel(int lev)

getOlevel

public int getOlevel()

add

public void add(Convex c)
Add a convex


intersect

public boolean intersect(HTMindexImp idx,
                         HTMrange range,
                         boolean varlen)
Intersect with index. Return the range set of the nodes that are intersected by this domain. setting varlen true makes this adaptive giving HTM ranges of different levels suiting the shape of the area.


getConvex

public Convex getConvex(int i)
Fetch the convex number i


getNumberOfConvexes

public int getNumberOfConvexes()
Return the number of convexes in this domain


toString

public java.lang.String toString()
Convert domain to a string. This string can be written into a file and can recover the domain using the legacy parser.

Overrides:
toString in class java.lang.Object

clear

public void clear()
Clear domain, empty convex list


simplify

public Domain simplify()

contains

public boolean contains(Vector3d p)

add

public void add(Domain d)
Add all convexces of given domain to this one - simple union