endrov.typeNetwork
Class NetworkModelExtension

java.lang.Object
  extended by endrov.typeNetwork.NetworkModelExtension
All Implemented Interfaces:
Viewer3DWindowHook, java.awt.event.ActionListener, java.util.EventListener

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

Extension to Model Window: shows networks


Field Summary
 javax.swing.JCheckBoxMenuItem miRenderPoints
           
 javax.swing.JMenuItem miSetTraceWidth
           
 
Constructor Summary
NetworkModelExtension()
           
 
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 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 fillMenus()
           
 EvDecimal getFirstFrame()
           
 EvDecimal getLastFrame()
           
 java.util.Collection<Network> getObjects()
           
 java.awt.Color getTraceColor()
           
 void initOpenGL(javax.media.opengl.GL gl)
           
static void initPlugin()
          Plugin declaration
 void readPersonalConfig(org.jdom.Element e)
           
 void savePersonalConfig(org.jdom.Element e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miSetTraceWidth

public javax.swing.JMenuItem miSetTraceWidth

miRenderPoints

public javax.swing.JCheckBoxMenuItem miRenderPoints
Constructor Detail

NetworkModelExtension

public NetworkModelExtension()
Method Detail

fillMenus

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

createHook

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

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

canRender

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

getObjects

public java.util.Collection<Network> getObjects()

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()

displayFinal

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

Specified by:
displayFinal in interface Viewer3DWindowHook

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