public class SpringBoxNodeParticle extends NodeParticle
attE, box, disp, frozen, len, neighbours, out, repE
Constructor and Description |
---|
SpringBoxNodeParticle(SpringBox box,
String id)
New node.
|
SpringBoxNodeParticle(SpringBox box,
String id,
double x,
double y,
double z)
New node at a given position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attraction(Vector3 delta)
Compute the global attraction toward each connected node.
|
protected void |
gravity(Vector3 delta)
Compute the global attraction toward the layout center (if enabled).
|
protected boolean |
intersection(org.miv.pherd.ntree.Cell cell) |
protected void |
recurseRepulsion(org.miv.pherd.ntree.Cell cell,
Vector3 delta) |
protected void |
repulsionN2(Vector3 delta)
Compute the repulsion for each other node.
|
protected void |
repulsionNLogN(Vector3 delta)
Compute the repulsion for each node in the viewing distance, and use the
n-tree to find them.
|
createDebug, getEdges, inserted, move, moveOf, moveTo, nextStep, registerEdge, removed, removeNeighborEdges, unregisterEdge
public SpringBoxNodeParticle(SpringBox box, String id)
box
- The spring box.id
- The node identifier.public SpringBoxNodeParticle(SpringBox box, String id, double x, double y, double z)
box
- The spring box.id
- The node identifier.x
- The abscissa.y
- The ordinate.z
- The depth.protected void repulsionN2(Vector3 delta)
NodeParticle
repulsionN2
in class NodeParticle
delta
- The computed displacement vector.protected void repulsionNLogN(Vector3 delta)
NodeParticle
repulsionNLogN
in class NodeParticle
delta
- The computed displacement vector.protected void recurseRepulsion(org.miv.pherd.ntree.Cell cell, Vector3 delta)
protected void attraction(Vector3 delta)
NodeParticle
attraction
in class NodeParticle
delta
- The computed displacement vector.protected void gravity(Vector3 delta)
NodeParticle
gravity
in class NodeParticle
delta
- The computed displacement vector.BarnesHutLayout#useGravity
protected boolean intersection(org.miv.pherd.ntree.Cell cell)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses