de.grogra.rgg
public class Cell extends Node implements EventListener, Transformation
| Modifier and Type | Class and Description |
|---|---|
static class |
Cell.Pattern |
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NTypeEventListener.Bicast, EventListener.Multicaster| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected float |
length |
static Node.NType.Field |
length$FIELD |
protected float |
radius |
static Node.NType.Field |
radius$FIELD |
protected Shader |
shader |
static Node.NType.Field |
shader$FIELD |
protected int |
state |
static Node.NType.Field |
state$FIELD |
static int |
TRANSFORMING_MASK |
static Node.NType.Field |
transforming$FIELD |
static int |
USED_BITS |
static Node.NType.Field |
x$FIELD |
static Node.NType.Field |
y$FIELD |
static Node.NType.Field |
z$FIELD |
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$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
Cell() |
Cell(double x,
double y,
double z,
float l,
float r,
boolean transform,
int state) |
Cell(float x,
float y,
float z,
int state) |
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Cell c) |
double |
distanceLinf(Cell c) |
void |
eventOccured(java.util.EventObject event)
This method is invoked on registered event listeners when
event has occured. |
protected boolean |
getBoolean(BooleanAttribute a,
GraphState gs) |
float |
getLength() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
protected java.lang.Object |
getObject(ObjectAttribute a,
java.lang.Object placeIn,
GraphState gs) |
TVector3d |
getPosition() |
float |
getRadius() |
Shader |
getShader() |
int |
getState() |
int |
getSymbolColor() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isTransforming() |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
void |
postTransform(java.lang.Object object,
boolean asNode,
Matrix4d in,
Matrix4d out,
Matrix4d pre,
GraphState gs)
Implements the change from object's transformation
in
to the object's post-transformation out. |
void |
preTransform(java.lang.Object object,
boolean asNode,
Matrix4d in,
Matrix4d out,
GraphState gs)
Implements the change from the parent's post-transformation
in
to the object's transformation out. |
void |
setLength(float value) |
void |
setRadius(float value) |
void |
setShader(Shader value) |
void |
setState(int value) |
void |
setTransforming(boolean v) |
void |
setX(double x) |
void |
setY(double y) |
void |
setZ(double z) |
java.lang.String |
toString() |
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, 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, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, 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, 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 float length
public static final Node.NType.Field length$FIELD
protected float radius
public static final Node.NType.Field radius$FIELD
protected Shader shader
public static final Node.NType.Field shader$FIELD
protected int state
public static final Node.NType.Field state$FIELD
public static final int TRANSFORMING_MASK
public static final Node.NType.Field transforming$FIELD
public static final int USED_BITS
public static final Node.NType.Field x$FIELD
public static final Node.NType.Field y$FIELD
public static final Node.NType.Field z$FIELD
public Cell()
public Cell(double x,
double y,
double z,
float l,
float r,
boolean transform,
int state)
public Cell(float x,
float y,
float z,
int state)
public double distance(Cell c)
public double distanceLinf(Cell c)
public void eventOccured(java.util.EventObject event)
EventListenerevent has occured. This general listener interface
does not restrict the possible kinds of events. Concrete sources
of events should specify which events they may fire.event - an eventprotected boolean getBoolean(BooleanAttribute a, GraphState gs)
getBoolean in class Nodepublic float getLength()
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 Nodeprotected java.lang.Object getObject(ObjectAttribute a, java.lang.Object placeIn, GraphState gs)
public TVector3d getPosition()
public float getRadius()
public Shader getShader()
public int getState()
public int getSymbolColor()
getSymbolColor in class Nodepublic double getX()
public double getY()
public double getZ()
public boolean isTransforming()
protected Node newInstance()
NodenewInstance in class Nodepublic void postTransform(java.lang.Object object,
boolean asNode,
Matrix4d in,
Matrix4d out,
Matrix4d pre,
GraphState gs)
Transformationin
to the object's post-transformation out.postTransform in interface Transformationobject - the object for which the transformation is computedasNode - is object a node or an edge?in - the transformation of the objectout - the post-tranformation of the object to be computedpre - the post-transformation of the object's parentgs - the graph state in which the computation has to be donepublic void preTransform(java.lang.Object object,
boolean asNode,
Matrix4d in,
Matrix4d out,
GraphState gs)
Transformationin
to the object's transformation out.preTransform in interface Transformationobject - the object for which the transformation is computedasNode - is object a node or an edge?in - the post-transformation of the object's parentout - the tranformation of the object to be computedgs - the graph state in which the computation has to be donepublic void setLength(float value)
public void setRadius(float value)
public void setShader(Shader value)
public void setState(int value)
public void setTransforming(boolean v)
public void setX(double x)
public void setY(double y)
public void setZ(double z)