JavaView® v2.12

jvx.geom
Class PnExplodeElementSet

java.lang.Object
  |
  +--jvx.geom.PnExplodeElementSet
All Implemented Interfaces:
PsTimeListenerIf

public class PnExplodeElementSet
extends java.lang.Object
implements PsTimeListenerIf

Class to blast PgElementSets.

Version:
09.05.01, 1.10 revised (ur) new static getDialog method added.>br> 16.05.00, 1.00 created (ur)
Author:
Ulrich Reitebuch

Field Summary
 PsAnimation m_anim
           
 
Constructor Summary
PnExplodeElementSet(PgElementSet anElementSet)
          Constructor.
 
Method Summary
 PsAnimation getAnimation()
          Get the animation object where this listener is registered.
static void getDialog(PgElementSet aGeom)
          Get a new PnExplode_Dialog to steer a new animation of PgElementSet being blasted.
 java.lang.String getName()
          Return name of this PsTimeListenerIf.
 boolean hasAnimation()
          Check whether this object is registered as listener of an animation object.
 void init()
          Initialization.
 void reset()
          Reset geometry to initial state.
 void runOnce(boolean flag)
           
 void setAnimation(PsAnimation anAnimation)
          Assign the animation object where this listener is registered.
 void setEndListener(PsUpdateIf end)
           
 void setGravity(double gravity)
           
 void setGravityDirection(PdVector gravityDirection)
           
 void setRotationSpeed(double rotationSpeed)
           
 void setSpeed(double speed)
           
 boolean setTime(PsTimeEvent timeEvent)
          Update the geometry for every new time step.
 void startAnimation()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_anim

public PsAnimation m_anim
Constructor Detail

PnExplodeElementSet

public PnExplodeElementSet(PgElementSet anElementSet)
Constructor.
Method Detail

init

public void init()
Initialization.

hasAnimation

public boolean hasAnimation()
Description copied from interface: PsTimeListenerIf
Check whether this object is registered as listener of an animation object.
Specified by:
hasAnimation in interface PsTimeListenerIf
Following copied from interface: jv.anim.PsTimeListenerIf
See Also:
PsTimeListenerIf.getAnimation(), PsTimeListenerIf.setAnimation(PsAnimation)

getAnimation

public PsAnimation getAnimation()
Description copied from interface: PsTimeListenerIf
Get the animation object where this listener is registered. This listener may only have a single animation object which is assigned by the animation object when this listener is registered using setAnimation(PsAnimation).
Specified by:
getAnimation in interface PsTimeListenerIf
Following copied from interface: jv.anim.PsTimeListenerIf
See Also:
PsTimeListenerIf.hasAnimation(), PsTimeListenerIf.setAnimation(PsAnimation)

setAnimation

public void setAnimation(PsAnimation anAnimation)
Description copied from interface: PsTimeListenerIf
Assign the animation object where this listener is registered. This method is invoked by the animation object during registration of this listener, and usually is not required to be called by a user. If this listener has an assigned animation object, then its animation panel may be shown to change the current time of this listener.

Only one animation object may be assigned to this listener. Subsequent assignments will replace the previous assignment.

Specified by:
setAnimation in interface PsTimeListenerIf
Following copied from interface: jv.anim.PsTimeListenerIf
See Also:
PsTimeListenerIf.getAnimation(), PsTimeListenerIf.hasAnimation()

setSpeed

public void setSpeed(double speed)

setGravity

public void setGravity(double gravity)

setGravityDirection

public void setGravityDirection(PdVector gravityDirection)

setRotationSpeed

public void setRotationSpeed(double rotationSpeed)

setEndListener

public void setEndListener(PsUpdateIf end)

runOnce

public void runOnce(boolean flag)

startAnimation

public void startAnimation()

reset

public void reset()
Reset geometry to initial state.

getName

public java.lang.String getName()
Return name of this PsTimeListenerIf.
Specified by:
getName in interface PsTimeListenerIf

setTime

public boolean setTime(PsTimeEvent timeEvent)
Update the geometry for every new time step.
Specified by:
setTime in interface PsTimeListenerIf

getDialog

public static void getDialog(PgElementSet aGeom)
Get a new PnExplode_Dialog to steer a new animation of PgElementSet being blasted.

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.