public class RubberBandLineRendererJ3D extends DirectManipulationRendererJ3D
enabled, pickCrawlToCursor| Constructor and Description |
|---|
RubberBandLineRendererJ3D(RealType xarg,
RealType yarg)
this DirectManipulationRenderer is quite different - it does not
render its data, but only place values into its DataReference
on right mouse button release;
it uses xarg and yarg to determine spatial ScalarMaps
|
RubberBandLineRendererJ3D(RealType xarg,
RealType yarg,
int mmm,
int mmv)
xarg and yarg determine spatial ScalarMaps;
mmm and mmv determine whehter SHIFT or CTRL keys are required -
this is needed since this is a greedy DirectManipulationRenderer
that will grab any right mouse click (that intersects its 2-D
sub-manifold)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(float[] x)
add point for temporary rendering; intended to be
over-ridden by graphics-API-specific extensions of
DataRenderer
|
float |
checkClose(double[] origin,
double[] direction)
check if ray intersects sub-manifold
|
void |
checkDirect()
set isDirectManipulation = true if this DataRenderer supports
direct manipulation for the MathType of its linked Data, and
for its ScalarMaps; intended to be over-ridden by extensions of
DataRenderer
|
Object |
clone() |
BranchGroup |
doTransform()
don't render - just return BranchGroup for scene graph to
render rectangle into
|
void |
drag_direct(VisADRay ray,
boolean first,
int mouseModifiers)
modify Data values based on direct manipulation mouse actions
|
CoordinateSystem |
getDisplayCoordinateSystem() |
String |
getWhyNotDirect() |
static void |
main(String[] args)
test RubberBandLineRendererJ3D
|
void |
release_direct()
mouse button released, ending direct manipulation
|
void |
setSpatialValues(float[][] spatial_values)
set spatialValues from ShadowType.doTransform
|
void |
stop_direct()
discontinue manipulating Data values for current mouse drag;
(this only applies to the current mouse drag and is not a
general disable)
|
clearScene, isLegalTextureMap, setBranch, setLinksclearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggleaddException, checkAction, clearAVControls, clearExceptions, computeRanges, constrainDragPoint, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLink, getLinks, getPickCrawlToCursor, getPolygonOffset, getPolygonOffsetFactor, getProjectionControlListeners, getRanges, getRealVectorTypes, hasPolygonOffset, isTransformControl, prepareAction, realCheckDirect, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setHasPolygonOffset, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setPolygonOffset, setPolygonOffsetFactor, spatialToEarth, spatialToEarth, suppressExceptionspublic RubberBandLineRendererJ3D(RealType xarg, RealType yarg)
public RubberBandLineRendererJ3D(RealType xarg, RealType yarg, int mmm, int mmv)
public BranchGroup doTransform() throws VisADException, RemoteException
doTransform in class DirectManipulationRendererJ3DVisADExceptionRemoteExceptionpublic void checkDirect()
throws VisADException,
RemoteException
DataRenderercheckDirect in class DirectManipulationRendererJ3DVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic String getWhyNotDirect()
getWhyNotDirect in class DataRendererpublic void addPoint(float[] x)
throws VisADException
DataRendereraddPoint in class DirectManipulationRendererJ3Dx - 3-D graphics coordinates of point to renderVisADException - a VisAD error occurredpublic CoordinateSystem getDisplayCoordinateSystem()
getDisplayCoordinateSystem in class DataRendererpublic void setSpatialValues(float[][] spatial_values)
setSpatialValues in class DataRendererspatial_values - float[3][number_of_points] of 3-D locations
of depiction pointspublic float checkClose(double[] origin,
double[] direction)
checkClose in class DataRendererorigin - 3-D origin of raydirection - 3-D direction of raypublic void release_direct()
release_direct in class DataRendererpublic void stop_direct()
DataRendererstop_direct in class DataRendererpublic void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
DataRendererdrag_direct in class DataRendererray - 3-D graphics coordinates of ray corresponding to
mouse screen locationfirst - flag if this is first call (for MouseEvent.MOUSE_PRESSED,
not for MouseEvent.MOUSE_DRAGGED)mouseModifiers - value of InputEvent.getModifiers() from
most recent direct manipulation mouse clickpublic Object clone()
clone in class DirectManipulationRendererJ3Dpublic static void main(String[] args) throws VisADException, RemoteException
VisADExceptionRemoteExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.