jvx.math
Class MathPickListener
- java.lang.Object
-
- jvx.math.MathListener
-
- jvx.math.MathPickListener
-
- All Implemented Interfaces:
- PvPickListenerIf
public class MathPickListener extends MathListener implements PvPickListenerIf
Listener to receive pick events of the display to invoke Mathematica commands. The pick event contains information about the picked geometry, the picked geometry vertex and information about mouse position.- See Also:
PvPickEvent,PvPickListenerIf- Author:
- Konrad Polthier
- Version:
- 08.08.00, 1.10 revised (kp) Aynchronous mode added.
27.07.00, 1.00 created (kp)
-
-
Constructor Summary
Constructors Constructor and Description MathPickListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddragDisplay(PvPickEvent pos)Drag a location in the display with 2d display and 3d world coordinates.voiddragInitial(PvPickEvent pos)Drag an arbitrary point along a geometry, point may lie inside an element.voiddragVertex(PgGeometryIf geom, int index, PdVector vertex)Drag a picked vertex of a geometry.voidmarkVertices(PvPickEvent pos)Mark a set of vertices of a geometry within a given bounding box.voidpickDisplay(PvPickEvent pos)Get a location in the display with 2d display and 3d world coordinates.voidpickInitial(PvPickEvent pos)Pick an arbitrary point on a geometry, point may lie inside an element.voidpickVertex(PgGeometryIf geom, int index, PdVector vertex)Get a picked vertex of a geometry.voidselectGeometry(PgGeometryIf geom)Currently not supported by display.voidunmarkVertices(PvPickEvent pos)Unmark a set of vertices of a geometry within a given bounding box.-
Methods inherited from class jvx.math.MathListener
getHandler, getName, setHandler, setName
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jv.project.PvPickListenerIf
getName
-
-
-
-
Method Detail
-
selectGeometry
public void selectGeometry(PgGeometryIf geom)
Currently not supported by display.- Specified by:
selectGeometryin interfacePvPickListenerIf- Parameters:
geom- Now selected geometry of display.
-
pickDisplay
public void pickDisplay(PvPickEvent pos)
Get a location in the display with 2d display and 3d world coordinates. Point may be independent of any geometry.- Specified by:
pickDisplayin interfacePvPickListenerIf- Parameters:
pos- Pick event issued by the display- See Also:
PvPickListenerIf
-
dragDisplay
public void dragDisplay(PvPickEvent pos)
Drag a location in the display with 2d display and 3d world coordinates. Point may be independent of any geometry.- Specified by:
dragDisplayin interfacePvPickListenerIf- Parameters:
pos- Pick event issued by the display- See Also:
PvPickListenerIf
-
pickInitial
public void pickInitial(PvPickEvent pos)
Pick an arbitrary point on a geometry, point may lie inside an element.- Specified by:
pickInitialin interfacePvPickListenerIf- Parameters:
pos- Pick event issued by the display- See Also:
PvPickListenerIf
-
dragInitial
public void dragInitial(PvPickEvent pos)
Drag an arbitrary point along a geometry, point may lie inside an element.- Specified by:
dragInitialin interfacePvPickListenerIf- Parameters:
pos- Pick event issued by the display- See Also:
PvPickListenerIf
-
pickVertex
public void pickVertex(PgGeometryIf geom, int index, PdVector vertex)
Get a picked vertex of a geometry.- Specified by:
pickVertexin interfacePvPickListenerIf- Parameters:
geom- Picked geometry on which vertex liesindex- Index of vertex in vertex array of geometryvertex- 3d coordinates of vertex position- See Also:
PvPickListenerIf
-
dragVertex
public void dragVertex(PgGeometryIf geom, int index, PdVector vertex)
Drag a picked vertex of a geometry.- Specified by:
dragVertexin interfacePvPickListenerIf- Parameters:
geom- Picked geometry on which vertex liesindex- Index of vertex in vertex array of geometryvertex- 3d coordinates of vertex position
-
markVertices
public void markVertices(PvPickEvent pos)
Mark a set of vertices of a geometry within a given bounding box.- Specified by:
markVerticesin interfacePvPickListenerIf- Parameters:
pos- Contains mark box.
-
unmarkVertices
public void unmarkVertices(PvPickEvent pos)
Unmark a set of vertices of a geometry within a given bounding box.- Specified by:
unmarkVerticesin interfacePvPickListenerIf- Parameters:
pos- Contains mark box.
-
-
"