    Contents  Index  Topic Contents
    Previous Topic: Path2Bvr Class
    Next Topic: PickableImage Class

> ## PickableGeometry Class

>     public class PickableGeometry extends java.lang.Object {
>         // Constructor
>         public PickableGeometry(GeometryBvr geo);

>         // Method
>         public GeometryBvr getGeometryBvr();
>         public DXMEvent getPickEvent();
>     }

> Creates an object representing a pickable geometry behavior. The behavior is identical to a geometry behavior except that an event occurs whenever the mouse pointer is "in" the geometry.

> Applets typically use the event returned by the getPickEvent method to set an event handler or to create a reactive behavior with the until or untilNotify method.

> When the pick event occurs, the event data is a PairObject object. The first element is a Point3Bvr object representing the intersection point, and the second element is a Vector3Bvr object that is a time-varying vector. The vector gives the model-coordinate offset to the point that (from the camera's image plane) is in the plane perpendicular to the viewing direction, and is under the two-dimensional mouse's location.

> - PickableGeometry Constructor
> - PickableGeometry Methods

> ###

> PickableGeometry Constructor

> PickableGeometry Class

> Creates a pickable GeometryBvr object.

> public PickableGeometry(
> GeometryBvr geo
> );

> ##### Parameters

> geo
>   A new instance of a GeometryBvr that is pickable.

> ### PickableGeometry Methods

> getGeometryBvr

> getPickEvent

> ####

> getGeometryBvr

> PickableGeometry Class

> Returns the GeometryBvr object.

> public GeometryBvr getGeometryBvr( );

> ##### Return Values

> Returns the GeometryBvr object.

> ####

> getPickEvent

> PickableGeometry Class

> Creates an event for the pickable geometry behavior.

> public DXMEvent getPickEvent( );

> ##### Return Values

> Returns a DXMEvent object. Its data is a PairObject. The first member is the intersection point that is in the plane perpendicular to the viewing direction and is under the mouse. The second member is a time-varying vector that gives the model-coordinate offset to the intersection point. Each sample taken while the mouse is over the object returns a new point and a new time-varying vector. Each time-varying vector tracks the mouse, relative to the associated intersection point.

> ##### Remarks

> Use this event to set an event handler or create a reactive behavior with the until or untilNotify method.

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page