|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DisplayRenderer visad.java3d.DisplayRendererJ3D visad.java3d.TwoDDisplayRendererJ3D
public class TwoDDisplayRendererJ3D
TwoDDisplayRendererJ3D
is the VisAD class for 2-D background
and metadata rendering under Java3D.
Constructor Summary | |
---|---|
TwoDDisplayRendererJ3D()
This DisplayRenderer supports 2-D only rendering. |
|
TwoDDisplayRendererJ3D(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()
|
boolean |
getMode2D()
Return true if this is a 2-D DisplayRenderer . |
boolean |
legalDisplayScalar(DisplayRealType type)
Return true if type is legal for this
DisplayRenderer ; for example, 2-D
DisplayRenderer s use this to disallow mappings to
ZAxis and Latitude. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoDDisplayRendererJ3D()
DisplayRenderer
supports 2-D only rendering.
It is easiest to describe in terms of differences from
DefaultDisplayRendererJ3D
. The cursor and box
around the scene are 2-D, the scene cannot be rotated,
the cursor cannot be translated in and out, and the
scene can be translated sideways with the left mouse
button with or without pressing the Ctrl key.No RealType may be mapped to ZAxis or Latitude.
public TwoDDisplayRendererJ3D(Class mbj3dClass)
mbj3dClass
- - sub Class of MouseBehaviorJ3DMethod Detail |
---|
public void destroy()
destroy
in class DisplayRendererJ3D
public boolean getMode2D()
DisplayRenderer
true
if this is a 2-D DisplayRenderer
.
getMode2D
in class DisplayRenderer
true
if this is a 2-D renderer.public boolean legalDisplayScalar(DisplayRealType type)
DisplayRenderer
true
if type
is legal for this
DisplayRenderer
; for example, 2-D
DisplayRenderer
s use this to disallow mappings to
ZAxis and Latitude.
legalDisplayScalar
in class DisplayRenderer
type
- The mapping type to check.
true
if type
is legal.public BranchGroup createSceneGraph(View v, TransformGroup vpt, VisADCanvasJ3D c)
createSceneGraph
in class DisplayRendererJ3D
v
- vpt
- c
-
public void setBoxAspect(double[] aspect)
DisplayRenderer
setBoxAspect
in class DisplayRenderer
public void setLineWidth(float width)
setLineWidth
in class DisplayRendererJ3D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |