org.diamondspin
Class DSInertiaManagerBlob

java.lang.Object
  extended by org.diamondspin.DSInertiaManagerBlob

public class DSInertiaManagerBlob
extends Object

an inertiaManager is a dselement helper to make it move when dropped with given inertia

Author:
vernier

Nested Class Summary
protected  class DSInertiaManagerBlob.DSInertiaListener
           
protected  class DSInertiaManagerBlob.DSInertiaTask
           
 
Field Summary
protected  double accelX
           
protected  double accelY
           
protected  boolean autoMove
           
static double DEFAULT_FRICTION
           
protected  boolean doneByUs
           
protected  double factor
           
protected  double fingerX
           
protected  double fingerY
           
protected  boolean firstMoveAfterGrab
           
protected  DSFrame frame
           
protected  int inertiaType
           
protected  double initialX
           
protected  double initialY
           
protected  double internalSpeedX
           
protected  double internalSpeedY
           
protected  DSInertiaManagerBlob.DSInertiaListener listener
           
protected  double meshAttachX
           
protected  double meshAttachY
           
protected  DSTabletopPane pane
           
protected  double speedX
           
protected  double speedY
           
protected  Timer timer
           
protected  boolean touching
           
protected  DSDefaultView view
           
protected  double wantB
           
protected  double wantX
           
protected  double wantY
           
 
Constructor Summary
DSInertiaManagerBlob(DSElement el, DSTabletopPane p)
           
 
Method Summary
 void detach()
           
 void setFrictionFactor(double frictionFactor)
          between 0 and 1
protected  void startAutoMove()
           
protected  void stopAutoMove()
           
protected  void updateElem()
           
protected  void updateFrame(boolean first)
           
protected  void updateWantedPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FRICTION

public static final double DEFAULT_FRICTION
See Also:
Constant Field Values

frame

protected DSFrame frame

pane

protected DSTabletopPane pane

view

protected DSDefaultView view

timer

protected Timer timer

listener

protected DSInertiaManagerBlob.DSInertiaListener listener

wantX

protected double wantX

wantY

protected double wantY

wantB

protected double wantB

internalSpeedX

protected double internalSpeedX

internalSpeedY

protected double internalSpeedY

fingerX

protected double fingerX

fingerY

protected double fingerY

speedX

protected double speedX

speedY

protected double speedY

accelX

protected double accelX

accelY

protected double accelY

meshAttachX

protected double meshAttachX

meshAttachY

protected double meshAttachY

autoMove

protected boolean autoMove

doneByUs

protected boolean doneByUs

firstMoveAfterGrab

protected boolean firstMoveAfterGrab

touching

protected boolean touching

initialX

protected double initialX

initialY

protected double initialY

factor

protected double factor

inertiaType

protected int inertiaType
Constructor Detail

DSInertiaManagerBlob

public DSInertiaManagerBlob(DSElement el,
                            DSTabletopPane p)
Method Detail

updateFrame

protected void updateFrame(boolean first)

updateElem

protected void updateElem()

updateWantedPosition

protected void updateWantedPosition()

startAutoMove

protected void startAutoMove()

stopAutoMove

protected void stopAutoMove()

detach

public void detach()

setFrictionFactor

public void setFrictionFactor(double frictionFactor)
between 0 and 1



Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.