endrov.typeLineage.modw
Class LineageModelExtension

java.lang.Object
  extended by endrov.typeLineage.modw.LineageModelExtension
All Implemented Interfaces:
Viewer3DMouseListener, Viewer3DWindowHook, java.awt.event.ActionListener, java.util.EventListener

public class LineageModelExtension
extends java.lang.Object
implements Viewer3DWindowHook, java.awt.event.ActionListener, Viewer3DMouseListener

Lineage extension to Model Window


Nested Class Summary
static class LineageModelExtension.ShowExp
          How to show expression patterns
 
Field Summary
 javax.swing.JMenu miDefaultNonselectMeshRender
           
 javax.swing.JMenuItem miDefaultNonselectMeshRenderOff
           
 javax.swing.JMenuItem miDefaultNonselectMeshRenderSolid
           
 javax.swing.JMenuItem miDefaultNonselectMeshRenderWireframe
           
 javax.swing.JMenu miDefaultSelectMeshRender
           
 javax.swing.JMenuItem miDefaultSelectMeshRenderOff
           
 javax.swing.JMenuItem miDefaultSelectMeshRenderSolid
           
 javax.swing.JMenuItem miDefaultSelectMeshRenderWireframe
           
 javax.swing.JMenuItem miHideSelectedNuc
           
 javax.swing.JMenuItem miSelectVisible
           
 javax.swing.JMenuItem miSetTraceWidth
           
 javax.swing.JCheckBoxMenuItem miShowDelaunay
           
 javax.swing.JCheckBoxMenuItem miShowDiv
           
 javax.swing.JRadioButtonMenuItem miShowExpColorAND
           
 javax.swing.JRadioButtonMenuItem miShowExpColorMod
           
 javax.swing.JRadioButtonMenuItem miShowExpMarkerColor
           
 javax.swing.JRadioButtonMenuItem miShowExpMarkerSize
           
 javax.swing.JRadioButtonMenuItem miShowNamesAll
           
 javax.swing.JRadioButtonMenuItem miShowNamesNone
           
 javax.swing.JRadioButtonMenuItem miShowNamesSelected
           
 javax.swing.JMenuItem miShowNucSize0
           
 javax.swing.JMenuItem miShowNucSize100
           
 javax.swing.JMenuItem miShowNucSize25
           
 javax.swing.JMenuItem miShowNucSize50
           
 javax.swing.JMenuItem miShowNucSize75
           
 javax.swing.JMenuItem miShowNucSizeCustom
           
 javax.swing.JMenuItem miShowSelectedNuc
           
 javax.swing.JCheckBoxMenuItem miShowSimpleTraces
           
 javax.swing.JRadioButtonMenuItem miShowTraceAll
           
 javax.swing.JRadioButtonMenuItem miShowTraceNone
           
 javax.swing.JRadioButtonMenuItem miShowTraceSel
           
 javax.swing.JMenu mShowExp
           
 javax.swing.ButtonGroup mShowExpGroup
           
 javax.swing.JMenu mShowNames
           
 javax.swing.ButtonGroup mShowNamesGroup
           
 javax.swing.JMenu mShowNucSize
           
 javax.swing.JMenu mShowTrace
           
 javax.swing.ButtonGroup mShowTraceGroup
           
 double nucMagnification
           
 LineageModelExtension.ShowExp showExpAs
           
 EvColor traceColor
          Color of the movement trace of particles
 
Constructor Summary
LineageModelExtension()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.util.Collection<BoundingBox3D> adjustScale()
          Adjust the scale
 java.util.Collection<javax.vecmath.Vector3d> autoCenterMid()
          Give suitable center of all objects
 double autoCenterRadius(javax.vecmath.Vector3d mid)
          Given a middle position, figure out radius required to fit objects
 boolean canRender(EvObject ob)
           
 void commitModifyingNuc()
          Currently modified particles is finalized.
 void createHook(Viewer3DWindow w)
           
 void datachangedEvent()
           
 void displayFinal(javax.media.opengl.GL glin, java.util.List<TransparentRenderer3D> transparentRenderers)
          Render graphics
 void displayInit(javax.media.opengl.GL gl)
          Prepare for rendering
 void displaySelect(javax.media.opengl.GL gl)
          Render for selection
 void drawSelectSphere(javax.media.opengl.GL2 gl, double r)
           
 void fillMenus()
           
 EvDecimal getFirstFrame()
           
 EvDecimal getLastFrame()
           
 java.awt.Color getTraceColor(Lineage.Particle nuc)
           
 java.util.Collection<Lineage> getVisibleLineages()
           
 void initOpenGL(javax.media.opengl.GL gl)
           
