JavaView® v2.12

jvx.geom
Class PwUnfold

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.geom.PwUnfold
All Implemented Interfaces:
java.lang.Cloneable, PsTimeListenerIf, PsUpdateIf, java.io.Serializable

public class PwUnfold
extends PsObject
implements PsTimeListenerIf

Workshop for unfolding of geometries. Unfolding is animatable. Optionally splices are generated, this can be used to create a paper model of the geometry.
Workshop is still in an experimental status.

Version:
00.00.2001, 1.00 created (kh)
Author:
Klaus Hildebrandt
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
PwUnfold()
          Constructor.
 
Method Summary
 void generateSplice()
          Methode add splices to the unfolded geometry.
 PsAnimation getAnimation()
          Get the animation object where this listener is registered.
 PgElementSet getGeometry()
          Get current geometry.
 boolean hasAnimation()
          Check whether this object is registered as listener of an animation object.
 void removeSplice()
          Removes the splices generated be generateSplice.
 void setAnimation(PsAnimation anim)
          Assign the animation object where this listener is registered.
 void setGeometry(PgElementSet geom)
          Set geometry to be worked on.
 boolean setTime(PsTimeEvent timeEvent)
          Animation updates the dynamic object through this method whenever time has changed.
 void unfold()
          Method unfolds the geometry.
 boolean update(java.lang.Object event)
          Update all inspector panels, send update to all registered update listeners and finally update parent.
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jv.anim.PsTimeListenerIf
getName
 

Constructor Detail

PwUnfold

public PwUnfold()
Constructor.
Method Detail

setGeometry

public void setGeometry(PgElementSet geom)
Set geometry to be worked on.
Parameters:
geom - must be a triangulation.

getGeometry

public PgElementSet getGeometry()
Get current geometry.

generateSplice

public void generateSplice()
Methode add splices to the unfolded geometry. This generates a paper model of the geometry.

removeSplice

public void removeSplice()
Removes the splices generated be generateSplice.

update

public boolean update(java.lang.Object event)
Description copied from class: PsObject
Update all inspector panels, send update to all registered update listeners and finally update parent. Each of those updates has this object as event independent of the argument of this method.

Central update method of this object. Must be overwritten if this class receives unknown events, say, from new children. Any subclass must class invoke super.update(event) on all events it does handle itself.

Overrides:
update in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)

unfold

public void unfold()
Method unfolds the geometry.

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)

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)

setAnimation

public void setAnimation(PsAnimation anim)
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()

setTime

public boolean setTime(PsTimeEvent timeEvent)
Description copied from interface: PsTimeListenerIf
Animation updates the dynamic object through this method whenever time has changed.
Specified by:
setTime in interface PsTimeListenerIf

JavaView® v2.12

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