|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdelaunay.delaunay.VerticalList
public class VerticalList
Store a list that is sorted "vertically", according to an attached VerticalComparator
| Constructor Summary | |
|---|---|
VerticalList()
The default constructor. |
|
VerticalList(double abs)
Public constructor. |
|
VerticalList(DPoint pt)
Public constructor. |
|
| Method Summary | |
|---|---|
int |
addEdge(DEdge constraint)
Add an edge to the list of constraints that are considered to be linked to the boundary of the current mesh. |
void |
addEdges(List<DEdge> constraints)
Add each of the edge in the list given in argument in this vertical list. |
DEdge |
get(int i)
retrieve the element at position i in the list. |
double |
getAbs()
get the absciss where the comparison is currently performed. |
DEdge |
getLastLowerEd()
get the last evaluated lower edge |
DPoint |
getLastLowerPt()
get the last point evaluated to perform the getLowerPoint operation |
DEdge |
getLastUpperEd()
Get the last evaluated upper edge |
DPoint |
getLastUpperPt()
Get the last evaluated upper point |
DEdge |
getLowerEdge(DPoint point)
Get the edge that is directly lower to the point in the sorted list. |
DEdge |
getUpperEdge(DPoint point)
Search the edge that will be just upper to the point in the sorted list. |
List<DEdge> |
getVerticallySortedEdges()
Get the list of constraints linked to the boundary of the current mesh. |
boolean |
intersectsUpperOrLower(DPoint pRef,
DEdge ed)
Checks if the edges that are upper and lower than pRef in the list of constraints that are linked to the boundary intersect the edge ed given in parameter. |
DEdge |
remove(int index)
Remove the edge at index index in this vertical list. |
void |
removeEdge(DEdge constr)
Remove an edge in this vertical list. |
void |
removeEdgeFromRightPoint(DPoint rightPt)
Sort the list to the x-coordinate of rightPt, and remove the edges of the list whose right point is equal to rightPt. |
protected int |
searchEdge(DEdge edge)
Search an edge in the constraints linked to the boundary. |
void |
setAbs(double abs)
Change the absciss where we want our edges to be sorted |
void |
setAbs(DPoint pt)
Change the absciss where we want our edges to be sorted. |
int |
size()
Gets the current size of this vertical list. |
protected void |
sort()
This method will sort the list using the abs of the current comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VerticalList()
public VerticalList(double abs)
abs - public VerticalList(DPoint pt)
pt - | Method Detail |
|---|
public final double getAbs()
public final void setAbs(double abs)
throws DelaunayError
abs -
DelaunayError
public final void setAbs(DPoint pt)
throws DelaunayError
pt -
DelaunayErrorpublic final DEdge get(int i)
i -
public final void addEdges(List<DEdge> constraints)
constraints - public final int addEdge(DEdge constraint)
constraint -
public final void removeEdge(DEdge constr)
constr - public final DEdge remove(int index)
index -
protected final int searchEdge(DEdge edge)
edge - public final List<DEdge> getVerticallySortedEdges()
public final DEdge getLastLowerEd()
public final DPoint getLastLowerPt()
public final DEdge getLastUpperEd()
public final DPoint getLastUpperPt()
public final void removeEdgeFromRightPoint(DPoint rightPt)
throws DelaunayError
rightPt -
DelaunayError
protected final void sort()
throws DelaunayError
DelaunayErrorpublic final int size()
public final DEdge getUpperEdge(DPoint point)
throws DelaunayError
point -
DelaunayError
public final DEdge getLowerEdge(DPoint point)
throws DelaunayError
point -
DelaunayError
public final boolean intersectsUpperOrLower(DPoint pRef,
DEdge ed)
throws DelaunayError
pRef - ed -
DelaunayError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||