public class MathPickListener extends MathListener implements PvPickListenerIf
PvPickEvent
,
PvPickListenerIf
Constructor and Description |
---|
MathPickListener() |
Modifier and Type | Method and Description |
---|---|
void |
dragDisplay(PvPickEvent pos)
Drag a location in the display with 2d display and 3d world coordinates.
|
void |
dragInitial(PvPickEvent pos)
Drag an arbitrary point along a geometry, point may lie inside an element.
|
void |
dragVertex(PgGeometryIf geom,
int index,
PdVector vertex)
Drag a picked vertex of a geometry.
|
void |
markVertices(PvPickEvent pos)
Mark a set of vertices of a geometry within a given bounding box.
|
void |
pickDisplay(PvPickEvent pos)
Get a location in the display with 2d display and 3d world coordinates.
|
void |
pickInitial(PvPickEvent pos)
Pick an arbitrary point on a geometry, point may lie inside an element.
|
void |
pickVertex(PgGeometryIf geom,
int index,
PdVector vertex)
Get a picked vertex of a geometry.
|
void |
selectGeometry(PgGeometryIf geom)
Currently not supported by display.
|
void |
unmarkVertices(PvPickEvent pos)
Unmark a set of vertices of a geometry within a given bounding box.
|
getHandler, getName, setHandler, setName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public void selectGeometry(PgGeometryIf geom)
selectGeometry
in interface PvPickListenerIf
geom
- Now selected geometry of display.public void pickDisplay(PvPickEvent pos)
pickDisplay
in interface PvPickListenerIf
pos
- Pick event issued by the displayPvPickListenerIf
public void dragDisplay(PvPickEvent pos)
dragDisplay
in interface PvPickListenerIf
pos
- Pick event issued by the displayPvPickListenerIf
public void pickInitial(PvPickEvent pos)
pickInitial
in interface PvPickListenerIf
pos
- Pick event issued by the displayPvPickListenerIf
public void dragInitial(PvPickEvent pos)
dragInitial
in interface PvPickListenerIf
pos
- Pick event issued by the displayPvPickListenerIf
public void pickVertex(PgGeometryIf geom, int index, PdVector vertex)
pickVertex
in interface PvPickListenerIf
geom
- Picked geometry on which vertex liesindex
- Index of vertex in vertex array of geometryvertex
- 3d coordinates of vertex positionPvPickListenerIf
public void dragVertex(PgGeometryIf geom, int index, PdVector vertex)
dragVertex
in interface PvPickListenerIf
geom
- Picked geometry on which vertex liesindex
- Index of vertex in vertex array of geometryvertex
- 3d coordinates of vertex positionpublic void markVertices(PvPickEvent pos)
markVertices
in interface PvPickListenerIf
pos
- Contains mark box.public void unmarkVertices(PvPickEvent pos)
unmarkVertices
in interface PvPickListenerIf
pos
- Contains mark box."