Hi, tested it out again this morning but noticed that the postId(MOUSE_CLICKED event) does not register.
Still puzzled as it now seems intermitent. --- greg baboolal <[EMAIL PROTECTED]> wrote: > Hi Steve, > noticed your msg, I do something similiar in > enabling > different behaviors as needed. > Anyway if I am not mistaken given my own application > the problem occurs because the the first click is > used > to select (focus) on the canvas / component. My work > around having read your email (thanks) is to have an > additional wakeupOn criteria that is: > > new > WakeupOnBehaviorPost(this,MouseEvent.MOUSE_CLICKED) > > and whenever you enable the picking behavior also > postID(MouseEvent.MOUSE_CLICKED) to simulate the > focus > on the component. > > Let me know if this works for you. > Greg. > --- Steve Bement <[EMAIL PROTECTED]> wrote: > > I have the 3 mouse behavior nodes (zoom, > translate, > > and rotate) under a > > branch group called mouseBehaviorBranch. Then > > mouseBehaviorBranch is > > under a Switch node, called mouseBehaviorSwitch. > We > > wanted to be able > > to turn on and off the mouse behavior - we have > > basically a "picking" > > mode, where users select geometry with the mouse, > > and a "viewing" mode, > > where they can zoom, translate, and rotate. > > > > The trouble is, after switching from picking to > > viewing, which involves > > a call to setWhichChild, the switch is made but > does > > not seem to > > immediately take effect. You click once to drag > the > > model and nothing > > happens, and you try a second time and it works. > > > > After a call to setWhichChild, is there a way to > > "force" an update of > > the scene graph, or something along those lines? > > > > Sample code: > > > > public void setMouseMode(MouseModeType mouseMode) > > { > > this.mouseMode = mouseMode; > > > > if (mouseMode == MouseModeType.VIEWING) > > { > > mouseBehaviorSwitch.setWhichChild(0); > > } > > else > > { > > > > > mouseBehaviorSwitch.setWhichChild(Switch.CHILD_NONE); > > } > > } > > > > Thanks, > > > > -- > > Steve Bement > > www.vykor.com > > > > > =========================================================================== > > 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". > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > =========================================================================== > 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". __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com =========================================================================== 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".