fable.imageviewer.views
Class ReliefView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by fable.imageviewer.views.ReliefView
All Implemented Interfaces:
IImageSizeProvider, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class ReliefView
extends org.eclipse.ui.part.ViewPart
implements IImageSizeProvider

Display an image as a 3d relief plot using opengl as an eclipse view. The data to display are updated by calling the setData() method.

Author:
andy gotz

Field Summary
 org.lwjgl.opengl.GLContext context
           
 org.lwjgl.util.glu.GLU glu
           
static java.lang.String ID
           
 ReliefView thisView
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ReliefView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 int getImageHeight()
           
 int getImageWidth()
           
 void scaleImage()
           
 void setFocus()
          Passing the focus request to the viewer's control.
 void setImageAsFloat(float[] _imageAsFloat, int _width, int _height, float _minimum, float _maximum, float _mean, java.lang.String _fileName)
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

thisView

public ReliefView thisView

context

public org.lwjgl.opengl.GLContext context

glu

public org.lwjgl.util.glu.GLU glu
Constructor Detail

ReliefView

public ReliefView()
Method Detail

setImageAsFloat

public void setImageAsFloat(float[] _imageAsFloat,
                            int _width,
                            int _height,
                            float _minimum,
                            float _maximum,
                            float _mean,
                            java.lang.String _fileName)

scaleImage

public void scaleImage()

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart

setFocus

public void setFocus()
Passing the focus request to the viewer's control.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

getImageWidth

public int getImageWidth()
Specified by:
getImageWidth in interface IImageSizeProvider

getImageHeight

public int getImageHeight()
Specified by:
getImageHeight in interface IImageSizeProvider