|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.project.PjProject
|
+--jvx.geom.PjEvolve
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.
| Field Summary | |
protected boolean |
m_bUpdateSender
Flag determines if current update sequence has been issued from within this class. |
protected int |
m_direction
Type of evolution direction. |
protected PgPointSet |
m_geom
Current geometry to be evolved. |
protected PuDouble |
m_offsetFactor
Factor to move the vertices along the given vector. |
protected PdVector[] |
m_vertexSave
Array with saved vertices of current geometry. |
| Fields inherited from class jv.project.PjProject |
m_anim, m_bAutoFit, m_display, m_displayList, m_geometry, m_parm, m_rootGeometry |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS |
| Constructor Summary | |
PjEvolve()
Constructor |
|
| Method Summary | |
void |
evolve()
Evolve point set in direction of a vector field. |
int |
getDirection()
Get direction used for evolution. |
PgGeometryIf |
getGeometry()
Get geometry used for evolution. |
void |
init()
Initialisation |
boolean |
restoreGeometry()
Restore the saved vertices of the geometry to its original shape. |
int |
setDirection(int dir)
Set direction used for evolution. |
PgPointSet |
setGeometry(PgPointSet geom)
Set geometry used for evolution. |
boolean |
setTime(PsTimeEvent time)
Compute evolution. |
void |
start()
Create a new animation and start it. |
void |
stop()
Stop the animation. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
| 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.anim.PsTimeListenerIf |
getName |
| Methods inherited from interface jv.project.PvPickListenerIf |
getName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Field Detail |
protected PgPointSet m_geom
protected int m_direction
protected PuDouble m_offsetFactor
protected PdVector[] m_vertexSave
protected boolean m_bUpdateSender
| Constructor Detail |
public PjEvolve()
| Method Detail |
public void init()
init in class PjProjectpublic boolean update(java.lang.Object event)
update in class PsObjectjv.object.PsUpdateIfevent - carries a lot of informationPsObject,
PsUpdateIf.getFather(),
PsUpdateIf.setParent(PsUpdateIf)public boolean restoreGeometry()
public PgGeometryIf getGeometry()
getGeometry in class PjProjectjv.project.PjProjectPjProject.selectGeometry(PgGeometryIf)public PgPointSet setGeometry(PgPointSet geom)
public int getDirection()
public int setDirection(int dir)
public void evolve()
dir - type of vector field used as evolution directiongeom - geometry to evolvedist - dist*vector determines the length of the translation vectorpublic boolean setTime(PsTimeEvent time)
setTime in class PjProjectpublic void start()
start in class PjProjectjv.project.PjProjectPvViewerIf.start(),
#isEnabledAutoFit(boolean)public void stop()
stop in class PjProjectjv.project.PjProjectPvViewerIf.stop()
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||