Greetings, Mr. Lindinger,

        I don't know if you got an answer to this question yet.  I didn't see one,
but that didn't mean I didn't overlook it.  I was just hoping for a better
answer than the one I came up with.

        I subclassed MouseRotate to get my desired control.  However, because (at
least in Java 3D, version 1.3) of the way PickRotateBehavior is set up,
which contains an instance of MouseRotate, but which does not allow subclass
access, I had to subclass PickRotateBehavior as well so that it called my
version of MouseRotate.

        The source code that I have for PickRotateBehavior may not be correct
because it doesn't compile cleanly.  I had to remove the line,
"freePickResult(pr);" to get it to compile.  It may be a method of default
scope, but I think I even tried subclassing in the same package to test it.
In both subclasses, I retained almost all of the original code (with the
appropriate copyright info, of course!).  It would have been nice if
PickRotateBehavior would have defined MouseRotate with "protected" scope.
Also, if MouseRotate had defined "doProcess()" and perhaps
"processStimulus()" with protected scope, it would have saved a lot of
duplication.

        If you come up with a better way to handle this or if you need more info
about my wacky way of doing it, please let me know.

        Chet Urata





--- Christopher Lindinger <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> I want to use the pickRotateBehavior to turn objects, but I only want
> to use it in one direction. So that the y coordinate of the mouse is
> not used. Does anyone know a solution to this?
>
> Thanks
>
> Christopher
>
>
 칻 &ޱzf% lzjw( w%ע^nrazg (' P7 S   LZ+
azZlzw^b ڽ.&jwbnu觶 ܨ~^,j zZ

===========================================================================
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