|
|||||||||
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
|
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. |
Node |
getOppNode(Node v)
Returns the node opposite v along this QEdge. |
Node |
getOrigin(int r)
Return the origin node of the HalfEdge e0Rotr. |
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). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int permID
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |