jpview.gui
Interface PTMWindow

All Known Implementing Classes:
PTMFrame, PTMViewerApplet

public interface PTMWindow

The PTM Window is the abstract class for the display container. It defines getters, setters, and delegates for concrete subclasses

Author:
clyon

Method Summary
 void fireTransform()
          exercises the current transform operator on the PTM data
 void forceUpdate()
          force an update for the current tranform - decache and optimizations off
 int getExp()
          delegate for PTM getExp() method
 int getHeight()
          Returns the height of the PTM window
 float getKDiff()
          delegate for PTM getKDiff()
 float getKSpec()
          delegate for the PTM getKSpec()
 javax.swing.JLayeredPane getLayeredPane()
          Return the JLayeredPane - for adding Internal frames
 float getLuminance()
          Get the current value for the global ambient term
 PTM getPTM()
          Returns PTM object for this Window
 int getPTMHeight()
          Returns the height of the current PTM
 int getPTMWidth()
          Returns the width of the current PTM
 int getWidth()
          Returns the width of the PTM window
 void refreshMap()
          Reload the environment map
 void setBrowser(java.awt.Container c)
          set the parent for this window
 void setControls(PTMControls c)
          Sets the PTMControls to use for this Window
 void setEnvironmentMap(EnvironmentMap e)
          set the current environment map
 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 of Kd in the Phong lighting equation for the specular tranform
 void setKSpec(float f)
          Sets the KSpec term in the Phong lighting equation
 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)
          sets the current transform operator to use when rendering a view
 

Method Detail

fireTransform

void fireTransform()
exercises the current transform operator on the PTM data


getKSpec

float getKSpec()
delegate for the PTM getKSpec()

Returns:
the current value of KSpec in the Phong equation for the PTM

getKDiff

float getKDiff()
delegate for PTM getKDiff()

Returns:
the current value Kd the PTM in the Phong lighting equation

getExp

int getExp()
delegate for PTM getExp() method

Returns:
the current value of the exponent for specular reflection

getPTMWidth

int getPTMWidth()
Returns the width of the current PTM

Returns:
the width of the current PTM

getWidth

int getWidth()
Returns the width of the PTM window

Returns:
PTM window width

getHeight

int getHeight()
Returns the height of the PTM window

Returns:
PTM window height

getPTMHeight

int getPTMHeight()
Returns the height of the current PTM

Returns:
the height of the current PTM

setKSpec

void setKSpec(float f)
Sets the KSpec term in the Phong lighting equation

Parameters:
f - the new value

setKDiff

void setKDiff(float f)
set the value of Kd in the Phong lighting equation for the specular tranform

Parameters:
f - the new value for Kd

setExp

void setExp(int i)
Set the value of the exponent in the specular term of the Phong lighting equation for the specular transform operator

Parameters:
i - the new value for the exponent

setControls

void setControls(PTMControls c)
Sets the PTMControls to use for this Window

Parameters:
c - the controls

getLuminance

float getLuminance()
Get the current value for the global ambient term

Returns:
the current value

setLuminance

void setLuminance(float f)
Set the current value for the global ambient term

Parameters:
f - the new value

setMapSampleSize

void setMapSampleSize(int i)
set the sample size for the environment map

Parameters:
i - the sample size

setMapBlurType

void setMapBlurType(int i)
set the blur type for the map ( BLUR_TYPE_SIMPLE, BLUR_TYPE_GAUSSIAN, BLUR_TYPE_NONE )

Parameters:
i - the blur type

setMapKernelSize

void setMapKernelSize(int i)
set the kernel size for the blur

Parameters:
i - the kernel size

setMapGuassianBlurSigma

void setMapGuassianBlurSigma(float f)
set the value of sigma for the gaussian blur procedure

Parameters:
f - sigma

refreshMap

void refreshMap()
Reload the environment map


getPTM

PTM getPTM()
Returns PTM object for this Window

Returns:
the PTM

forceUpdate

void forceUpdate()
force an update for the current tranform - decache and optimizations off


setBrowser

void setBrowser(java.awt.Container c)
set the parent for this window

Parameters:
c - the new parent container

setEnvironmentMap

void setEnvironmentMap(EnvironmentMap e)
set the current environment map

Parameters:
e - the environment map

setPixelTransformOp

void setPixelTransformOp(PixelTransformOp pto)
sets the current transform operator to use when rendering a view

Parameters:
pto - the transform operator to use

getLayeredPane

javax.swing.JLayeredPane getLayeredPane()
Return the JLayeredPane - for adding Internal frames

Returns:
the currrent JLayeredPane