Class EdgeVisualItem
java.lang.Object
repast.simphony.visualization.visualization3D.VisualItem3D
repast.simphony.visualization.network.EdgeVisualItem
- Direct Known Subclasses:
DirectedEdgeVisualItem
,DirectedLineEdgeVisualItem
,LineEdgeVisualItem3D
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected org.jogamp.vecmath.AxisAngle4f
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
rotation
protected org.jogamp.vecmath.AxisAngle4f rotation -
height
protected float height
-
-
Constructor Details
-
EdgeVisualItem
-
-
Method Details
-
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
- Overrides:
updateScale
in classVisualItem3D
-