jvx.geom
Class PjEvolve
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.project.PjProject
|
+--jvx.geom.PjEvolve
- All Implemented Interfaces:
- java.lang.Cloneable, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf, java.io.Serializable
- public class PjEvolve
- extends PjProject
Evolve geometries in direction of a given vector field.
For example, the vector field may be the vertex or element/edge normal,
or it may be any user defined vector field.
- Version:
- 16.12.00, 1.10 revised (kp) Missing dependencies implemented.
22.09.00, 1.00 created (kp)
- Author:
- Konrad Polthier
- See Also:
- Serialized Form
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS |
|
Constructor Summary |
PjEvolve()
Constructor |
| Methods inherited from class jv.project.PjProject |
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setDisplay, setEnabledAutoFit, setParameter, setViewer, unmarkVertices |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjEvolve
public PjEvolve()
- Constructor
init
public void init()
- Initialisation
- Overrides:
init in class PjProject
update
public boolean update(java.lang.Object event)
- Update the class whenever a child has changed.
Method is usually invoked from the children.
- Overrides:
update in class PsObject
- Following copied from interface:
jv.object.PsUpdateIf
- Parameters:
event - carries a lot of information- Returns:
- true if event has been handled, otherwise false
- See Also:
PsObject,
PsUpdateIf.getFather(),
PsUpdateIf.setParent(PsUpdateIf)
restoreGeometry
public boolean restoreGeometry()
- Restore the saved vertices of the geometry to its original shape.
Method is only available in interactive mode.
- Returns:
- true if vertices were restored successfully
getGeometry
public PgGeometryIf getGeometry()
- Get geometry used for evolution.
- Overrides:
getGeometry in class PjProject
- Following copied from class:
jv.project.PjProject
- See Also:
PjProject.selectGeometry(PgGeometryIf)
setGeometry
public PgPointSet setGeometry(PgPointSet geom)
- Set geometry used for evolution.
getDirection
public int getDirection()
- Get direction used for evolution.
Possible values are static variables of this class with name prefix OFFSET_.
setDirection
public int setDirection(int dir)
- Set direction used for evolution.
Possible values are static variables of this class with name prefix OFFSET_.
evolve
public void evolve()
- Evolve point set in direction of a vector field.
- Parameters:
dir - type of vector field used as evolution directiongeom - geometry to evolvedist - dist*vector determines the length of the translation vector
setTime
public boolean setTime(PsTimeEvent time)
- Compute evolution.
- Overrides:
setTime in class PjProject
start
public void start()
- Create a new animation and start it.
- Overrides:
start in class PjProject
- Following copied from class:
jv.project.PjProject
- See Also:
PvViewerIf.start(),
#isEnabledAutoFit(boolean)
stop
public void stop()
- Stop the animation.
- Overrides:
stop in class PjProject
- Following copied from class:
jv.project.PjProject
- See Also:
PvViewerIf.stop()
The software JavaView® is copyright protected. All Rights Reserved.