public class PwExplode extends PjWorkshop implements PsTimeListenerIf
| Modifier and Type | Field and Description |
|---|---|
PsAnimation |
m_anim |
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_TAGSMODE_BUG, MODE_STANDARD, MODE_VALIDATE| Constructor and Description |
|---|
PwExplode()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel operation of this workshop by resetting the assigned geometry,
and finally close this workshop.
|
void |
close()
Stop animation and close the workshop.
|
PsAnimation |
getAnimation()
Get the explosion animation.
|
double |
getGravity()
Get the constant of gravity.
|
java.lang.String |
getName()
Return name of this PsTimeListenerIf.
|
double |
getRotationSpeed()
Get the speed of rotation for parts of the exploded geometry.
|
double |
getSpeed()
Get the speed of parts of the geometry relative to the center of explosion.
|
boolean |
hasAnimation()
Affirm, that there is an animation.
|
void |
reset()
Initialization.
|
void |
setAnimation(PsAnimation anAnimation)
Assign an animation to be used for the explosion.
|
void |
setGravity(double gravity)
Define the constant of gravity.
|
void |
setRotationSpeed(double rotationSpeed)
Define a speed of rotation for parts of the exploded geometry.
|
void |
setSpeed(double speed)
Define the speed of parts of the geometry relative to the center of explosion.
|
boolean |
setTime(double time)
Compute the explosion of the geometry for a given time.
|
boolean |
setTime(PsTimeEvent timeEvent)
Update the geometry for every new time step.
|
getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, init, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer, updateaddInspector, 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, updatePanelsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFather, setParentpublic PsAnimation m_anim
public void reset()
reset in class PjWorkshoppublic boolean hasAnimation()
hasAnimation in interface PsTimeListenerIfPsTimeListenerIf.getAnimation(),
PsTimeListenerIf.setAnimation(PsAnimation)public void setAnimation(PsAnimation anAnimation)
setAnimation in interface PsTimeListenerIfPsTimeListenerIf.getAnimation(),
PsTimeListenerIf.hasAnimation()public PsAnimation getAnimation()
getAnimation in interface PsTimeListenerIfPsTimeListenerIf.hasAnimation(),
PsTimeListenerIf.setAnimation(PsAnimation)public void setSpeed(double speed)
public double getSpeed()
public void setGravity(double gravity)
public double getGravity()
public void setRotationSpeed(double rotationSpeed)
public double getRotationSpeed()
public java.lang.String getName()
getName in interface PsTimeListenerIfgetName in interface PsUpdateIfgetName in class PsObjectpublic boolean setTime(PsTimeEvent timeEvent)
setTime in interface PsTimeListenerIfpublic boolean setTime(double time)
public void cancel()
cancel in class PjWorkshoppublic void close()
close in class PjWorkshop"