Java Reference
In-Depth Information
e.5 obtaInInG handles to appearance
public void setAppearance(Appearance appimage)
this.appimage = appimage;
e.6 clearInG pIckInG behavIor obJect after
system exIt
public void closeAll()
if (pickingbehavior!=null)
e.7 maIn scene Graph creatIon functIon
public BranchGroup createSceneGraph(SimpleUniverse su, Canvas3D c)
// Initializing the parameters used below
int j;
Point3f initviewpoint = new Point3f(0.75f, 1.60f, 8.0f);
Point3f outsideposi = new Point3f(0.75f, 1.75f, -7.0f);
Point3f doorposi = new Point3f(1.5f, 0.0f, 2.0f);
Point3f aircraftposi = new Point3f(0.0f, 0.6f, 0.01f);
Color3f objColor = null;
Color3f black = new Color3f(0.0f, 0.0f, 0.0f);
Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
Appearance text_look = new Appearance();
Appearance knob_look = new Appearance();
Appearance track_look = new Appearance();
Appearance panel_look = new Appearance();
Appearance dis_look = new Appearance();
objColor = new Color3f(0.65f, 0.65f, 0.65f);
knob_look.setMaterial(new Material(objColor, black, objColor, white, 100.0f));
objColor = new Color3f(0.15f, 0.15f, 0.15f);
panel_look.setMaterial(new Material(objColor, black, objColor, white, 100.0f));
objColor = new Color3f(0.0f, 0.0f, 0.0f);
track_look.setMaterial(new Material(objColor, black, objColor, white, 100.0f));
Search WWH ::

Custom Search