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 Details

    • rotation

      protected org.jogamp.vecmath.AxisAngle4f rotation
    • height

      protected float height
  • Constructor Details

  • 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 class VisualItem3D
    • updateScale

      public void updateScale(Style3D style)
      Overrides:
      updateScale in class VisualItem3D