Class Depth

Hierarchy: Object , Depth
public class Depth
A Depth object records the topological depth of the sides of an Edge for up to two Geometries.

Other

  • version: 1.7
public Depth()
public static int depthAtLocation(int location)
public int getDepth(int geomIndex, int posIndex)
public void setDepth(int geomIndex, int posIndex, int depthValue)
public int getLocation(int geomIndex, int posIndex)
public void add(int geomIndex, int posIndex, int location)
public boolean isNull()
A Depth object is null (has never been initialized) if all depths are null.
public boolean isNull(int geomIndex)
public boolean isNull(int geomIndex, int posIndex)
public void add(Label lbl)
public int getDelta(int geomIndex)
public void normalize()
Normalize the depths for each geometry, if they are non-null. A normalized depth has depth values in the set { 0, 1 }. Normalizing the depths involves reducing the depths by the same amount so that at least one of them is 0. If the remaining value is > 0, it is set to 1.
public String toString()