endrov.typeText
Class TextAnnotModelExtension

java.lang.Object
  extended by endrov.typeText.TextAnnotModelExtension
All Implemented Interfaces:
Viewer3DWindowHook

public class TextAnnotModelExtension
extends java.lang.Object
implements Viewer3DWindowHook

Extension to Model Window: shows image annotation


Constructor Summary
TextAnnotModelExtension()
           
 
Method Summary
 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()
           
 java.util.Collection<TextAnnot> getAnnot()
           
 EvDecimal getFirstFrame()
           
 EvDecimal getLastFrame()
           
 void initOpenGL(javax.media.opengl.GL gl)
           
 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
 

Constructor Detail

TextAnnotModelExtension

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

canRender

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

getAnnot

public java.util.Collection<TextAnnot> getAnnot()

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

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