interaction
Class InterpolatorSwitch

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended byinteraction.InterpolatorSwitch

public class InterpolatorSwitch
extends javax.media.j3d.Behavior

Klasse zur einfacheren bzw. erweiterten Steuerung eines Interpolators. Die Richtung des Interpolators (bzw. des Alpha Objekts) kann während der Animation geändert werden. Ist die Animation beendet, wird der Interpolator deaktiviert.

Version:
1.0 (2005/04/25)
Author:
Martin Hedler

Field Summary
static int CHANGING_TO_ONE
          Alpha läuft von 0 nach 1.
static int CHANGING_TO_ZERO
          Alpha läuft von 1 nach 0.
static int ONE
          Alpha ist 1.
static int ZERO
          Alpha ist 0.
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
InterpolatorSwitch(javax.media.j3d.Interpolator inter)
          Erstellt eine Instanz dieser Klasse zur Steuerung des übergebenen Interpolators.
 
Method Summary
 void changeState()
          Ändert die Richtung der Interpolation bzw. des Alpha Objekts.
 javax.media.j3d.Node cloneNode(boolean arg0)
           
 int getState()
          Liefert den Status des Alpha Objekts zurück.
 void initialize()
           
 void processStimulus(java.util.Enumeration arg0)
           
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final int ZERO
Alpha ist 0.

See Also:
Constant Field Values

ONE

public static final int ONE
Alpha ist 1.

See Also:
Constant Field Values

CHANGING_TO_ZERO

public static final int CHANGING_TO_ZERO
Alpha läuft von 1 nach 0.

See Also:
Constant Field Values

CHANGING_TO_ONE

public static final int CHANGING_TO_ONE
Alpha läuft von 0 nach 1.

See Also:
Constant Field Values
Constructor Detail

InterpolatorSwitch

public InterpolatorSwitch(javax.media.j3d.Interpolator inter)
Erstellt eine Instanz dieser Klasse zur Steuerung des übergebenen Interpolators.

Parameters:
inter - Der Interpolator, der überwacht und gesteuert werden soll.
Method Detail

changeState

public void changeState()
Ändert die Richtung der Interpolation bzw. des Alpha Objekts.


getState

public int getState()
Liefert den Status des Alpha Objekts zurück.

Returns:
Folgende Werte sind möglich:
  • ZERO, wenn Alpha 0 ist
  • ONE, wenn Alpha 1 ist
  • CHANGING_TO_ZERO, wenn Alpha von 1 nach 0 läuft
  • CHANGING_TO_ONE, wenn Alpha von 0 nach 1 läuft

initialize

public void initialize()

processStimulus

public void processStimulus(java.util.Enumeration arg0)

cloneNode

public javax.media.j3d.Node cloneNode(boolean arg0)