public class VertexMergerGroup extends Vertex
| Modifier and Type | Class and Description |
|---|---|
static class |
VertexMergerGroup.ResolutionRule
Specifies a rule for determining a z value based on the collection
of coincident vertices.
|
auxiliary, BIT_CONSTRAINT, BIT_SYNTHETIC, reserved0, reserved1, status, x, y| Constructor and Description |
|---|
VertexMergerGroup(Vertex firstVertex)
Constructs a coincident vertex using the specified vertex
for initialization.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addVertex(Vertex v)
Add a new vertex to the coincident collection.
|
boolean |
contains(Vertex v)
Indicates whether the group contains the specified vertex
|
int |
getSize()
Gets the number of vertices grouped together in the collection
|
Vertex[] |
getVertices()
Gets an array of the coincident vertices.
|
double |
getZ()
Get the z value associated with the vertex and the merging rules.
|
boolean |
removeVertex(Vertex v)
Removes the specified vertex from the group.
|
void |
setAuxiliaryIndex(int auxiliaryIndex)
Sets the color index for the vertex.
|
void |
setResolutionRule(VertexMergerGroup.ResolutionRule rule)
Sets the rule for resolving coincident vertices; recalculates
value for vertex if necessary
|
getAuxiliaryIndex, getDistance, getDistance, getDistanceSq, getDistanceSq, getIndex, getLabel, getStatus, getX, getY, isConstraintMember, isNull, isSynthetic, setConstraintMember, setIndex, setStatus, setSynthetic, toStringpublic VertexMergerGroup(Vertex firstVertex)
firstVertex - a valid instancepublic boolean addVertex(Vertex v)
v - a valid, unique instancepublic boolean removeVertex(Vertex v)
v - the vertex to be removed.public void setResolutionRule(VertexMergerGroup.ResolutionRule rule)
rule - a valid member of the enumerationpublic double getZ()
getZ in interface ISamplePointgetZ in class Vertexpublic Vertex[] getVertices()
public int getSize()
public boolean contains(Vertex v)
v - a valid vertexpublic void setAuxiliaryIndex(int auxiliaryIndex)
This method will set the color index for all vertices contain within the merger group.
setAuxiliaryIndex in class VertexauxiliaryIndex - a value in the range 0 to 255Copyright © 2021. All rights reserved.