org.geotools.geometry.iso.util.elem2D
Class Simplex2D

java.lang.Object
  extended by org.geotools.geometry.iso.util.elem2D.Simplex2D
Direct Known Subclasses:
Quadrilateral2D, Triangle2D

public abstract class Simplex2D
extends java.lang.Object

Author:
roehrig TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 int id
           
protected  java.lang.Object[] neighbour
           
 java.lang.Object object
           
protected  Node2D[] point
           
 
Constructor Summary
protected Simplex2D(Node2D[] p)
           
protected Simplex2D(Node2D[] p, int n)
           
 
Method Summary
 java.util.ArrayList<Edge2D> getAllEdgesOnFace()
           
 java.util.ArrayList<Node2D> getAllPointsOnFace()
           
 java.util.ArrayList<Simplex2D> getAllSimpliciesOnSimplex()
           
 java.awt.geom.Point2D getCentroid()
           
 Edge2D getNeighbourEdge(int side)
           
 java.lang.Object[] getNeighbours()
           
 Simplex2D getNeighbourSimplex(int side)
           
 Node2D getNextPoint(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1)
           
 java.lang.Object getObject()
           
 int getOrientation(int s0, int s1)
           
 int getOrientation(Node2D n0, Node2D n1)
           
 int getOrientation(Simplex2D f)
           
 int getOrientation(Simplex2D f0, Simplex2D f1)
           
 Node2D getPoint(int n)
           
 Node2D[] getPointFromSide(int side)
           
 Node2D[] getPoints()
           
 java.awt.geom.Rectangle2D getRectangle()
           
 int getSide(Edge2D e)
           
 int getSide(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1)
           
 int getSide(Simplex2D f)
           
 int[] getSides(Node2D node)
           
 double getSize()
           
 double getSizeSq()
           
 boolean hasEqualPoint(java.awt.geom.Point2D p)
           
 boolean hasID()
           
 boolean hasPoint(Node2D p)
           
protected  void linkEdge(Edge2D e)
           
protected  void linkEdge(int side, Edge2D e)
           
protected  void linkSimplex(int side, Simplex2D s)
           
protected  boolean linkSimplex(Simplex2D other)
           
protected abstract  int n()
           
 void setObject(java.lang.Object object)
           
 void setRectangle(java.awt.geom.Rectangle2D r)
           
abstract  int sideBits(int s)
           
protected  void swapSide(Edge2D e, Simplex2D f)
           
protected  void unlinkEdge(Edge2D e)
           
protected  void unlinkEdge(int side, Edge2D e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

point

protected Node2D[] point

neighbour

protected java.lang.Object[] neighbour

id

public int id

object

public java.lang.Object object
Constructor Detail

Simplex2D

protected Simplex2D(Node2D[] p)

Simplex2D

protected Simplex2D(Node2D[] p,
                    int n)
Method Detail

n

protected abstract int n()

sideBits

public abstract int sideBits(int s)

getObject

public java.lang.Object getObject()
Returns:
Returns the object.

setObject

public void setObject(java.lang.Object object)
Parameters:
object - The object to set.

getPoints

public Node2D[] getPoints()

getPoint

public Node2D getPoint(int n)

getPointFromSide

public Node2D[] getPointFromSide(int side)

getNeighbours

public java.lang.Object[] getNeighbours()

getRectangle

public java.awt.geom.Rectangle2D getRectangle()

setRectangle

public void setRectangle(java.awt.geom.Rectangle2D r)

getSizeSq

public double getSizeSq()

getSize

public double getSize()

hasPoint

public boolean hasPoint(Node2D p)

hasEqualPoint

public boolean hasEqualPoint(java.awt.geom.Point2D p)

getSide

public int getSide(java.awt.geom.Point2D p0,
                   java.awt.geom.Point2D p1)

getSides

public int[] getSides(Node2D node)

getSide

public int getSide(Edge2D e)

getSide

public int getSide(Simplex2D f)

getNeighbourSimplex

public Simplex2D getNeighbourSimplex(int side)

getNeighbourEdge

public Edge2D getNeighbourEdge(int side)

getNextPoint

public Node2D getNextPoint(java.awt.geom.Point2D p0,
                           java.awt.geom.Point2D p1)

linkSimplex

protected void linkSimplex(int side,
                           Simplex2D s)

linkSimplex

protected boolean linkSimplex(Simplex2D other)

linkEdge

protected void linkEdge(int side,
                        Edge2D e)

linkEdge

protected void linkEdge(Edge2D e)

unlinkEdge

protected void unlinkEdge(int side,
                          Edge2D e)

unlinkEdge

protected void unlinkEdge(Edge2D e)

swapSide

protected void swapSide(Edge2D e,
                        Simplex2D f)

getAllSimpliciesOnSimplex

public java.util.ArrayList<Simplex2D> getAllSimpliciesOnSimplex()

getAllEdgesOnFace

public java.util.ArrayList<Edge2D> getAllEdgesOnFace()

getAllPointsOnFace

public java.util.ArrayList<Node2D> getAllPointsOnFace()

getOrientation

public int getOrientation(Node2D n0,
                          Node2D n1)

getOrientation

public int getOrientation(int s0,
                          int s1)

getOrientation

public int getOrientation(Simplex2D f0,
                          Simplex2D f1)

getOrientation

public int getOrientation(Simplex2D f)

getCentroid

public java.awt.geom.Point2D getCentroid()

hasID

public boolean hasID()
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.