comparison src/alice/test/topology/fishmodel/alpha/MakeObject.java @ 110:aa9fc077c286 working

remove host from checkFishLocation
author sugi
date Sun, 15 Jul 2012 21:32:48 +0900
parents 96674c803853
children ba64a9d76e70
comparison
equal deleted inserted replaced
109:96674c803853 110:aa9fc077c286
73 scene.addChild(transform_group); 73 scene.addChild(transform_group);
74 return scene; 74 return scene;
75 } 75 }
76 76
77 private Appearance createAppearance(){ 77 private Appearance createAppearance(){
78 //System.out.println(new File(".").getAbsolutePath());
79 Appearance app = new Appearance(); 78 Appearance app = new Appearance();
80 Image image = null; 79 Image image = null;
81 Toolkit toolkit = Toolkit.getDefaultToolkit(); 80 Toolkit toolkit = Toolkit.getDefaultToolkit();
82 //image = toolkit.getImage("image/fish.jpg"); 81 //image = toolkit.getImage("image/fish.jpg");
83 image = toolkit.getImage("../image/fish.jpg");//jar 82 image = toolkit.getImage("../image/fish.jpg");//jar
101 transform = new Transform3D(); 100 transform = new Transform3D();
102 vector = new Vector3f(x,y,0.0f); 101 vector = new Vector3f(x,y,0.0f);
103 transform.setTranslation(vector); 102 transform.setTranslation(vector);
104 transform_group.setTransform(transform); 103 transform_group.setTransform(transform);
105 } 104 }
105
106 public void setLocation(float x,float y,float z){
107 transform = new Transform3D();
108 vector = new Vector3f(x,y,z);
109 transform.setTranslation(vector);
110 transform_group.setTransform(transform);
111 }
106 } 112 }
107 113