static void initPlugin()
          Plugin declaration
 boolean mouseClicked(java.awt.event.MouseEvent e, javax.swing.JPopupMenu menu)
          Handle mouse click.
 boolean mouseDragged(java.awt.event.MouseEvent e, int dx, int dy)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void readPersonalConfig(org.jdom.Element e)
           
 void savePersonalConfig(org.jdom.Element e)
           
 void setDefaultNonselectMeshRenderMode(Lineage.MeshRenderMode rm)
           
 void setDefaultSelectMeshRenderMode(Lineage.MeshRenderMode rm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nucMagnification

public double nucMagnification

mShowNames

public javax.swing.JMenu mShowNames

miShowNamesNone

public javax.swing.JRadioButtonMenuItem miShowNamesNone

miShowNamesSelected

public javax.swing.JRadioButtonMenuItem miShowNamesSelected

miShowNamesAll

public javax.swing.JRadioButtonMenuItem miShowNamesAll

mShowNamesGroup

public javax.swing.ButtonGroup mShowNamesGroup

mShowExp

public javax.swing.JMenu mShowExp

miShowExpColorMod

public javax.swing.JRadioButtonMenuItem miShowExpColorMod

miShowExpColorAND

public javax.swing.JRadioButtonMenuItem miShowExpColorAND

miShowExpMarkerColor

public javax.swing.JRadioButtonMenuItem miShowExpMarkerColor

miShowExpMarkerSize

public javax.swing.JRadioButtonMenuItem miShowExpMarkerSize

mShowExpGroup

public javax.swing.ButtonGroup mShowExpGroup

miShowSelectedNuc

public javax.swing.JMenuItem miShowSelectedNuc

miHideSelectedNuc

public javax.swing.JMenuItem miHideSelectedNuc

mShowTrace

public javax.swing.JMenu mShowTrace

miShowTraceNone

public javax.swing.JRadioButtonMenuItem miShowTraceNone

miShowTraceSel

public javax.swing.JRadioButtonMenuItem miShowTraceSel

miShowTraceAll

public javax.swing.JRadioButtonMenuItem miShowTraceAll

mShowTraceGroup

public javax.swing.ButtonGroup mShowTraceGroup

miShowSimpleTraces

public javax.swing.JCheckBoxMenuItem miShowSimpleTraces

miSetTraceWidth

public javax.swing.JMenuItem miSetTraceWidth

mShowNucSize

public javax.swing.JMenu mShowNucSize

miShowNucSize0

public javax.swing.JMenuItem miShowNucSize0

miShowNucSize25

public javax.swing.JMenuItem miShowNucSize25

miShowNucSize50

public javax.swing.JMenuItem miShowNucSize50

miShowNucSize75

public javax.swing.JMenuItem miShowNucSize75

miShowNucSize100

public javax.swing.JMenuItem miShowNucSize100

miShowNucSizeCustom

public javax.swing.JMenuItem miShowNucSizeCustom

miSelectVisible

public javax.swing.JMenuItem miSelectVisible

miDefaultSelectMeshRender

public javax.swing.JMenu miDefaultSelectMeshRender

miDefaultNonselectMeshRender

public javax.swing.JMenu miDefaultNonselectMeshRender

miDefaultSelectMeshRenderOff

public javax.swing.JMenuItem miDefaultSelectMeshRenderOff

miDefaultSelectMeshRenderSolid

public javax.swing.JMenuItem miDefaultSelectMeshRenderSolid

miDefaultSelectMeshRenderWireframe

public javax.swing.JMenuItem miDefaultSelectMeshRenderWireframe

miDefaultNonselectMeshRenderOff

public javax.swing.JMenuItem miDefaultNonselectMeshRenderOff

miDefaultNonselectMeshRenderSolid

public javax.swing.JMenuItem miDefaultNonselectMeshRenderSolid

miDefaultNonselectMeshRenderWireframe

public javax.swing.JMenuItem miDefaultNonselectMeshRenderWireframe

showExpAs

public LineageModelExtension.ShowExp showExpAs

traceColor

public EvColor traceColor
Color of the movement trace of particles


miShowDiv

public javax.swing.JCheckBoxMenuItem miShowDiv

miShowDelaunay

public javax.swing.JCheckBoxMenuItem miShowDelaunay
Constructor Detail

LineageModelExtension

public LineageModelExtension()
Method Detail

fillMenus

public void fillMenus()
Specified by:
fillMenus in interface Viewer3DWindowHook

commitModifyingNuc

public void commitModifyingNuc()
Currently modified particles is finalized. Commit changes. Only for dragging at the moment


createHook

public void createHook(Viewer3DWindow w)
Specified by:
createHook in interface Viewer3DWindowHook

mouseClicked

public boolean mouseClicked(java.awt.event.MouseEvent e,
                            javax.swing.JPopupMenu menu)
Description copied from interface: Viewer3DMouseListener
Handle mouse click. Return true if the event is swallowed (thus the caller will not try to handle the event). A menu is provided that can be filled in with additional right-click entries

Specified by:
mouseClicked in interface Viewer3DMouseListener

mouseDragged

public boolean mouseDragged(java.awt.event.MouseEvent e,
                            int dx,
                            int dy)
Specified by:
mouseDragged in interface Viewer3DMouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface Viewer3DMouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface Viewer3DMouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface Viewer3DMouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface Viewer3DMouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface Viewer3DMouseListener

readPersonalConfig

public void readPersonalConfig(org.jdom.Element e)
Specified by:
readPersonalConfig in interface Viewer3DWindowHook

savePersonalConfig

public void savePersonalConfig(org.jdom.Element e)
Specified by:
savePersonalConfig in interface Viewer3DWindowHook

datachangedEvent

public void datachangedEvent()
Specified by:
datachangedEvent in interface Viewer3DWindowHook

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setDefaultSelectMeshRenderMode

public void setDefaultSelectMeshRenderMode(Lineage.MeshRenderMode rm)

setDefaultNonselectMeshRenderMode

public void setDefaultNonselectMeshRenderMode(Lineage.MeshRenderMode rm)

canRender

public boolean canRender(EvObject ob)
Specified by:
canRender in interface Viewer3DWindowHook

getVisibleLineages

public java.util.Collection<Lineage> getVisibleLineages()

initOpenGL

public void initOpenGL(javax.media.opengl.GL gl)
Specified by:
initOpenGL in interface Viewer3DWindowHook

displayInit

public void displayInit(javax.media.opengl.GL gl)
Prepare for rendering

Specified by:
displayInit in interface Viewer3DWindowHook

displaySelect

public void displaySelect(javax.media.opengl.GL gl)
Render for selection

Specified by:
displaySelect in interface Viewer3DWindowHook

getTraceColor

public java.awt.Color getTraceColor(Lineage.Particle nuc)

displayFinal

public void displayFinal(javax.media.opengl.GL glin,
                         java.util.List<TransparentRenderer3D> transparentRenderers)
Render graphics

Specified by:
displayFinal in interface Viewer3DWindowHook

drawSelectSphere

public void drawSelectSphere(javax.media.opengl.GL2 gl,
                             double r)

adjustScale

public java.util.Collection<BoundingBox3D> adjustScale()
Adjust the scale

Specified by:
adjustScale in interface Viewer3DWindowHook

autoCenterMid

public java.util.Collection<javax.vecmath.Vector3d> autoCenterMid()
Give suitable center of all objects

Specified by:
autoCenterMid in interface Viewer3DWindowHook

autoCenterRadius

public double autoCenterRadius(javax.vecmath.Vector3d mid)
Given a middle position, figure out radius required to fit objects

Specified by:
autoCenterRadius in interface Viewer3DWindowHook

getFirstFrame

public EvDecimal getFirstFrame()
Specified by:
getFirstFrame in interface Viewer3DWindowHook

getLastFrame

public EvDecimal getLastFrame()
Specified by:
getLastFrame in interface Viewer3DWindowHook

initPlugin

public static void initPlugin()
Plugin declaration