visad.java3d
Class DefaultDisplayRendererJ3D

java.lang.Object
  extended by visad.DisplayRenderer
      extended by visad.java3d.DisplayRendererJ3D
          extended by visad.java3d.DefaultDisplayRendererJ3D
All Implemented Interfaces:
EventListener, ControlListener, RendererSourceListener
Direct Known Subclasses:
ClientDisplayRendererJ3D, UserDisplayRendererJ3D

public class DefaultDisplayRendererJ3D
extends DisplayRendererJ3D

DefaultDisplayRendererJ3D is the VisAD class for the default background and metadata rendering algorithm under Java3D.


Constructor Summary
DefaultDisplayRendererJ3D()
          This is the default DisplayRenderer used by the DisplayImplJ3D constructor.
DefaultDisplayRendererJ3D(Class mbj3dClass)
           
 
Method Summary
 BranchGroup createSceneGraph(View v, TransformGroup vpt, VisADCanvasJ3D c)
          Create scene graph root, if none exists, with Transform and direct manipulation root; create 3-D box, lights and MouseBehaviorJ3D for embedded user interface.
 void destroy()
           
 void setBoxAspect(double[] aspect)
          set the aspect for the containing box aspect double[3] array used to scale x, y and z box sizes
 void setLineWidth(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDisplayRendererJ3D

public DefaultDisplayRendererJ3D()
This is the default DisplayRenderer used by the DisplayImplJ3D constructor. It draws a 3-D cube around the scene.

The left mouse button controls the projection as follows:

The center mouse button activates and controls the 3-D cursor as follows: The right mouse button is used for direct manipulation by clicking on the depiction of a Data object and dragging or re-drawing it.

Cursor and direct manipulation locations are displayed in RealType values.

BadMappingExceptions and UnimplementedExceptions are displayed


DefaultDisplayRendererJ3D

public DefaultDisplayRendererJ3D(Class mbj3dClass)
Parameters:
mbj3dClass - - sub Class of MouseBehaviorJ3D
Method Detail

destroy

public void destroy()
Overrides:
destroy in class DisplayRendererJ3D

createSceneGraph

public BranchGroup createSceneGraph(View v,
                                    TransformGroup vpt,
                                    VisADCanvasJ3D c)
Create scene graph root, if none exists, with Transform and direct manipulation root; create 3-D box, lights and MouseBehaviorJ3D for embedded user interface.

Specified by:
createSceneGraph in class DisplayRendererJ3D
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:
setBoxAspect in class DisplayRenderer

setLineWidth

public void setLineWidth(float width)
Overrides:
setLineWidth in class DisplayRendererJ3D