visad.java3d
Class DefaultDisplayRendererJ3D
- java.lang.Object
-
- visad.DisplayRenderer
-
- visad.java3d.DisplayRendererJ3D
-
- visad.java3d.DefaultDisplayRendererJ3D
-
- All Implemented Interfaces:
- java.util.EventListener, ControlListener, RendererSourceListener
- Direct Known Subclasses:
- ClientDisplayRendererJ3D, UserDisplayRendererJ3D
public class DefaultDisplayRendererJ3D extends DisplayRendererJ3D
DefaultDisplayRendererJ3Dis the VisAD class for the default background and metadata rendering algorithm under Java3D.
-
-
Constructor Summary
Constructors Constructor and Description DefaultDisplayRendererJ3D()This is the defaultDisplayRendererused by theDisplayImplJ3Dconstructor.DefaultDisplayRendererJ3D(java.lang.Class mbj3dClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.media.j3d.BranchGroupcreateSceneGraph(javax.media.j3d.View v, javax.media.j3d.TransformGroup vpt, VisADCanvasJ3D c)Create scene graph root, if none exists, with Transform and direct manipulation root; create 3-D box, lights andMouseBehaviorJ3Dfor embedded user interface.voiddestroy()voidsetBoxAspect(double[] aspect)set the aspect for the containing box aspect double[3] array used to scale x, y and z box sizesvoidsetLineWidth(float width)-
Methods inherited from class visad.java3d.DisplayRendererJ3D
addDirectManipulationSceneGraphComponent, addKeyboardBehavior, addLockedSceneGraphComponent, addLockedSceneGraphComponent, addSceneGraphComponent, anyDirects, clearScale, clearScales, clearScene, controlChanged, createBasicSceneGraph, createBasicSceneGraph, depth_cursor, drag_cursor, drag_depth, drawCursorStringVector, findDirect, getBoxOnBranch, getCanvas, getCursor, getCursorOnBranch, getImage, getKeyboardBehavior, getMouseBehavior, getRoot, getTextureHeightMax, getTextureWidthMax, getTrans, getView, getViewTrans, initControl, legalDataRenderer, makeControl, makeDefaultRenderer, render_trigger, rendererDeleted, setClip, setCursorLoc, setCursorOn, setDirectOn, setDisplay, setScale, setScale, setScale, setScaleOn, setSceneGraphObjectName, setTransform3D, setWaitFlag, updateLockedTrans
-
Methods inherited from class visad.DisplayRenderer
getAnimationString, getAnimationStringVisible, getBoxOn, getCursorColor, getCursorStringVector, getCursorStringVectorUnconditional, getDirectAxisValue, getDirectAxisValue, getDisplay, getMode2D, getPickThreshhold, getRendererControl, getRotateAboutCenter, getScaleRotation, getWaitFlag, getWaitMessageVisible, legalDisplayScalar, prepareAction, setAnimationString, setAnimationStringVisible, setBackgroundColor, setBackgroundColor, setBoxColor, setBoxColor, setBoxOn, setCursorColor, setCursorColor, setCursorStringOn, setCursorStringVector, setCursorStringVector, setForegroundColor, setForegroundColor, setPickThreshhold, setRotateAboutCenter, setScaleRotation, setWaitMessageVisible
-
-
-
-
Constructor Detail
-
DefaultDisplayRendererJ3D
public DefaultDisplayRendererJ3D()
This is the defaultDisplayRendererused by theDisplayImplJ3Dconstructor. It draws a 3-D cube around the scene.The left mouse button controls the projection as follows:
- mouse drag rotates in 3-D
- mouse drag with Shift down zooms the scene
- mouse drag with Ctrl translates the scene sideways
- mouse drag translates the cursor sideways
- mouse drag with Shift translates the cursor in and out
- mouse drag with Ctrl rotates scene in 3-D with cursor on
Dataobject and dragging or re-drawing it.Cursor and direct manipulation locations are displayed in RealType values.
BadMappingExceptionsandUnimplementedExceptionsare displayed
-
DefaultDisplayRendererJ3D
public DefaultDisplayRendererJ3D(java.lang.Class mbj3dClass)
- Parameters:
mbj3dClass- - sub Class of MouseBehaviorJ3D
-
-
Method Detail
-
destroy
public void destroy()
- Overrides:
destroyin classDisplayRendererJ3D
-
createSceneGraph
public javax.media.j3d.BranchGroup createSceneGraph(javax.media.j3d.View v, javax.media.j3d.TransformGroup vpt, VisADCanvasJ3D c)Create scene graph root, if none exists, with Transform and direct manipulation root; create 3-D box, lights andMouseBehaviorJ3Dfor embedded user interface.- Specified by:
createSceneGraphin classDisplayRendererJ3D- Parameters:
v-vpt-c-- Returns:
- Scene graph root.
-
setBoxAspect
public void setBoxAspect(double[] aspect)
set the aspect for the containing box aspect double[3] array used to scale x, y and z box sizes- Specified by:
setBoxAspectin classDisplayRenderer
-
setLineWidth
public void setLineWidth(float width)
- Overrides:
setLineWidthin classDisplayRendererJ3D
-
-
DMelt 3.0 © DataMelt by jWork.ORG