|
||||||||||
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.TransformOnlyDisplayRendererJ3D
public class TransformOnlyDisplayRendererJ3D
TransformOnlyDisplayRendererJ3D
is the VisAD class for the
transforming but not rendering under Java3D.
Constructor Summary | |
---|---|
TransformOnlyDisplayRendererJ3D()
This is the DisplayRenderer used for the
TRANSFORM_ONLY api. |
Method Summary | |
---|---|
void |
addDirectManipulationSceneGraphComponent(Group group,
DirectManipulationRendererJ3D renderer)
|
void |
addSceneGraphComponent(Group group)
|
boolean |
anyDirects()
Check to see if there are any DirectManipulationRenderer s
in this display. |
void |
clearScales()
Remove all the scales being rendered. |
void |
clearScene(DataRenderer renderer)
|
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 |
drag_cursor(VisADRay ray,
boolean first)
drag cursor parallel to plane of screen |
void |
drag_depth(float diff)
drag cursor in depth (in and out of screen) |
void |
drawCursorStringVector(VisADCanvasJ3D canvas)
Whenever cursorOn or directOn is true,
display Strings in cursorStringVector. |
DataRenderer |
findDirect(VisADRay ray,
int mouseModifiers)
Find the DataRenderer that is closest to the ray and
uses the specified mouse modifiers for direct manipulation. |
BufferedImage |
getImage()
Capture the display rendition as an image. |
boolean |
legalDataRenderer(DataRenderer renderer)
Check if the DataRenderer in question is legal for this
DisplayRenderer |
DataRenderer |
makeDefaultRenderer()
Create the default DataRenderer for this type of
DisplayRenderer |
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 |
setCursorLoc(float x,
float y,
float z)
Set the cursor location |
void |
setCursorOn(boolean on)
Toggle the cursor in the display |
void |
setDirectOn(boolean on)
Set the flag for direct manipulation |
void |
setScale(int axis,
int axis_ordinal,
VisADLineArray array,
float[] scale_color)
Set the scale for the appropriate axis. |
void |
setScale(int axis,
int axis_ordinal,
VisADLineArray array,
VisADTriangleArray labels,
float[] scale_color)
Set the scale for the appropriate axis. |
void |
setScaleOn(boolean on)
Set the scales on. |
void |
setTransform3D(Transform3D t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformOnlyDisplayRendererJ3D()
DisplayRenderer
used for the
TRANSFORM_ONLY
api.
It is used for only transforming data into VisADSceneGraphObject
but not rendering (and hence no interaction).
Method Detail |
---|
public BranchGroup createSceneGraph(View v, TransformGroup vpt, VisADCanvasJ3D c)
MouseBehaviorJ3D
for
embedded user interface.
createSceneGraph
in class DisplayRendererJ3D
v
- vpt
- c
-
public BufferedImage getImage()
DisplayRendererJ3D
getImage
in class DisplayRendererJ3D
public void setCursorOn(boolean on)
DisplayRendererJ3D
setCursorOn
in class DisplayRendererJ3D
on
- true to display the cursor, false to hide it.public void setDirectOn(boolean on)
DisplayRendererJ3D
setDirectOn
in class DisplayRendererJ3D
on
- true for enabling direct manipulation, false to disablepublic void addSceneGraphComponent(Group group)
addSceneGraphComponent
in class DisplayRendererJ3D
public void addDirectManipulationSceneGraphComponent(Group group, DirectManipulationRendererJ3D renderer)
addDirectManipulationSceneGraphComponent
in class DisplayRendererJ3D
public void clearScene(DataRenderer renderer)
clearScene
in class DisplayRendererJ3D
public void drag_depth(float diff)
DisplayRenderer
drag_depth
in class DisplayRendererJ3D
diff
- amount to move cursor in depth (0.0 corresponds
to no movement)public void drag_cursor(VisADRay ray, boolean first)
DisplayRenderer
drag_cursor
in class DisplayRendererJ3D
ray
- VisADRay that goes through new cursor locationfirst
- true to indicate this is first call to drag_cursor()
for this dragpublic void setCursorLoc(float x, float y, float z)
DisplayRendererJ3D
setCursorLoc
in class DisplayRendererJ3D
x
- x locationy
- y locationz
- z locationpublic void drawCursorStringVector(VisADCanvasJ3D canvas)
DisplayRendererJ3D
cursorOn
or directOn
is true,
display Strings in cursorStringVector.
drawCursorStringVector
in class DisplayRendererJ3D
public DataRenderer findDirect(VisADRay ray, int mouseModifiers)
DisplayRendererJ3D
DataRenderer
that is closest to the ray and
uses the specified mouse modifiers for direct manipulation.
findDirect
in class DisplayRendererJ3D
ray
- position to checkmouseModifiers
- modifiers for mouse clicks
public boolean anyDirects()
DisplayRendererJ3D
DirectManipulationRenderer
s
in this display.
anyDirects
in class DisplayRendererJ3D
public void setScaleOn(boolean on)
DisplayRendererJ3D
setScaleOn
in class DisplayRendererJ3D
on
- turn on if true, otherwise turn them offpublic void setScale(int axis, int axis_ordinal, VisADLineArray array, float[] scale_color) throws VisADException
DisplayRendererJ3D
setScale
in class DisplayRendererJ3D
axis
- axis for this scale (0 = XAxis, 1 = YAxis, 2 = ZAxis)axis_ordinal
- position along the axisarray
- VisADLineArray
representing the scale plotscale_color
- array (dim 3) representing the red, green and blue
color values.
VisADException
- couldn't set the scalepublic void setScale(int axis, int axis_ordinal, VisADLineArray array, VisADTriangleArray labels, float[] scale_color) throws VisADException
DisplayRendererJ3D
setScale
in class DisplayRendererJ3D
axis
- axis for this scale (0 = XAxis, 1 = YAxis, 2 = ZAxis)axis_ordinal
- position along the axisarray
- VisADLineArray
representing the scale plotlabels
- VisADTriangleArray
representing the labels
created using a font (can be null)scale_color
- array (dim 3) representing the red, green and blue
color values.
VisADException
- couldn't set the scalepublic void clearScales()
DisplayRendererJ3D
clearScales
in class DisplayRendererJ3D
public void setTransform3D(Transform3D t)
setTransform3D
in class DisplayRendererJ3D
public void setBoxAspect(double[] aspect)
DisplayRenderer
setBoxAspect
in class DisplayRenderer
public DataRenderer makeDefaultRenderer()
DisplayRendererJ3D
DataRenderer
for this type of
DisplayRenderer
makeDefaultRenderer
in class DisplayRendererJ3D
public boolean legalDataRenderer(DataRenderer renderer)
DisplayRendererJ3D
DataRenderer
in question is legal for this
DisplayRenderer
legalDataRenderer
in class DisplayRendererJ3D
renderer
- DataRenderer
to check
RendererJ3D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |