| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all reference in the virtual edge.
|
boolean |
equals(Object o) |
Vertex |
getA()
Gets the initial vertex for this edge.
|
Vertex |
getB()
Gets the second vertex for this edge.
|
int |
getBaseIndex()
Gets the index of the base of the current edge.
|
SemiVirtualEdge |
getBaseReference()
Constructs a new instance of the virtual edge class
referencing the base of the current edge (may be a copy
of the current edge if it is a base).
|
int |
getConstraintIndex()
Gets the index of the constraint associated with this edge.
|
SemiVirtualEdge |
getDual()
Constructs a new instance of the virtual edge class
referencing the dual of the current edge.
|
SemiVirtualEdge |
getDualFromForward()
Constructs a new instance of the virtual edge class
referencing the dual of the forward of the current edge
|
SemiVirtualEdge |
getDualFromReverse()
Constructs a new instance of the virtual edge class
referencing the dual of the current edge's reverse.
|
SemiVirtualEdge |
getForward()
Gets the forward reference of the edge.
|
SemiVirtualEdge |
getForwardFromDual()
Constructs a new instance of the virtual edge class
referencing the forward of the dual of the current edge
|
int |
getIndex()
Gets the index value for this edge.
|
double |
getLength()
Gets the length of the edge.
|
SemiVirtualEdge |
getReverse()
Constructs a new instance of the virtual edge class
referencing the forward of the current edge.
|
SemiVirtualEdge |
getReverseFromDual()
Constructs a new instance of the virtual edge class
referencing the reverse of the dual of the current edge
|
int |
getSide()
Gets the low-order bit of the index of the current edge
|
Vertex |
getTriangleApex()
When the edge exists within a TIN, this method gets the
apex of a triangle formed with the edge as the base.
|
int |
hashCode() |
boolean |
isConstrained()
Indicates whether an edge is constrained.
|
boolean |
isConstrainedRegionBorder()
Indicates whether an edge represents the border of a constrained
region.
|
boolean |
isConstrainedRegionInterior()
Indicates whether the edge is in the interior of a constrained region.
|
boolean |
isConstrainedRegionMember()
Indicates whether the edge is a member of a constrained region
(is in the interior or serves as the border of a polygon-based constraint).
|
boolean |
isExterior()
Indicates if the edge is exterior to a TIN.
|
boolean |
isSynthetic()
Indicates whether the synthetic flag is set for the edge.
|
void |
loadForwardFromEdge(SemiVirtualEdge e)
Load the content of the forward of the specified edge
|
void |
loadReverseFromEdge(SemiVirtualEdge e)
Load the content of the reverse of the specified edge
|
Iterable<IQuadEdge> |
pinwheel()
Gets an instance of an iterable that performs a pinwheel operation.
|
void |
setA(Vertex a)
Sets the initial vertex of the current edge (and final vertex
of its dual)
|
void |
setB(Vertex b)
Sets the final vertex of the current edge (and initial vertex
of its dual)
|
void |
setConstrained(int constraintIndex)
Sets an edge as constrained and sets its constraint index.
|
void |
setConstrainedRegionBorderFlag()
Sets a flag indicating that the edge is an edge of a constrained region.
|
void |
setConstrainedRegionInteriorFlag()
Sets the constrained region membership flag for the edge to true.
|
void |
setConstraintIndex(int constraintIndex)
Sets the constraint index for this edge.
|
void |
setDualForward(SemiVirtualEdge forward)
Sets the forward link for the dual of the current edge.
|
void |
setDualReverse(SemiVirtualEdge reverse)
Sets the reverse link for the dual of the current edge.
|
void |
setForward(SemiVirtualEdge e)
Sets the forward link for the current edge.
|
void |
setReverse(SemiVirtualEdge e)
Sets the reverse link for the current edge.
|
void |
setSynthetic(boolean status)
Sets the synthetic flag for the edge.
|
void |
setVertices(Vertex a,
Vertex b)
Sets both vertices for the current edge (and the opposite vertices
of its dual).
|
String |
toString() |
public void loadForwardFromEdge(SemiVirtualEdge e)
e - a valid instancepublic void loadReverseFromEdge(SemiVirtualEdge e)
e - a valid instancepublic Vertex getA()
IQuadEdgepublic Vertex getB()
IQuadEdgepublic SemiVirtualEdge getForward()
IQuadEdgegetForward in interface IQuadEdgepublic Vertex getTriangleApex()
public boolean isExterior()
public SemiVirtualEdge getReverse()
getReverse in interface IQuadEdgepublic SemiVirtualEdge getDualFromReverse()
getDualFromReverse in interface IQuadEdgepublic SemiVirtualEdge getDual()
public void clear()
public SemiVirtualEdge getBaseReference()
getBaseReference in interface IQuadEdgepublic int getBaseIndex()
public SemiVirtualEdge getForwardFromDual()
getForwardFromDual in interface IQuadEdgepublic SemiVirtualEdge getDualFromForward()
public SemiVirtualEdge getReverseFromDual()
getReverseFromDual in interface IQuadEdgepublic int getIndex()
IQuadEdgeWhen an edge is allocated, it is set with an arbitrary index value. This value will not change while the edge remains allocated by and edge-pool instance. As soon as the edge is released, it is likely to have its index value reassigned.
public double getLength()
IQuadEdgepublic int getSide()
public void setA(Vertex a)
a - a valid reference or a null.public void setB(Vertex b)
b - a valid reference or a null.public void setDualForward(SemiVirtualEdge forward)
forward - the forward reference/public void setDualReverse(SemiVirtualEdge reverse)
reverse - the forward reference/public void setForward(SemiVirtualEdge e)
e - the forward reference/public void setReverse(SemiVirtualEdge e)
e - the forward reference/public void setVertices(Vertex a, Vertex b)
a - the initial vertexb - the final vertexpublic int getConstraintIndex()
IQuadEdgegetConstraintIndex in interface IQuadEdgepublic void setConstraintIndex(int constraintIndex)
IQuadEdgesetConstraintIndex in interface IQuadEdgeconstraintIndex - a positive number indicating which constraint
a particular edge is associated with.public void setConstrained(int constraintIndex)
IQuadEdgesetConstrained in interface IQuadEdgeconstraintIndex - positive number indicating which constraint
a particular edge is associated with.public boolean isConstrained()
IQuadEdgeisConstrained in interface IQuadEdgepublic boolean isConstrainedRegionBorder()
IQuadEdgeisConstrainedRegionBorder in interface IQuadEdgepublic boolean isConstrainedRegionInterior()
IQuadEdgeisConstrainedRegionInterior in interface IQuadEdgepublic boolean isConstrainedRegionMember()
IQuadEdgeisConstrainedRegionMember in interface IQuadEdgepublic void setConstrainedRegionBorderFlag()
IQuadEdgesetConstrainedRegionBorderFlag in interface IQuadEdgepublic void setConstrainedRegionInteriorFlag()
IQuadEdgesetConstrainedRegionInteriorFlag in interface IQuadEdgepublic Iterable<IQuadEdge> pinwheel()
IQuadEdge
for(IQuadEdge e: startingEdge.pinwheel()){
}
public void setSynthetic(boolean status)
IQuadEdgesetSynthetic in interface IQuadEdgestatus - true if the edge is synthetic; otherwise, false.public boolean isSynthetic()
IQuadEdgeisSynthetic in interface IQuadEdgeCopyright © 2019. All rights reserved.