Hi,
I am extremely new to eclipse and I would like to write a 3D editor/viewer based on
Java3D using the eclipse platform. From what I understood I have to sublass EditPart
and override "createPartControl() method and several other methods as well.
In order to use Java3D API, I need to create a canvas3D object (from Java3D) but it
seems that I can't hook a canvas3D object (which derives from java.awt.canvas) into a
Composite object :
public class SimpleEditor3D extends EditorPart
{
// Private stuff
private SimpleUniverse univers = null;
// Constructor
public SimpleEditor3D()
{
super();
}
public void createPartControl(Composite parent)
{
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config);
// There is no such method as "add" to add an object to a composite
//parent.add("Center", c); !!!!
}
}
Thanks lot.
slimane
===========================================================================
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".