Class EdgeVisualItem
- java.lang.Object
-
- repast.simphony.visualization.visualization3D.VisualItem3D
-
- repast.simphony.visualization.network.EdgeVisualItem
-
- Direct Known Subclasses:
DirectedEdgeVisualItem
,DirectedLineEdgeVisualItem
,LineEdgeVisualItem3D
public class EdgeVisualItem extends VisualItem3D
- Author:
- Nick Collier
-
-
Field Summary
Fields Modifier and Type Field Description protected float
height
protected org.jogamp.vecmath.AxisAngle4f
rotation
-
Fields inherited from class repast.simphony.visualization.visualization3D.VisualItem3D
branchGroup, changedMap, color, label, location, moved, newUserBranch, oldUserBranch, rotationGroup, scale, scaleGroup, shapes, taggedBranchGroup, transformer, translateGroup, visualizedObject
-
-
Constructor Summary
Constructors Constructor Description EdgeVisualItem(TaggedBranchGroup tGroup, Object o, Label label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateEndPoints(org.jogamp.vecmath.Point3f source, float sourceRadius, org.jogamp.vecmath.Point3f target, float targetRadius)
First find the points at which the edge will intersect the bounding spheres.protected void
doUpdateLocation(org.jogamp.vecmath.Point3f source, org.jogamp.vecmath.Point3f target)
void
updateLocation(org.jogamp.vecmath.Point3f source, float sourceRadius, org.jogamp.vecmath.Point3f target, float targetRadius)
void
updateScale(Style3D style)
-
Methods inherited from class repast.simphony.visualization.visualization3D.VisualItem3D
addTo, applyTransform, getLabel, getLabelColor, getLabelFont, getLabelPosition, getLocation, getScale, getShapeAppearance, getTaggedBranchGroup, getVisualizedObject, hasMoved, removeFrom, setLabel, setLabelColor, setLabelFont, setLabelOffset, setLocation, setLocation, setLocation, setRotation, setScale, setShapeAppearance, setTaggedBranchGroup, shapes, updateAppearance, updateLabel, updateLocation, updateRotation, updateTaggedBranchGroup
-
-
-
-
Constructor Detail
-
EdgeVisualItem
public EdgeVisualItem(TaggedBranchGroup tGroup, Object o, Label label)
-
-
Method Detail
-
doUpdateLocation
protected void doUpdateLocation(org.jogamp.vecmath.Point3f source, org.jogamp.vecmath.Point3f target)
-
calculateEndPoints
protected void calculateEndPoints(org.jogamp.vecmath.Point3f source, float sourceRadius, org.jogamp.vecmath.Point3f target, float targetRadius)
First find the points at which the edge will intersect the bounding spheres. The distance between these points will be the edge length.- Parameters:
source
-sourceRadius
-target
-targetRadius
-
-
updateLocation
public void updateLocation(org.jogamp.vecmath.Point3f source, float sourceRadius, org.jogamp.vecmath.Point3f target, float targetRadius)
- Overrides:
updateLocation
in classVisualItem3D
-
updateScale
public void updateScale(Style3D style)
- Overrides:
updateScale
in classVisualItem3D
-
-