Class CorticalHemisphereSet3DInt

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 CorticalHemisphereSet3DInt
extends Mesh3DInt
  • Field Details

  • Constructor Details

    • CorticalHemisphereSet3DInt

      public CorticalHemisphereSet3DInt()
    • CorticalHemisphereSet3DInt

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

    • setIcon

      protected void setIcon()
      Overrides:
      setIcon in class Mesh3DInt
    • setName

      public void setName​(java.lang.String name)
      Description copied from interface: NamedObject
      Sets the name for this object.
      Specified by:
      setName in interface NamedObject
      Overrides:
      setName in class InterfaceShape
    • setMeshes

      public void setMeshes​(Mesh3DInt wm_mesh, Mesh3DInt middle_mesh, Mesh3DInt gm_mesh)
    • setMeshes

      public void setMeshes​(Mesh3DInt wm_mesh, Mesh3DInt middle_mesh, Mesh3DInt gm_mesh, boolean update)
    • setMeshWM

      public void setMeshWM​(Mesh3DInt mesh)
    • setMeshWM

      public void setMeshWM​(Mesh3DInt mesh, boolean update)
    • setMeshMiddle

      public void setMeshMiddle​(Mesh3DInt mesh)
    • setMeshMiddle

      public void setMeshMiddle​(Mesh3DInt mesh, boolean update)
    • setMeshGM

      public void setMeshGM​(Mesh3DInt mesh)
    • setMeshGM

      public void setMeshGM​(Mesh3DInt mesh, boolean update)
    • init

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

      public boolean addVertexData​(java.lang.String key, java.util.ArrayList<MguiNumber> data)
      Description copied from class: InterfaceShape
      Adds a new vertex data column and populates it with data.
      Overrides:
      addVertexData in class InterfaceShape
      Returns:
    • removeVertexData

      public void removeVertexData​(java.lang.String key)
      Description copied from class: InterfaceShape
      Remove a vertex data column from this shape. This also removes all associated data, and calls listeners to update, for instance, tree nodes.
      Overrides:
      removeVertexData in class InterfaceShape
    • setColourMap

      public void setColourMap​(ColourMap cm, boolean update)
    • setCurrentColumn

      public void setCurrentColumn​(java.lang.String key, boolean update)
      Overrides:
      setCurrentColumn in class Shape3DInt
    • 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 Mesh3DInt
      Parameters:
      e - an AttributeEvent specifying which attribute has been changed
    • getTreeLabel

      public java.lang.String getTreeLabel()
      Description copied from interface: TreeObject
      Returns the label text to appear in a tree node.
      Specified by:
      getTreeLabel in interface TreeObject
      Overrides:
      getTreeLabel in class Shape3DInt
      Returns:
    • 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:
    • setScene3DObject

      public void setScene3DObject​(boolean make_live)
      Description copied from class: Mesh3DInt
      return an IndexedTriangleArray object representing this mesh. Mesh must be finalized with Mesh3D.finalize()
      Overrides:
      setScene3DObject in class Mesh3DInt
    • setTreeNodeLite

      public void setTreeNodeLite​(InterfaceTreeNode treeNode)
    • setTreeNode

      public void setTreeNode​(InterfaceTreeNode treeNode)
      Description copied from class: InterfaceShape
      Constructs a tree node from this shape. Adds an AttributeTreeNode via the super method, and also adds a node to display the vertex-wise data columns associated with this ShapeInt.

      If overriding this method, subclass implementations should first call this super method to initialize the node and provide a basic construction.

      Specified by:
      setTreeNode in interface TreeObject
      Overrides:
      setTreeNode in class InterfaceShape
      Parameters:
      treeNode - the tree node to construct
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class Mesh3DInt
    • 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