de.grogra.imp3d.objects
public class GRSVertex extends Point
GRSVertex is used in conjunction with a
GRSMesh to define a graph rotation system. It has
a cyclic list of neighbors stored in neighbors.GRSMesh,
Serialized FormNode.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected ObjectList<GRSVertex> |
neighbors
Cyclic neighborhood of this vertex.
|
static Node.NType.Field |
neighbors$FIELD |
protected float |
u
u coordinate of vertex
|
static Node.NType.Field |
u$FIELD |
protected float |
v
v coordinate of vertex
|
static Node.NType.Field |
v$FIELD |
color, color$FIELDtransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELD, USED_BITSADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
GRSVertex()
|
GRSVertex(double x,
double y,
double z)
Creates a new
GRSVertex at the specifed location. |
GRSVertex(Tuple3d p)
|
| Modifier and Type | Method and Description |
|---|---|
GRSVertex |
first()
Returns the first neighbor of the cyclic list of neighbors.
|
GRSVertex |
getNeighbor(int i)
Returns the neighbor having index
i. |
int |
getNeighborIndex(GRSVertex v)
Returns the index of
v in the cyclic list
of neighbors. |
ObjectList<GRSVertex> |
getNeighbors() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
float |
getU() |
float |
getV() |
GRSVertex |
neighbors(ObjectConsumer<? super GRSVertex> cons)
Yields all neighbors to
cons. |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
GRSVertex |
next(GRSVertex ref)
Returns the vertex which follows this vertex in the neighbor list
of
ref. |
GRSVertex |
next(int j,
GRSVertex ref)
Returns the vertex which is the
j-th successor
of this vertex in the neighbor list
of ref. |
GRSVertex |
nextTo(GRSVertex n)
Returns the neighbor which follows
n in the
cyclic list of neighbors. |
GRSVertex |
nextTo(int j,
GRSVertex n)
Returns the neighbor which is the
j-th successor
of n in the cyclic list of neighbors. |
GRSVertex |
prev(GRSVertex ref)
Returns the vertex which precedes this vertex in the neighbor list
of
ref. |
GRSVertex |
prev(int j,
GRSVertex ref)
Returns the vertex which is the
j-th predecessor
of this vertex in the neighbor list
of ref. |
GRSVertex |
prevTo(GRSVertex n)
Returns the neighbor which precedes
n in the
cyclic list of neighbors. |
GRSVertex |
prevTo(int j,
GRSVertex n)
Returns the neighbor which is the
j-th predecessor
of n in the cyclic list of neighbors. |
void |
setNeighbors(ObjectList<GRSVertex> value) |
void |
setU(float value) |
void |
setV(float value) |
int |
valence()
Returns the number of neighbors in the cyclic list of neighbors.
|
getColor, setColor, setColor, setColorgetLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
protected ObjectList<GRSVertex> neighbors
public static final Node.NType.Field neighbors$FIELD
protected float u
public static final Node.NType.Field u$FIELD
protected float v
public static final Node.NType.Field v$FIELD
public GRSVertex()
public GRSVertex(double x,
double y,
double z)
GRSVertex at the specifed location.
The transformation is set to a
TVector3d initialized with (x, y, z).x - relative x coordinatey - relative y coordinatez - relative z coordinatepublic GRSVertex(Tuple3d p)
public GRSVertex first()
null
if it has no neighborspublic GRSVertex getNeighbor(int i)
i.i - index of neighbori in cyclic listpublic int getNeighborIndex(GRSVertex v)
v in the cyclic list
of neighbors.v - a vertexv in neighbor list, or -1 if
v is not containedpublic ObjectList<GRSVertex> getNeighbors()
protected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Pointpublic float getU()
public float getV()
public GRSVertex neighbors(ObjectConsumer<? super GRSVertex> cons)
cons. This may be used
as an XL generator method.cons - consumer which receives the neighborsnullprotected Node newInstance()
NodenewInstance in class Pointpublic GRSVertex next(GRSVertex ref)
ref. Same as ref.nextTo (this).ref - vertex of which this is a neighborthis in ref's
neighbor list, or null if this is not
a neighbor of refpublic GRSVertex next(int j, GRSVertex ref)
j-th successor
of this vertex in the neighbor list
of ref. Same as ref.nextTo (j, this).ref - vertex of which this is a neighborj-th successor of this
in ref's neighbor list, or null
if this is not a neighbor of ref.public GRSVertex nextTo(GRSVertex n)
n in the
cyclic list of neighbors.n - a neighborn, or null
if n is not a neighbor of this vertexpublic GRSVertex nextTo(int j, GRSVertex n)
j-th successor
of n in the cyclic list of neighbors.j - distance from n in cyclic neighbor listn - a neighborj-th successor of n,
or null if n is not a neighbor of this vertexpublic GRSVertex prev(GRSVertex ref)
ref. Same as ref.prevTo (this).ref - vertex of which this is a neighborthis in ref's
neighbor list, or null if this is not
a neighbor of refpublic GRSVertex prev(int j, GRSVertex ref)
j-th predecessor
of this vertex in the neighbor list
of ref. Same as ref.prevTo (j, this).ref - vertex of which this is a neighborj-th predecessor of this
in ref's neighbor list, or null
if this is not a neighbor of ref.public GRSVertex prevTo(GRSVertex n)
n in the
cyclic list of neighbors.n - a neighborn, or null
if n is not a neighbor of this vertexpublic GRSVertex prevTo(int j, GRSVertex n)
j-th predecessor
of n in the cyclic list of neighbors.j - distance from n in cyclic neighbor listn - a neighborj-th predecessor of n,
or null if n is not a neighbor of this vertexpublic void setNeighbors(ObjectList<GRSVertex> value)
public void setU(float value)
public void setV(float value)
public int valence()