I HAD to extend a bunch of scene graph classes to write our FLT format loader
and had no problems. But I only extended Group classes, such as Group,
BranchGroup, Switch, etc. However, I did not try to extend Leaf classes like
Shape3D.
Perhaps there are some gotchas with the Leaf classes.
Daniel Selman wrote:
> Gary,
>
> IMO most of the classes are not designed to be sub-classed, particularly
> scenegraph elements. They are really just "container" classes and do not
> implement significant "get" functionality that the J3D architecture refers
> to (because most of the implementation is in private "Reference" classes).
>
> What are you trying to achieve, maybe there is a better way?
>
> Sincerely,
>
> Daniel Selman
>
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gary L. Graf
> Sent: 17 November 1999 19:02
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Extending J3D classes
>
> Hi,
> I have never had much luck in extending the J3D classes. When I
> tried to extend Shape3D other methods would not recognize my class as a
> Shape3D for inclusion into the scene. I just tried to extend QuadArray
> and in my constructor called super(x, y). I got an error message saying
> QuadArray is not public in class javax.media.j3d.QuadArray and cannot be
> accessed from outside the package. I am using JBuilder3 compiling to
> JDK1.2.2 with J3D added. Any insight?
> Thanks - Gary Graf
>
> ===========================================================================
> 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".
>
> ===========================================================================
> 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".
--
TTFN
__________________________________________________________
Shawn Kendall Full Sail Real World Education
Course Instructor 3300 University BLVD
Virtual Reality Winter Park FL 32792
[EMAIL PROTECTED] http://www.fullsail.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".