|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.project.PjWorkshop
jvx.geom.PwMarkWithSphere
Workshop to selected vertices of a geometry that are inside a sphere. The center of the sphere can be moved on the geometry.
| Field Summary |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PwMarkWithSphere()
Constructor. |
|
| Method Summary | |
void |
cancel()
Cancel operation of this workshop by resetting the assigned geometry, and finally close this workshop. |
void |
close()
Close workshop and remove itself as listener from various classes. |
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. |
java.lang.String |
getName()
The name of a listeners allows the display to issue verbal debug messages. |
void |
init()
Initialize and reset project, stops the running animation if any. |
void |
markVertices()
Mark vertices on geometry, that are inside a sphere. |
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 |
setCenter(PdVector center)
Set center of sphere, but do not compute the new selection. |
void |
setDisplay(PvDisplayIf disp)
Get the active display when this workshop was lauchned. |
void |
setGeometry(PgPointSet geom)
Assign a geometry on which this workshop operates, and create a backup copy if workshop is cancelled. |
void |
setInvertMarks(boolean flag)
Set flag. |
void |
setMarkElements(boolean flag)
Set flag. |
void |
setRadius(double rad)
Set the radius of sphere, but do not compute the new selection. |
void |
unmarkVertices(PvPickEvent pos)
Unmark a set of vertices of a geometry within a given bounding box. |
boolean |
update(java.lang.Object event)
Updates the geometry if this workshop has changed, i.e. if the event is this or null.
|
| Methods inherited from class jvx.project.PjWorkshop |
getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, removeGeometry, reset, setDisplays, setGeometry, setModal, setViewer |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent |
| Constructor Detail |
public PwMarkWithSphere()
| Method Detail |
public void init()
PjWorkshop
init in class PjWorkshoppublic void setDisplay(PvDisplayIf disp)
setDisplay in interface PjWorkshopIfsetDisplay in class PjWorkshoppublic void setGeometry(PgPointSet geom)
public boolean update(java.lang.Object event)
PjWorkshopthis or null.
Also propagates update() to superclass with the original argument event.
Some subclasses may register themself as update listener of the geometry of this workshop. In order to prevent an update loop, this method savely uses isUpdateSender() when updating the geometry.
update in interface PsUpdateIfupdate in class PjWorkshopevent - sender of this update.
public void cancel()
PjWorkshopIf necessary, the duplicate of the original geometry is restored into the geometry. The update method of the geometry is called.
cancel in class PjWorkshoppublic void close()
PjWorkshopSubclasses may remove workshop from geometry as update listener, or remove any temporary geometries from display, if necessary.
Implementation in this class simply calls removeGeometry().
close in class PjWorkshoppublic void markVertices()
public void setRadius(double rad)
public void setCenter(PdVector center)
public void setInvertMarks(boolean flag)
public void setMarkElements(boolean flag)
public java.lang.String getName()
getName in interface PvPickListenerIfgetName in class PsObjectpublic void selectGeometry(PgGeometryIf geom)
selectGeometry in interface PvPickListenerIfpublic void pickDisplay(PvPickEvent pos)
pickDisplay in interface PvPickListenerIfpos - Pick event issued by the displayPvPickListenerIfpublic void dragDisplay(PvPickEvent pos)
dragDisplay in interface PvPickListenerIfpos - Pick event issued by the displayPvPickListenerIfpublic void pickInitial(PvPickEvent pos)
pickInitial in interface PvPickListenerIfpos - Pick event issued by the displayPvPickListenerIfpublic void dragInitial(PvPickEvent pos)
dragInitial in interface PvPickListenerIfpos - Pick event issued by the displayPvPickListenerIf
public void pickVertex(PgGeometryIf geom,
int index,
PdVector vertex)
pickVertex in interface PvPickListenerIfgeom - 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 PvPickListenerIfgeom - 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 PvPickListenerIfpos - contains four coplanar points on the bounding prism, and direction of prism.PvPickEvent.getMarkBox()public void unmarkVertices(PvPickEvent pos)
unmarkVertices in interface PvPickListenerIfpos - contains four coplanar points on the bounding prism, and direction of prism.PvPickEvent.getMarkBox()
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||