public class PwEvolve extends PjWorkshop implements PsTimeListenerIf
HAS_BOUNDARY_PANEL, 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
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwEvolve()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this workshop, and here, stop and remove any animation.
|
void |
compute()
Evolve geometry in direction of the currently active evolution type.
|
PsAnimation |
getAnimation()
Get the animation object of the project which handles the projects animations.
|
int |
getDirection()
Get direction currently used for evolution.
|
double |
getOffsetFactor()
Get evolution distance.
|
boolean |
hasAnimation()
Check whether this project is registered as listener of an animation object.
|
void |
init()
Initialization
|
boolean |
isEnabledFlip()
Check if direction of flow is flip against direction of vector field.
|
boolean |
isEnabledUpdateNormals()
Check if update of normal vectors after each timestep is enabled.
|
void |
reset()
Reset workshop and geometry to original state.
|
void |
setAnimation(PsAnimation anAnimation)
Assign the animation object where this listener is registered.
|
int |
setDirection(int dir)
Set direction currently used for evolution.
|
void |
setEnabledFlip(boolean flag)
Set if direction of flow is flip against direction of vector field.
|
void |
setEnabledUpdateNormals(boolean flag)
Enable update of normal vectors after each timestep.
|
void |
setGeometry(PgPointSet geom)
Assign geometry on which this workshop operates.
|
void |
setOffsetFactor(double offsetFactor)
Set evolution distance.
|
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.
|
cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getFather, getName, setParent
public void init()
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void setGeometry(PgPointSet geom)
public void close()
close
in class PjWorkshop
public boolean isEnabledFlip()
public void setEnabledFlip(boolean flag)
public boolean isEnabledUpdateNormals()
public void setEnabledUpdateNormals(boolean flag)
public int getDirection()
PnEvolve#OFFSET_VERTEX_NORMAL
and others.public int setDirection(int dir)
PnEvolve#OFFSET_VERTEX_NORMAL
and others.public double getOffsetFactor()
public void setOffsetFactor(double offsetFactor)
public void compute()
public boolean setTime(PsTimeEvent time)
setTime
in interface PsTimeListenerIf
public void start()
public void stop()
public PsAnimation getAnimation()
setAnimation(PsAnimation)
.getAnimation
in interface PsTimeListenerIf
hasAnimation()
,
setAnimation(PsAnimation)
public boolean hasAnimation()
hasAnimation
in interface PsTimeListenerIf
getAnimation()
,
setAnimation(PsAnimation)
public void setAnimation(PsAnimation anAnimation)
Only one animation object may be assigned to this listener. Subsequent assignments will replace the previous assignment.
setAnimation
in interface PsTimeListenerIf
getAnimation()
,
hasAnimation()
"