public final class PgEdgeStar extends PiVector
There may be more than two elements joining an edge.
Note, when superclass has changed to PiVector then method this#getSize() has been renamed to this#getValence() to avoid conflict PiVector#getSize().
Constructor and Description |
---|
PgEdgeStar()
Create a new edge.
|
PgEdgeStar(int v1,
int v2)
Create a new edge with given start and end point, and valence zero.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(int elemInd,
int locNeighInd)
Add another element and the local index of its vertex opposite to the edge.
|
java.lang.Object |
clone()
Clone object and all instance variables.
|
void |
copy(PiVector object)
Copy instance variables by duplication, not by copying a reference.
|
int |
getEdgeInd(int ind)
Deprecated.
since JavaView 3.96.026, use getVertexInd(int).
|
int[] |
getElementInd()
Get array with indices of adjacent elements.
|
int |
getElementInd(int ind)
Get index of element at position 'ind'.
|
int[] |
getElements()
Deprecated.
since JavaView 3.96.026, use getElementInd().
|
int[] |
getNeighbourLocInd()
Get array containing the local index of neighbour vertex of all elements.
|
int |
getNeighbourLocInd(int ind)
Get local index of neighbour vertex of element at position 'ind'.
|
int[] |
getNeighbourLocIndices()
Deprecated.
since JavaView 3.96.026, use getNeighbourLocInd().
|
int |
getValence()
Get currently number of adjacent elements sharing this edge.
|
int |
getVertexInd(int ind)
Get index of first or second vertex of edge.
|
void |
setElementInd(int ind,
int elemInd)
Set index of element at valence position 'ind' within 0 and current valence.
|
void |
setMaxValence(int val)
Allocate storage to handle given number of adjacent elements.
|
void |
setNeighbourLocInd(int ind,
int locNeighInd)
Set local index of adjacent element at valence position 'ind' within 0 and current valence.
|
void |
setValence(int val)
Set currently number of adjacent elements sharing this edge.
|
java.lang.String |
toString()
Create a multi-line string representation
with detailed information about all instance variables.
|
add, add, add, add, addEntry, adjustSizes, alloc, average, blend, blend, blendBase, blendNew, changeValue, changeValue, concat, concatNew, contains, copy, copy, copy, copyArray, copyNew, copyNew, copyNew, copyNew, dist, dot, dot, equals, equals, equals, getEntries, getEntries, getEntry, getFirstEntry, getIndexOf, getLastEntry, getLength, getSameSize, getSize, hasUniqueEntries, indexOfAbsMax, indexOfAbsMin, indexOfMax, indexOfMin, indexOfValueInOrdering, invert, invert, leftMultMatrix, leftMultMatrix, length, max, max, maxAbs, min, min, multScalar, multScalar, normalize, normalize, realloc, realloc, removeEntry, removeSuccessiveDuplicates, rightMultMatrix, rightMultMatrix, set, set, set, set, set, set, set, set, setConstant, setConstant, setConstant, setConstant, setConstant, setEntry, setFirstEntry, setLastEntry, setLength, setSize, shift, sort, sort, sqrDist, sqrLength, sub, sub, subNew, sum, toShortString
public PgEdgeStar()
public PgEdgeStar(int v1, int v2)
public void copy(PiVector object)
public java.lang.Object clone()
clone
in class PiVector
copy(PiVector)
public java.lang.String toString()
toString
in class PiVector
PiVector.toShortString()
public int getValence()
public void setValence(int val)
public void setMaxValence(int val)
public void addElement(int elemInd, int locNeighInd)
public int getEdgeInd(int ind)
ind
- index of first (ind==0) or second (ind==1) vertex of edgepublic int getVertexInd(int ind)
ind
- index of first (ind==0) or second (ind==1) vertex of edgepublic int[] getElements()
public int[] getElementInd()
public int getElementInd(int ind)
public void setElementInd(int ind, int elemInd)
public int[] getNeighbourLocIndices()
public int[] getNeighbourLocInd()
public int getNeighbourLocInd(int ind)
public void setNeighbourLocInd(int ind, int locNeighInd)
"