|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DataRenderer visad.java3d.RendererJ3D visad.java3d.DirectManipulationRendererJ3D visad.bom.RubberBandBoxRendererJ3D
public class RubberBandBoxRendererJ3D
RubberBandBoxRendererJ3D is the VisAD class for direct manipulation of rubber band boxes
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
RubberBandBoxRendererJ3D(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 |
|
RubberBandBoxRendererJ3D(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) |
Method Summary | |
---|---|
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 RubberBandBoxRendererJ3D |
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) |
Methods inherited from class visad.java3d.DirectManipulationRendererJ3D |
---|
clearScene, isLegalTextureMap, setBranch, setLinks |
Methods inherited from class visad.java3d.RendererJ3D |
---|
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RubberBandBoxRendererJ3D(RealType xarg, RealType yarg)
public RubberBandBoxRendererJ3D(RealType xarg, RealType yarg, int mmm, int mmv)
Method Detail |
---|
public BranchGroup doTransform() throws VisADException, RemoteException
doTransform
in class DirectManipulationRendererJ3D
VisADException
RemoteException
public void checkDirect() throws VisADException, RemoteException
DataRenderer
checkDirect
in class DirectManipulationRendererJ3D
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic String getWhyNotDirect()
getWhyNotDirect
in class DataRenderer
public void addPoint(float[] x) throws VisADException
DataRenderer
addPoint
in class DirectManipulationRendererJ3D
x
- 3-D graphics coordinates of point to render
VisADException
- a VisAD error occurredpublic CoordinateSystem getDisplayCoordinateSystem()
getDisplayCoordinateSystem
in class DataRenderer
public void setSpatialValues(float[][] spatial_values)
setSpatialValues
in class DataRenderer
spatial_values
- float[3][number_of_points] of 3-D locations
of depiction pointspublic float checkClose(double[] origin, double[] direction)
checkClose
in class DataRenderer
origin
- 3-D origin of raydirection
- 3-D direction of ray
public void release_direct()
release_direct
in class DataRenderer
public void stop_direct()
DataRenderer
stop_direct
in class DataRenderer
public void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
DataRenderer
drag_direct
in class DataRenderer
ray
- 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 DirectManipulationRendererJ3D
public static void main(String[] args) throws VisADException, RemoteException
VisADException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |