Class VectorSet3DInt

All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.lang.Comparable<InterfaceShape>, AttributeListener, AttributeObject, InterfaceObject, PersistentObject, VariableObject, PopupMenuObject, NamedObject, InterfaceQueryObject, InterfaceShapeQueryObject, VertexDataColumnListener, InterfaceTransferable, TreeObject, CleanableObject, XMLObject, IconObject, org.jogamp.java3d.GeometryUpdater

public class VectorSet3DInt
extends Shape3DInt
  • Field Details

    • scene_group

      protected org.jogamp.java3d.BranchGroup scene_group
    • fill_appearance

      protected org.jogamp.java3d.Appearance fill_appearance
    • edge_appearance

      protected org.jogamp.java3d.Appearance edge_appearance
    • vectors

      public java.util.ArrayList<Vector3DInt> vectors
    • data_sizes

      public java.util.HashMap<java.lang.String,​java.lang.Integer> data_sizes
  • Constructor Details

    • VectorSet3DInt

      public VectorSet3DInt()
    • VectorSet3DInt

      public VectorSet3DInt​(java.lang.String name)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Shape3DInt
    • setIcon

      protected void setIcon()
      Overrides:
      setIcon in class Shape3DInt
    • getVectors

      public java.util.ArrayList<Vector3DInt> getVectors()
    • attributeUpdated

      public void attributeUpdated​(AttributeEvent e)
      Description copied from class: Shape3DInt
      Responds to an update in one of this shape's attributes.

      Subclasses should override and call this super method AFTER handling the attribute change appropriately. Subclasses should also override needsRedraw() to indicate whether the scene node should be regenerated.

      Specified by:
      attributeUpdated in interface AttributeListener
      Overrides:
      attributeUpdated in class Shape3DInt
      Parameters:
      e - an AttributeEvent specifying which attribute has been changed
    • getArrowScale

      public float getArrowScale()
    • getStartPtScale

      public float getStartPtScale()
    • updateArrowScale

      protected void updateArrowScale()
    • updateStartPtScale

      protected void updateStartPtScale()
    • updateChildren2D

      protected void updateChildren2D​(Attribute a)
      Description copied from class: Shape3DInt
      Updates an attribute of this shape's 2D children.
      Overrides:
      updateChildren2D in class Shape3DInt
    • addVector

      public void addVector​(Vector3D vector)
    • addVector

      public void addVector​(Vector3D vector, boolean updateShape, boolean updateListeners)
    • addVector

      public void addVector​(Shape3DInt thisShape, boolean updateShape, boolean updateListeners)
    • addVertexData

      public boolean addVertexData​(java.lang.String key, java.util.ArrayList<MguiNumber> data, NameMap map)
      Description copied from class: InterfaceShape
      Adds vertex-wise data to this shape.
      Overrides:
      addVertexData in class InterfaceShape
      Parameters:
      key - The key by which this column is to be referred
      data - The values for this column
      map - Name map [optionally null] associating integer keys to names
      Returns:
    • getDataForVector

      public java.util.ArrayList<java.util.ArrayList<MguiNumber>> getDataForVector​(int index)
    • getDataForVector

      public java.util.ArrayList<MguiNumber> getDataForVector​(java.lang.String key, int index)
    • getShowLabels

      public boolean getShowLabels()
    • getShape2D

      protected Shape2DInt getShape2D​(Plane3D plane, float above_dist, float below_dist)
      Description copied from class: Shape3DInt
      To be overridden by subclasses implementing a 2D representation
      Overrides:
      getShape2D in class Shape3DInt
      Parameters:
      plane - Plane on which to render
      above_dist - Distance above plane within which to project a shape
      below_dist - Distance below plane within which to project a shape
      Returns:
    • getSize

      public int getSize()
    • setScene3DObject

      public void setScene3DObject​(boolean make_live)
      Description copied from class: Shape3DInt
      Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes. This node should be retrieved using the Shape3DInt.getShapeSceneNode() method. A scene node will only created if one of these conditions is met:
      • The shape is auxiliary (i.e., not a model shape, but a helper shape such as a section polygon)
      • The shape is associated with a ShapeModel3D, and this model is live (is associated with at least one Java3D scene graph).
      Subclasses which call this super method should always check that a scene node has indeed been created.
      Overrides:
      setScene3DObject in class Shape3DInt
    • needsRedraw3D

      public boolean needsRedraw3D​(Attribute a)
    • setFillAppearance

      protected void setFillAppearance()
    • setEdgeAppearance

      protected void setEdgeAppearance()
    • updateShape

      public void updateShape()
      Description copied from class: Shape3DInt
      Updates the geometric bounds of this ShapeInt. Does not call Shape3DInt.setScene3DObject().
      Overrides:
      updateShape in class Shape3DInt
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class Shape3DInt