|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp3d.objects.Null
de.grogra.imp3d.objects.ColoredNull
de.grogra.imp3d.objects.Point
de.grogra.imp3d.objects.GRSVertex
public class GRSVertex
A 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 FormNested Class Summary |
---|
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node |
---|
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType |
Nested classes/interfaces inherited from interface de.grogra.util.Map |
---|
Map.Chain |
Field Summary | |
---|---|
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
|
Fields inherited from class de.grogra.imp3d.objects.ColoredNull |
---|
color, color$FIELD |
Fields inherited from class de.grogra.imp3d.objects.Null |
---|
transform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELD, USED_BITS |
Fields inherited from class de.grogra.graph.impl.Node |
---|
ADDITIONAL_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$FIELD |
Fields inherited from interface de.grogra.util.Map |
---|
DEFAULT_VALUE, EMPTY_MAP |
Constructor Summary | |
---|---|
GRSVertex()
Creates a new GRSVertex whose
transformation is set to a
TVector3d initialized with (0, 0, 0). |
|
GRSVertex(double x,
double y,
double z)
Creates a new GRSVertex at the specifed location. |
|
GRSVertex(Tuple3d p)
Creates a new GRSVertex whose
transformation is set to a
TVector3d initialized with p . |
Method Summary | |
---|---|
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. |
Methods inherited from class de.grogra.imp3d.objects.Point |
---|
draw, pick |
Methods inherited from class de.grogra.imp3d.objects.ColoredNull |
---|
getColor, setColor, setColor, setColor |
Methods inherited from class de.grogra.imp3d.objects.Null |
---|
getLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslation |
Methods inherited from class de.grogra.graph.impl.Edge |
---|
addEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.grogra.persistence.PersistenceCapable |
---|
getBitMark, getObjectMark, setBitMark, setObjectMark |
Field Detail |
---|
public 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
Constructor Detail |
---|
public GRSVertex()
GRSVertex
whose
transformation is set to a
TVector3d
initialized with (0, 0, 0).
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)
GRSVertex
whose
transformation is set to a
TVector3d
initialized with p
.
Method Detail |
---|
public GRSVertex first()
null
if it has no neighborspublic GRSVertex getNeighbor(int i)
i
.
i
- index of neighbor
i
in cyclic listpublic int getNeighborIndex(GRSVertex v)
v
in the cyclic list
of neighbors.
v
- a vertex
v
in neighbor list, or -1 if
v
is not containedpublic ObjectList<GRSVertex> getNeighbors()
protected Node.NType getNTypeImpl()
Node
Node.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 Point
public 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 neighbors
null
protected Node newInstance()
Node
newInstance
in class Point
public GRSVertex next(GRSVertex ref)
ref
. Same as ref.nextTo (this)
.
ref
- vertex of which this
is a neighbor
this
in ref
's
neighbor list, or null
if this
is not
a neighbor of ref
public 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 neighbor
j
-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 neighbor
n
, 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 neighbor
j
-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 neighbor
this
in ref
's
neighbor list, or null
if this
is not
a neighbor of ref
public 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 neighbor
j
-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 neighbor
n
, 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 neighbor
j
-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()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |