Class SurfaceMaterialDisplay
- java.lang.Object
- 
- WildMagic.LibApplications.OpenGLApplication.Application
- 
- WildMagic.LibApplications.OpenGLApplication.JavaApplication
- 
- WildMagic.LibApplications.OpenGLApplication.JavaApplication3D
- 
- gov.nih.mipav.view.renderer.WildMagic.Render.SurfaceMaterialDisplay
 
 
 
 
- 
- All Implemented Interfaces:
- com.jogamp.opengl.GLEventListener,- java.awt.event.KeyListener,- java.awt.event.MouseListener,- java.awt.event.MouseMotionListener,- java.awt.event.MouseWheelListener,- java.io.Serializable,- java.util.EventListener
 
 public class SurfaceMaterialDisplay extends WildMagic.LibApplications.OpenGLApplication.JavaApplication3D implements com.jogamp.opengl.GLEventListener, java.awt.event.KeyListenerDisplay component in the dialog that displays the material parameters for the surface. Allows the user to set the Material: ambient, diffuse, specular, emissive colors and shininess.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description private WildMagic.LibGraphics.Rendering.Light[]m_akLightsprivate booleanm_bInitprivate booleanm_bMainprivate WildMagic.LibGraphics.SceneGraph.Cullerm_kCullerprivate MipavLightingEffectm_kLightShaderprivate WildMagic.LibGraphics.Rendering.MaterialStatem_pkMaterialprivate WildMagic.LibGraphics.SceneGraph.Nodem_spkSceneprivate WildMagic.LibGraphics.SceneGraph.TriMeshm_spkSphereprivate static longserialVersionUID- 
Fields inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication3DcameraParams, m_akWorldAxis, m_bCameraMoveable, m_bDArrowPressed, m_bEndPressed, m_bHomePressed, m_bLArrowPressed, m_bLInsertPressed, m_bObjectZoomed, m_bPgDnPressed, m_bPgUpPressed, m_bRArrowPressed, m_bRDeletePressed, m_bTrackBallDown, m_bUArrowPressed, m_bUseTrackBall, m_dAccumulatedTime, m_dFrameRate, m_dLastTime, m_fRotSpeed, m_fRotSpeedFactor, m_fTrnSpeed, m_fTrnSpeedFactor, m_fXDrag0, m_fXTrack0, m_fXTrack1, m_fYDrag0, m_fYTrack0, m_fYTrack1, m_fZoomSpeed, m_iAccumulatedFrameCount, m_iDoPitch, m_iDoRoll, m_iDoYaw, m_iFrameCount, m_iMaxTimer, m_iMouseButton, m_iTimer, m_kSaveRotate, m_mouseRotSpeed, m_spkCamera, m_spkMotionObject, pitchRotationAngle, rollRotationAngle, xCameraMove, xCameraTurn, yawRotationAngle, yCameraMove, yCameraTurn, zCameraMove
 
- 
 - 
Constructor SummaryConstructors Constructor Description SurfaceMaterialDisplay(WildMagic.LibGraphics.Rendering.MaterialState kMaterial, WildMagic.LibGraphics.Rendering.Light[] akLights, boolean bMain)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidCreateScene()Create the scene.voiddisplay(com.jogamp.opengl.GLAutoDrawable arg0)voiddispose(com.jogamp.opengl.GLAutoDrawable arg0)com.jogamp.opengl.awt.GLCanvasGetCanvas()Return the GLCanvas for display.voidinit(com.jogamp.opengl.GLAutoDrawable arg0)voidreshape(com.jogamp.opengl.GLAutoDrawable arg0, int iX, int iY, int iWidth, int iHeight)voidsetMaterial(WildMagic.LibGraphics.Rendering.MaterialState kMaterial)Set the material.voidupdateLighting(WildMagic.LibGraphics.Rendering.Light[] akGLights)Called from JPanelLight.- 
Methods inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplication3Ddispose, DrawFrameRate, getCameraLocation, getCameraParameters, getObjectParameters, getObjectRotation, InitializeCameraMotion, InitializeCameraMotion, InitializeObjectMotion, keyPressed, keyReleased, keyTyped, LookDown, LookUp, MeasureTime, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, MoveBackward, MoveCamera, MoveDown, MoveForward, MoveLeft, MoveObject, MoveRight, MoveUp, OnDisplay, OnInitialize, OnTerminate, ResetTime, RotateTrackBall, setCameraLocation, setCameraParameters, setObjectParameters, setObjectRotation, TurnLeft, TurnRight, UpdateCameraRotationSpeed, UpdateCameraTranslationSpeed, UpdateCameraZoomSpeed, UpdateFrameCount, UpdateMouseRotationSpeed
 - 
Methods inherited from class WildMagic.LibApplications.OpenGLApplication.JavaApplicationGetAspectRatio, GetHeight, GetRenderer, GetWidth, GetWindowTitle, GetXPosition, GetYPosition, OnIdle, OnMove, OnPrecreate, OnResize, SetRenderer
 - 
Methods inherited from class WildMagic.LibApplications.OpenGLApplication.ApplicationreloadShaders, TestStreaming
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDprivate static final long serialVersionUID - See Also:
- Constant Field Values
 
 - 
m_spkSceneprivate WildMagic.LibGraphics.SceneGraph.Node m_spkScene 
 - 
m_spkSphereprivate WildMagic.LibGraphics.SceneGraph.TriMesh m_spkSphere 
 - 
m_kCullerprivate WildMagic.LibGraphics.SceneGraph.Culler m_kCuller 
 - 
m_kLightShaderprivate MipavLightingEffect m_kLightShader 
 - 
m_pkMaterialprivate WildMagic.LibGraphics.Rendering.MaterialState m_pkMaterial 
 - 
m_bInitprivate boolean m_bInit 
 - 
m_akLightsprivate WildMagic.LibGraphics.Rendering.Light[] m_akLights 
 - 
m_bMainprivate boolean m_bMain 
 
- 
 - 
Constructor Detail- 
SurfaceMaterialDisplaypublic SurfaceMaterialDisplay(WildMagic.LibGraphics.Rendering.MaterialState kMaterial, WildMagic.LibGraphics.Rendering.Light[] akLights, boolean bMain)Constructor.- Parameters:
- kMaterial- material
- akLights- current lights in the scene
- bMain- indicates if this is a large (true) or small (false) display component.
 
 
- 
 - 
Method Detail- 
displaypublic void display(com.jogamp.opengl.GLAutoDrawable arg0) - Specified by:
- displayin interface- com.jogamp.opengl.GLEventListener
 
 - 
disposepublic void dispose(com.jogamp.opengl.GLAutoDrawable arg0) - Specified by:
- disposein interface- com.jogamp.opengl.GLEventListener
 
 - 
GetCanvaspublic com.jogamp.opengl.awt.GLCanvas GetCanvas() Return the GLCanvas for display.- Returns:
- GLCanvas
 
 - 
initpublic void init(com.jogamp.opengl.GLAutoDrawable arg0) - Specified by:
- initin interface- com.jogamp.opengl.GLEventListener
 
 - 
reshapepublic void reshape(com.jogamp.opengl.GLAutoDrawable arg0, int iX, int iY, int iWidth, int iHeight)- Specified by:
- reshapein interface- com.jogamp.opengl.GLEventListener
 
 - 
setMaterialpublic void setMaterial(WildMagic.LibGraphics.Rendering.MaterialState kMaterial) Set the material.- Parameters:
- kMaterial- new material values.
 
 - 
updateLightingpublic void updateLighting(WildMagic.LibGraphics.Rendering.Light[] akGLights) Called from JPanelLight. Updates the lighting parameters.- Parameters:
- akGLights- the set of GeneralLight objects.
 
 - 
CreateSceneprivate void CreateScene() Create the scene.
 
- 
 
-