interaction
Class RotationModificator

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.RotationModificator

public class RotationModificator
extends javax.media.j3d.Behavior

Ermöglicht die Rotation eines Objektes um sich selbst durch Mausbewegungen des Nutzers.

Bei gedrückter linker Maustaste rotiert das Objekt um die Y-Achse bzw. X-Achse, je nach Mausbewegung. Bei gedrückter rechter Maustaste rotiert das Objekt um die X- bzw. Z-Achse.

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

Field Summary
 
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
RotationModificator(javax.media.j3d.TransformGroup target)
          Erstellt einen RotationModificator, welcher die TransformGroup target manipuliert.
 
Method Summary
 javax.media.j3d.Node cloneNode(boolean arg0)
           
 void initialize()
           
 void processStimulus(java.util.Enumeration enum)
           
 void updateNodeReferences(javax.media.j3d.NodeReferenceTable arg0)
           
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval
 
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
 

Constructor Detail

RotationModificator

public RotationModificator(javax.media.j3d.TransformGroup target)
Erstellt einen RotationModificator, welcher die TransformGroup target manipuliert.

Parameters:
target - Die TransformGroup, welche manipuliert werden soll.
Method Detail

initialize

public void initialize()

processStimulus

public void processStimulus(java.util.Enumeration enum)

updateNodeReferences

public void updateNodeReferences(javax.media.j3d.NodeReferenceTable arg0)

cloneNode

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