Class CorticalSurfaceSet3DInt

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 CorticalSurfaceSet3DInt
extends Mesh3DInt
Representation of a set of cortical surfaces, including grey matter (GM) interfaces with white matter (WM) and cerebrospinal fluid (CSF).
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

    • CorticalSurfaceSet3DInt

      public CorticalSurfaceSet3DInt()
    • CorticalSurfaceSet3DInt

      public CorticalSurfaceSet3DInt​(java.lang.String name)
    • CorticalSurfaceSet3DInt

      public CorticalSurfaceSet3DInt​(java.lang.String name, CorticalHemisphereSet3DInt left, CorticalHemisphereSet3DInt right)
  • Method Details

    • setIcon

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

      public void setLeft​(CorticalHemisphereSet3DInt left)
    • setRight

      public void setRight​(CorticalHemisphereSet3DInt right)
    • 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
    • setHemispheres

      public void setHemispheres​(CorticalHemisphereSet3DInt left, CorticalHemisphereSet3DInt right)
    • setHemispheres

      public void setHemispheres​(CorticalHemisphereSet3DInt left, CorticalHemisphereSet3DInt right, boolean update)
    • init

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

      public boolean hasLeft()
    • hasRight

      public boolean hasRight()
    • addVertexData

      public boolean addVertexData​(java.lang.String key, java.util.ArrayList<MguiNumber> data)
      Add node data to both hemispheres
      Overrides:
      addVertexData in class InterfaceShape
      Parameters:
      key -
      data -
      Returns:
    • addVertexData

      public void addVertexData​(java.lang.String key, java.util.ArrayList<MguiNumber> data, int hemi)
      Add node data to the specified hemisphere (specified by constants HEM_LEFT and HEM_RIGHT.
      Parameters:
      key -
      data -
      hemi -
    • 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
    • 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
    • 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