Java Reference
In-Depth Information
view = u.getViewer().getView();
view.setFrontClipPolicy(VIRTUAL_EYE);
view.setFrontClipDistance(0.05);
view.setWindowResizePolicy(1);
view.setWindowMovementPolicy(1); //Modifying the view parameters
}
d.4 destroyInG functIon for maIn applet
public void destroy()
{
if (scene3d!=null)
scene3d.closeAll();
u.removeAllLocales();
}
d.5 loadInG vrml based cIrcuIt board obJect for
maIn applet
public void LoadCir_Board()
{
try {
cir_board = new java.net.URL(getCodeBase().toString()+”models/Battary.WRL”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
}
d.6 loadInG pIctures for 3d Walls and
envIronment for maIn applet
public void LoadPanel()
{
try {
image = new java.net.URL(getCodeBase().toString()+”images/rectangle.jpg”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
try {
image1 = new java.net.URL(getCodeBase().toString()+”images/rotate.jpg”);
} catch (java.net.MalformedURLException ex) {
Search WWH ::




Custom Search