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
FieldsModifier and TypeFieldDescriptionprotected floatprotected org.jogamp.vecmath.AxisAngle4fFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateEndPoints(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 voiddoUpdateLocation(org.jogamp.vecmath.Point3f source, org.jogamp.vecmath.Point3f target) voidupdateLocation(org.jogamp.vecmath.Point3f source, float sourceRadius, org.jogamp.vecmath.Point3f target, float targetRadius) voidupdateScale(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:
updateLocationin classVisualItem3D
-
updateScale
- Overrides:
updateScalein classVisualItem3D
-