|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.dillenco.simplegraph01.QEdge
public class QEdge
A QEdge
represents a QuadEdge,
in the sense of the Guibas-Stolfi quadedge structure.
Essentially a QEdge represent four half-edges, which may be thought of as rotations of one another. One of the half-edges is the canonical representative, e0 The remaining three half-edges are e0Rot1, e0Rot2, and e0Rot3.
Field Summary | |
---|---|
int |
permID
|
Constructor Summary | |
---|---|
QEdge(Node node0,
Node node1,
Graph g)
|
Method Summary | |
---|---|
String |
charName(Graph g)
|
HalfEdge |
getHalfEdge(int r)
Return a HalfEdge representing the the half-edge e0Rotr. |
Node |
getHead(int r)
Return the the head of the half-edge e0Rotr, which must be part of a directed edge. |
HalfEdge |
getNext(int r)
Return a HalfEdge representing the next half edge having the same origin node as the HalfEdge e0Rotr. |
(package private) QEdge |
getNextQEdge()
|
Node |
getOppNode(Node v)
Returns the node opposite v along this QEdge. |
Node |
getOrigin(int r)
Return the origin node of the HalfEdge e0Rotr. |
(package private) int |
getRotationIndex(Node v)
Returns the rotation index of node v. |
Node |
getTail(int r)
Return the the tail of the half-edge e0Rotr, which must be part of a directed edge. |
boolean |
isDirected(int r)
Return whether the half-edge e0Rotr. |
boolean |
isHead(int r)
Return whether the origin of the half-edge e0Rotr is the head of the edge containing this half-edge (i.e., whether this edge is directed toward the origin of the half-edge). |
boolean |
isTail(int r)
Return whether the origin of the half-edge e0Rotr is the tail of the edge containing this half-edge (i.e., whether this edge is directed away from the origin of the half-edge). |
(package private) void |
linkBefore(int curRot,
HalfEdge next)
Link the half edge (this,curRot) before the specified half edge (nextQEdge,nextRot). |
(package private) void |
linkSolo(int curRot)
Link the specified half edge to itself. |
String |
toString()
|
(package private) void |
unLink(int curRot)
unLink The half edge(int curRot) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int permID
Constructor Detail |
---|
QEdge(Node node0, Node node1, Graph g)
Method Detail |
---|
public String toString()
toString
in class Object
public String charName(Graph g)
public Node getOppNode(Node v)
GraphCheckException
is thrown.
v
- the Node whose opposite end is to be returned.
public HalfEdge getNext(int r)
r
- the rotation index, in the range 0..3.public Node getOrigin(int r)
r
- the rotation index, in the range 0..3.public HalfEdge getHalfEdge(int r)
r
- the rotation index, in the range 0..3.public boolean isDirected(int r)
r
- the rotation index, in the range 0..3.
public boolean isHead(int r)
false
is returned.
r
- the rotation index, in the range 0..3.
public boolean isTail(int r)
false
is returned.
r
- the rotation index, in the range 0..3.
public Node getHead(int r)
GraphCheckException
will be thrown.
r
- the rotation index, in the range 0..3.
public Node getTail(int r)
GraphCheckException
will be thrown.
r
- the rotation index, in the range 0..3.
int getRotationIndex(Node v)
GraphCheckException
is thrown.
v
- the Node whose rotation index is to be computed.
QEdge getNextQEdge()
void linkBefore(int curRot, HalfEdge next)
curRot
- The rotation coefficient of the half edge to be linked.next
- The successor halfedgevoid linkSolo(int curRot)
curRot
- The rotation coefficient of the half edge to be linked.void unLink(int curRot)
curRot
- The rotation coefficient of the half edge to be linked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |