public class PnTree
extends java.lang.Object
Constructor and Description |
---|
PnTree(PgPointSet pointSet)
Constructor for a tree of one PgPointSet
|
PnTree(PgPointSet[] pointSets)
Constructor for a tree of an arbitrary number of PgPointSets
|
PnTree(PgPointSet pointSet0,
PgPointSet pointSet1)
Constructor for a tree of two PgPointSets
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(int pointSetIndex,
PiVector element)
Compute tree position for a new element.
|
void |
addElement(PiVector element)
Compute tree position for a new element of PgPointSet #0.
|
boolean |
compare(int elementIndex0,
int elementIndex1)
Compare tree positions of two elements in PgPointSet #0.
|
boolean |
compare(int pointSetIndex0,
int elementIndex0,
int pointSetIndex1,
int elementIndex1)
Compare tree positions of two elements in different PgPointSets.
|
void |
removeElement(int elementIndex)
Remove an entry of PgPointSet #0 from tree.
|
void |
removeElement(int pointSetIndex,
int elementIndex)
Remove an entry from tree.
|
void |
setElement(int pointSetIndex,
int elementIndex,
PiVector element)
Recompute tree position for an element.
|
void |
setElement(int elementIndex,
PiVector element)
Recompute tree position for an element of PgPointSet #0.
|
void |
setElements(int pointSetIndex,
PiVector[] elements,
int numElements)
Compute tree positions for all elements.
|
void |
setElements(PiVector[] elements,
int numElements)
Compute tree positions for all elements of PgPointSet #0.
|
void |
setVertices(int pointSetIndex,
java.util.Vector vertices)
Set vector of vertex positions.
|
public PnTree(PgPointSet pointSet)
public PnTree(PgPointSet pointSet0, PgPointSet pointSet1)
public PnTree(PgPointSet[] pointSets)
public void setVertices(int pointSetIndex, java.util.Vector vertices)
public void setElements(PiVector[] elements, int numElements)
public void setElements(int pointSetIndex, PiVector[] elements, int numElements)
public void setElement(int elementIndex, PiVector element)
public void setElement(int pointSetIndex, int elementIndex, PiVector element)
public void addElement(PiVector element)
public void addElement(int pointSetIndex, PiVector element)
public void removeElement(int elementIndex)
public void removeElement(int pointSetIndex, int elementIndex)
public boolean compare(int elementIndex0, int elementIndex1)
public boolean compare(int pointSetIndex0, int elementIndex0, int pointSetIndex1, int elementIndex1)
"