|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
jpview.gui.PTMViewerApplet
public class PTMViewerApplet
A simple Viewer applet
| Field Summary |
|---|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PTMViewerApplet()
|
|
| Method Summary | |
|---|---|
void |
fireTransform()
exercises the current tranform operator on the PTM data |
void |
forceUpdate()
force an update for the current tranform - decache and optimizations off |
int |
getExp()
Returns the current value of the exponent in the specular term of the Phong lighting equation (delagate from PTM) |
float |
getKDiff()
Returns the current value of kDiff in the diffuse term of the Phong lighting equation (delagate from PTM) |
float |
getKSpec()
Returns the current value of kSpec in the specular term of the Phong lighting equation (delagate from PTM) |
float |
getLuminance()
Get the current value for the global ambient term |
PTM |
getPTM()
Returns the PTM used by the Applet |
int |
getPTMHeight()
Returns the height of the current PTM |
int |
getPTMWidth()
Returns the width of the current PTM |
void |
init()
Initalize all the resources for this object |
void |
mouseDragged(java.awt.event.MouseEvent e)
When the mouse is dragged, the light source moves with it |
void |
mouseMoved(java.awt.event.MouseEvent e)
displays the current position of the mouse in the status bar |
void |
refreshMap()
Reload the environment map |
void |
run()
This method is called by the thread that was created in the start method. |
void |
setBrowser(java.awt.Container c)
not implemented |
void |
setControls(PTMControls c)
not implemented |
void |
setEnvironmentMap(EnvironmentMap e)
not implemented |
void |
setExp(int i)
Set the value of the exponent in the specular term of the Phong lighting equation for the specular transform operator |
void |
setKDiff(float f)
set the value for kDiff in the Phong lighting equation for the PTM |
void |
setKSpec(float f)
set the value for the kSpec term in the Phong lighting equation for the PTM |
void |
setLuminance(float f)
Set the current value for the global ambient term |
void |
setMapBlurType(int i)
set the blur type for the map ( BLUR_TYPE_SIMPLE, BLUR_TYPE_GAUSSIAN, BLUR_TYPE_NONE ) |
void |
setMapGuassianBlurSigma(float f)
set the value of sigma for the gaussian blur procedure |
void |
setMapKernelSize(int i)
set the kernel size for the blur |
void |
setMapSampleSize(int i)
set the sample size for the environment map |
void |
setPixelTransformOp(PixelTransformOp pto)
not implemented |
void |
start()
start the animation |
void |
stop()
suspend the animation |
| Methods inherited from class javax.swing.JApplet |
|---|
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
| Methods inherited from class java.applet.Applet |
|---|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jpview.gui.PTMWindow |
|---|
getHeight, getLayeredPane, getWidth |
| Constructor Detail |
|---|
public PTMViewerApplet()
| Method Detail |
|---|
public void init()
init in class java.applet.Appletpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - the mouse eventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - the mouse eventpublic PTM getPTM()
getPTM in interface PTMWindowpublic void fireTransform()
fireTransform in interface PTMWindowpublic int getExp()
getExp in interface PTMWindowpublic float getKDiff()
getKDiff in interface PTMWindowpublic float getKSpec()
getKSpec in interface PTMWindowpublic int getPTMHeight()
getPTMHeight in interface PTMWindowpublic int getPTMWidth()
getPTMWidth in interface PTMWindowpublic void setKSpec(float f)
setKSpec in interface PTMWindowf - the new value for kSpecpublic void setKDiff(float f)
setKDiff in interface PTMWindowf - the new value for kDiffpublic void setExp(int i)
setExp in interface PTMWindowi - the new value for the exponentpublic float getLuminance()
getLuminance in interface PTMWindowpublic void setLuminance(float f)
setLuminance in interface PTMWindowf - the new valuepublic void refreshMap()
refreshMap in interface PTMWindowpublic void setMapSampleSize(int i)
setMapSampleSize in interface PTMWindowi - the sample sizepublic void setMapBlurType(int i)
setMapBlurType in interface PTMWindowi - the blur typepublic void setMapGuassianBlurSigma(float f)
setMapGuassianBlurSigma in interface PTMWindowf - sigmapublic void setMapKernelSize(int i)
setMapKernelSize in interface PTMWindowi - the kernel sizepublic void start()
start in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void run()
run in interface java.lang.Runnablepublic void forceUpdate()
forceUpdate in interface PTMWindowpublic void setBrowser(java.awt.Container c)
setBrowser in interface PTMWindowc - the containerpublic void setEnvironmentMap(EnvironmentMap e)
setEnvironmentMap in interface PTMWindowe - the environment mappublic void setPixelTransformOp(PixelTransformOp pto)
setPixelTransformOp in interface PTMWindowpto - the pixel transformpublic void setControls(PTMControls c)
setControls in interface PTMWindowc - the controls
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||