Package mgui.interfaces.shapes.neuro
Class CorticalHemisphereSet3DInt
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.InterfaceShape
mgui.interfaces.shapes.Shape3DInt
mgui.interfaces.shapes.PointSet3DInt
mgui.interfaces.shapes.Mesh3DInt
mgui.interfaces.shapes.neuro.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
-
Nested Class Summary
Nested classes/interfaces inherited from class mgui.interfaces.shapes.Shape3DInt
Shape3DInt.VertexShapeTransformer
Nested classes/interfaces inherited from class mgui.interfaces.shapes.InterfaceShape
InterfaceShape.VertexDataSet
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description Mesh3DInt
gm_mesh
Mesh3DInt
middle_mesh
Mesh3DInt
wm_mesh
Fields inherited from class mgui.interfaces.shapes.Mesh3DInt
edge_appearance, fill_appearance
Fields inherited from class mgui.interfaces.shapes.Shape3DInt
boundBox, boundBoxNode, bounds_group, bounds_shape, boundSphere, centerPt, children2D, creatable_scene_node, drawEngine2D, group_node, has_3d_node, hasCameraListener, idStr, nodeListener, parent2D, scene3DObject, sceneNode, selected_vertices_group, shape_group, shape3d, vertex_shape_transformer, vertices_group
Fields inherited from class mgui.interfaces.shapes.InterfaceShape
attributes, constraints, data_columns, icon, ID, is_auxiliary, is_registered, isDrawable, isImageShape, isLight, isOverridden, last_column_added, last_column_changed, last_column_removed, linked_colour_maps, loader_options, notifyListeners, overrideAttr, parent_set, selected_nodes, shapeListeners, vertex_data, writer_options, xml_current_column, xml_current_loader, xml_current_shape, xml_current_shape_options, xml_current_type, xml_current_url, xml_is_vertex_data, xml_root_dir
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description CorticalHemisphereSet3DInt()
CorticalHemisphereSet3DInt(java.lang.String name)
-
Method Summary
Modifier and Type Method Description boolean
addVertexData(java.lang.String key, java.util.ArrayList<MguiNumber> data)
Adds a new vertex data column and populates it withdata
.void
attributeUpdated(AttributeEvent e)
Responds to an update in one of this shape's attributes.protected Shape2DInt
getShape2D(Plane3D plane, float above_dist, float below_dist)
To be overridden by subclasses implementing a 2D representationjava.lang.String
getTreeLabel()
Returns the label text to appear in a tree node.protected void
init()
void
removeVertexData(java.lang.String key)
Remove a vertex data column from this shape.void
setColourMap(ColourMap cm, boolean update)
void
setCurrentColumn(java.lang.String key, boolean update)
protected void
setIcon()
void
setMeshes(Mesh3DInt wm_mesh, Mesh3DInt middle_mesh, Mesh3DInt gm_mesh)
void
setMeshes(Mesh3DInt wm_mesh, Mesh3DInt middle_mesh, Mesh3DInt gm_mesh, boolean update)
void
setMeshGM(Mesh3DInt mesh)
void
setMeshGM(Mesh3DInt mesh, boolean update)
void
setMeshMiddle(Mesh3DInt mesh)
void
setMeshMiddle(Mesh3DInt mesh, boolean update)
void
setMeshWM(Mesh3DInt mesh)
void
setMeshWM(Mesh3DInt mesh, boolean update)
void
setName(java.lang.String name)
Sets the name for this object.void
setScene3DObject(boolean make_live)
return an IndexedTriangleArray object representing this mesh.void
setTreeNode(InterfaceTreeNode treeNode)
Constructs a tree node from this shape.void
setTreeNodeLite(InterfaceTreeNode treeNode)
java.lang.String
toString()
void
updateShape()
Updates the geometric bounds of this ShapeInt.Methods inherited from class mgui.interfaces.shapes.Mesh3DInt
getAlphaMode, getBackFlip, getDimensions, getFillColour, getFlipNormals, getGeometryInstance, getInheritingAttribute, getLocalName, getMesh, getPolygonOffset, getPolygonOffsetFactor, getShape2D, getTransparencyAttributes, getXML, handlePopupEvent, isHeritableAttribute, needsRedraw, setBackFlip, setEdgeAppearance, setFillAppearance, setFlipNormals, setGraphic3DPopupMenu, setMesh, setShape
Methods inherited from class mgui.interfaces.shapes.PointSet3DInt
appendPoints, appendPoints, getLabelAppearance, getPointSet, getVertexAlpha, getVertexAppearance, getVertexColour, getVerticesAsPoints, getVerticesAsSpheres
Methods inherited from class mgui.interfaces.shapes.Shape3DInt
addShape2DChild, clear2DChildren, contains, copyAttributes, crossesPlane, deregisterCameraListener, destroy, draw2D, drawShape2D, drawShape2D, drawShape2D, fireChildren2D, fireChildren2DModified, fireShapeListeners, fireShapeModified, geometryChanged, getAlpha, getBoundBox, getBoundBoxNode, getBoundSphere, getCameraListener, getCenterOfGravity, getClosestVertex, getDTD, getFullName, getGeometricCenter, getGeometry, getIcon, getLabelColour, getLabelFont, getLabelScale, getLineColour, getLineStyle, getModifiedAttribute, getParent2D, getParentAttribute, getPopupMenu, getPopupMenuLength, getProximity, getScene3DObject, getScene3DObject, getShape, getShape2DInt, getShape2DInt, getShapeSceneNode, getShapeSceneNode, getShortXML, getTransferData, getTransferDataFlavors, getVertex, getVertexColour, getVertexCount, getVertexScale, getVertexScale, getVertexSelection, getVertices, hasAlpha, hasAlpha, hasCameraListener, hasParentShape, isDataFlavorSupported, isInheritingAttribute, isLive, issueTreeNode, performTransfer, registerCameraListener, releaseScene3DChildren, removeShape2DChild, setAlpha, setBoundBoxNode, setCreatableSceneNode, setGeometry, setLabelColour, setLabelFont, setLabelScale, setLineStyle, setLive, setParent2D, setScene3DObject, setSelectedVertices, setShapeSceneNode, setShowSelectedVertices, setVertexSelection, showPopupMenu, showVertices, showVertices, updateChildren2D, updateData, updateSelectedVertices, updateVertices
Methods inherited from class mgui.interfaces.shapes.InterfaceShape
_init, addDataLink, addShapeListener, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, cleanTreeNodes, compareTo, finalizeAfterXML, fromVariable, getAllVertexData, getAttribute, getAttributes, getAttributeValue, getByReferenceUrls, getColourMap, getColourMap, getConstraint, getConstraints, getCurrentColumn, getCurrentDataColumn, getCurrentVertexData, getDataLink, getDataMax, getDataMin, getDatumAtVertex, getDatumAtVertex, getDefaultColourMap, getFileLoader, getFileWriter, getID, getInheritedAttribute, getInheritedAttributes, getInheritedAttributeValue, getLastColumnAdded, getLastColumnChanged, getLastColumnRemoved, getLegalName, getLinkedVertexData, getLinkedVertexDatum, getLoaderOptions, getModel, getName, getNameMap, getNameMap, getNonLinkedDataColumns, getObjectIcon, getParentSet, getPopupMenu, getSourceURL, getUnit, getUrlReference, getVariables, getVariableType, getVariableValue, getVariableValues, getVertexData, getVertexData, getVertexDataColumn, getVertexDataColumnCount, getVertexDataColumnNames, getVertexDataColumns, getVertexDataMap, getWriterOptions, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, hasAttribute, hasColumn, hasData, inheritAttributesFromParent, isAuxiliaryShape, isAuxiliaryShape, isDestroyed, isDrawable, isImageShape, isLegalName, isLight, isSelectable, isVisible, newVertexData, queryObject, queryShapeAtVertex, register, removeColourMap, removeDataLink, removeNameMap, removeShapeListener, renameVertexDataColumn, setAttribute, setAttributes, setColourMap, setColourMap, setConstraint, setCurrentColumn, setDataMax, setDataMax, setDataMax, setDataMin, setDataMin, setDataMin, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDefaultColourMap, setDefaultColourMap, setFileLoader, setFileLoader, setFileWriter, setID, setLoaderOptions, setNameMap, setOverride, setParentSet, setSelectable, setUnit, setUrlReference, setVariableValues, setVariableValues, setVertexData, setVertexData, setVertexData, setVertexDataMap, setVisible, setWriterOptions, setXMLRoot, show2D, show2D, show3D, show3D, showData, showData, supportsVariableType, toVariable, unsetOverride, updateDataColumns, vertexDataColumnChanged, vertexDataColumnColourMapChanged, writeXML, writeXML, writeXML
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
-
Field Details
-
wm_mesh
-
middle_mesh
-
gm_mesh
-
-
Constructor Details
-
CorticalHemisphereSet3DInt
public CorticalHemisphereSet3DInt() -
CorticalHemisphereSet3DInt
public CorticalHemisphereSet3DInt(java.lang.String name)
-
-
Method Details
-
setIcon
protected void setIcon() -
setName
public void setName(java.lang.String name)Description copied from interface:NamedObject
Sets the name for this object.- Specified by:
setName
in interfaceNamedObject
- Overrides:
setName
in classInterfaceShape
-
setMeshes
-
setMeshes
-
setMeshWM
-
setMeshWM
-
setMeshMiddle
-
setMeshMiddle
-
setMeshGM
-
setMeshGM
-
init
protected void init()- Overrides:
init
in classShape3DInt
-
addVertexData
Description copied from class:InterfaceShape
Adds a new vertex data column and populates it withdata
.- Overrides:
addVertexData
in classInterfaceShape
- 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 classInterfaceShape
-
setColourMap
-
setCurrentColumn
public void setCurrentColumn(java.lang.String key, boolean update)- Overrides:
setCurrentColumn
in classShape3DInt
-
attributeUpdated
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 interfaceAttributeListener
- Overrides:
attributeUpdated
in classMesh3DInt
- Parameters:
e
- anAttributeEvent
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 interfaceTreeObject
- Overrides:
getTreeLabel
in classShape3DInt
- Returns:
-
getShape2D
Description copied from class:Shape3DInt
To be overridden by subclasses implementing a 2D representation- Overrides:
getShape2D
in classShape3DInt
- Parameters:
plane
- Plane on which to renderabove_dist
- Distance above plane within which to project a shapebelow_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 classMesh3DInt
-
setTreeNodeLite
-
setTreeNode
Description copied from class:InterfaceShape
Constructs a tree node from this shape. Adds anAttributeTreeNode
via thesuper
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 interfaceTreeObject
- Overrides:
setTreeNode
in classInterfaceShape
- Parameters:
treeNode
- the tree node to construct
-
toString
public java.lang.String toString() -
updateShape
public void updateShape()Description copied from class:Shape3DInt
Updates the geometric bounds of this ShapeInt. Does not callShape3DInt.setScene3DObject()
.- Overrides:
updateShape
in classShape3DInt
-