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()
      init in class Shape3DInt
    • setIcon

      protected void setIcon()
      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
      attributeUpdated in class Shape3DInt
      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.
      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.
      addVertexData in class InterfaceShape
      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
    • 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
      getShape2D in class Shape3DInt
      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
    • 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.
      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().
      updateShape in class Shape3DInt
    • toString

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