Hello,

I have BG and TG as a child of the BG.
So Id like to be notified when Transform3D of the TG is changed
To do this I wrote the following code and add it to the BG as a child
with TG as an input parameter

//------------------------------------------------------------
import java.util.Enumeration;
import javax.media.j3d.*;


public class ElementBehavior extends Behavior
{
  private TransformGroup node;
  protected WakeupOnTransformChange wakeCriterion;

  public ElementBehavior(TransformGroup node) {
    this.node = node;
  }

  public void initialize() {
    wakeCriterion = new WakeupOnTransformChange(node);
    wakeupOn(wakeCriterion);
  }

  public void processStimulus(Enumeration enumeration) {
        System.out.println("process stimulus");
    wakeupOn(wakeCriterion);
  }
}
//----------------------------------------------------------------
but it looks like the processStimulus method is never called
What Im doing wrong?
The TG has
        setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
        setCapability(TransformGroup.ENABLE_PICK_REPORTING);

Thank you



Im rhythmus bleiben,
 Alex                            mailto:[EMAIL PROTECTED]
ICQ: 29889167


...Commanded by UNIQUE combination of SOFTWARE and organic systems...

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to