public class TransformOnlyDisplayRendererJ3D extends DisplayRendererJ3D
TransformOnlyDisplayRendererJ3D is the VisAD class for the
transforming but not rendering under Java3D.| Constructor and Description |
|---|
TransformOnlyDisplayRendererJ3D()
This is the
DisplayRenderer used for the
TRANSFORM_ONLY api. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectManipulationSceneGraphComponent(Group group,
DirectManipulationRendererJ3D renderer) |
void |
addSceneGraphComponent(Group group) |
boolean |
anyDirects()
Check to see if there are any
DirectManipulationRenderers
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) |
addKeyboardBehavior, addLockedSceneGraphComponent, addLockedSceneGraphComponent, clearScale, controlChanged, createBasicSceneGraph, createBasicSceneGraph, depth_cursor, destroy, getBoxOnBranch, getCanvas, getCursor, getCursorOnBranch, getKeyboardBehavior, getMouseBehavior, getRoot, getTextureHeightMax, getTextureWidthMax, getTrans, getView, getViewTrans, initControl, makeControl, render_trigger, rendererDeleted, setClip, setDisplay, setLineWidth, setScale, setSceneGraphObjectName, setWaitFlag, updateLockedTransgetAnimationString, 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, setWaitMessageVisiblepublic TransformOnlyDisplayRendererJ3D()
DisplayRenderer used for the
TRANSFORM_ONLY api.
It is used for only transforming data into VisADSceneGraphObject
but not rendering (and hence no interaction).public BranchGroup createSceneGraph(View v, TransformGroup vpt, VisADCanvasJ3D c)
MouseBehaviorJ3D for
embedded user interface.createSceneGraph in class DisplayRendererJ3Dv - vpt - c - public BufferedImage getImage()
DisplayRendererJ3DgetImage in class DisplayRendererJ3Dpublic void setCursorOn(boolean on)
DisplayRendererJ3DsetCursorOn in class DisplayRendererJ3Don - true to display the cursor, false to hide it.public void setDirectOn(boolean on)
DisplayRendererJ3DsetDirectOn in class DisplayRendererJ3Don - true for enabling direct manipulation, false to disablepublic void addSceneGraphComponent(Group group)
addSceneGraphComponent in class DisplayRendererJ3Dpublic void addDirectManipulationSceneGraphComponent(Group group, DirectManipulationRendererJ3D renderer)
addDirectManipulationSceneGraphComponent in class DisplayRendererJ3Dpublic void clearScene(DataRenderer renderer)
clearScene in class DisplayRendererJ3Dpublic void drag_depth(float diff)
DisplayRendererdrag_depth in class DisplayRendererJ3Ddiff - amount to move cursor in depth (0.0 corresponds
to no movement)public void drag_cursor(VisADRay ray, boolean first)
DisplayRendererdrag_cursor in class DisplayRendererJ3Dray - 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)
DisplayRendererJ3DsetCursorLoc in class DisplayRendererJ3Dx - x locationy - y locationz - z locationpublic void drawCursorStringVector(VisADCanvasJ3D canvas)
DisplayRendererJ3DcursorOn or directOn is true,
display Strings in cursorStringVector.drawCursorStringVector in class DisplayRendererJ3Dpublic DataRenderer findDirect(VisADRay ray, int mouseModifiers)
DisplayRendererJ3DDataRenderer that is closest to the ray and
uses the specified mouse modifiers for direct manipulation.findDirect in class DisplayRendererJ3Dray - position to checkmouseModifiers - modifiers for mouse clickspublic boolean anyDirects()
DisplayRendererJ3DDirectManipulationRenderers
in this display.anyDirects in class DisplayRendererJ3Dpublic void setScaleOn(boolean on)
DisplayRendererJ3DsetScaleOn in class DisplayRendererJ3Don - turn on if true, otherwise turn them offpublic void setScale(int axis,
int axis_ordinal,
VisADLineArray array,
float[] scale_color)
throws VisADException
DisplayRendererJ3DsetScale in class DisplayRendererJ3Daxis - 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
DisplayRendererJ3DsetScale in class DisplayRendererJ3Daxis - 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()
DisplayRendererJ3DclearScales in class DisplayRendererJ3Dpublic void setTransform3D(Transform3D t)
setTransform3D in class DisplayRendererJ3Dpublic void setBoxAspect(double[] aspect)
DisplayRenderersetBoxAspect in class DisplayRendererpublic DataRenderer makeDefaultRenderer()
DisplayRendererJ3DDataRenderer for this type of
DisplayRenderermakeDefaultRenderer in class DisplayRendererJ3Dpublic boolean legalDataRenderer(DataRenderer renderer)
DisplayRendererJ3DDataRenderer in question is legal for this
DisplayRendererlegalDataRenderer in class DisplayRendererJ3Drenderer - DataRenderer to checkRendererJ3DCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.