Java Reference
In-Depth Information
osciTrans.addChild(osciscreenTrans);
Shape3D osci_screen1 = new Screen3D(0.015f, 0.125f*enlarge, 0.018f, dis_look);
osci_screen1.setPickable(false);
TransformGroup osciscreenTrans1 = new TransformGroup();
setPosition(osciscreenTrans1, new Point3f(0.0f, -0.045f*enlarge+0.0035f, 0.0025f));
osciscreenTrans1.addChild(osci_screen1);
osciscreenTrans.addChild(osciscreenTrans1);
Shape3D osci_screen2 = new Screen3D(0.015f, 0.125f*enlarge, 0.018f, dis_look);
osci_screen2.setPickable(false);
TransformGroup osciscreenTrans2 = new TransformGroup();
setPosition(osciscreenTrans2, new Point3f(0.0f, 0.045f*enlarge-0.0035f, 0.0025f));
osciscreenTrans2.addChild(osci_screen2);
osciscreenTrans.addChild(osciscreenTrans2);
Shape3D osci_screen3 = new Screen3D(0.015f, 0.008f, 0.09f*enlarge, dis_look);
osci_screen3.setPickable(false);
TransformGroup osciscreenTrans3 = new TransformGroup();
setPosition(osciscreenTrans3, new Point3f(-0.0625f*enlarge+0.004f, 0.0f, 0.0025f));
osciscreenTrans3.addChild(osci_screen3);
osciscreenTrans.addChild(osciscreenTrans3);
Shape3D osci_screen4 = new Screen3D(0.015f, 0.008f, 0.09f*enlarge, dis_look);
osci_screen4.setPickable(false);
TransformGroup osciscreenTrans4 = new TransformGroup();
setPosition(osciscreenTrans4, new Point3f(0.0625f*enlarge-0.004f, 0.0f, 0.0025f));
osciscreenTrans4.addChild(osci_screen4);
osciscreenTrans.addChild(osciscreenTrans4);
// Create a signal generator -------------------------------------------------------------//
TransformGroup sgTrans = new Case3D(sg_length, sg_width, sg_height, Case,
Backside, Leftside, Rightside, Case, Case);
sgTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
sgTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
sgTrans.setCapability(TransformGroup.ALLOW_PICKABLE_READ);
sgTrans.setCapability(TransformGroup.ALLOW_PICKABLE_WRITE);
sgTrans.setCapability(TransformGroup.ENABLE_PICK_REPORTING);
setPosition(sgTrans, sgposi);
objTrans.addChild(sgTrans);
sg_label[0] = new Label2D(0.028f, 0.031f, Output);
sg_label[0].setPosition(new Point3f(0.26f*sg_width, -0.36f*sg_height+0.01f,
0.5f*sg_length+0.002f));
sgTrans.addChild(sg_label[0]);
sg_label[1] = new Label2D(0.018f, 0.020f, Gnd);
sg_label[1].setPosition(new Point3f(0.15f*sg_width, -0.40f*sg_height+0.01f,
Search WWH ::




Custom Search