📄 t4.java
字号:
value1[1]=vcha[1]; vcha[1]=value1[1];
value1[2]=vcha[2]; vcha[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick3() {
EventInSFVec3f trans=(EventInSFVec3f)translation1.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vcha[0]+buchang; vcha[0]=value1[0];
value1[1]=vcha[1]; vcha[1]=value1[1];
value1[2]=vcha[2]; vcha[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick4() {
EventInSFVec3f trans=(EventInSFVec3f)translation1.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vcha[0]; vcha[0]=value1[0];
value1[1]=vcha[1]; vcha[1]=value1[1];
value1[2]=vcha[2]-buchang; vcha[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick5() {
EventInSFVec3f trans=(EventInSFVec3f)translation1.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vcha[0]; vcha[0]=value1[0];
value1[1]=vcha[1]; vcha[1]=value1[1];
value1[2]=vcha[2]+buchang; vcha[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick1() {
int n=Choice1.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch1.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//茶几
public void clickedBtnClick6() {
EventInSFVec3f trans=(EventInSFVec3f)translation2.getEventIn("set_translation");
vsha1[0]=51.71f;
vsha1[1]=8.779f;
vsha1[2]=-4f;
trans.setValue(vsha1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick7() {
EventInSFVec3f trans=(EventInSFVec3f)translation2.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha1[0]-buchang; vsha1[0]=value1[0];
value1[1]=vsha1[1]; vsha1[1]=value1[1];
value1[2]=vsha1[2]; vsha1[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick8() {
EventInSFVec3f trans=(EventInSFVec3f)translation2.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha1[0]+buchang; vsha1[0]=value1[0];
value1[1]=vsha1[1]; vsha1[1]=value1[1];
value1[2]=vsha1[2]; vsha1[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick9() {
EventInSFVec3f trans=(EventInSFVec3f)translation2.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha1[0]; vsha1[0]=value1[0];
value1[1]=vsha1[1]; vsha1[1]=value1[1];
value1[2]=vsha1[2]-buchang; vsha1[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick10() {
EventInSFVec3f trans=(EventInSFVec3f)translation2.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha1[0]; vsha1[0]=value1[0];
value1[1]=vsha1[1]; vsha1[1]=value1[1];
value1[2]=vsha1[2]+buchang; vsha1[2]=value1[2];;
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick2() {
int n=Choice2.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch2.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//沙发上
public void clickedBtnClick11() {
EventInSFVec3f trans=(EventInSFVec3f)translation3.getEventIn("set_translation");
vsha2[0]=51.71f;
vsha2[1]=8.779f;
vsha2[2]=52;;
trans.setValue(vsha2);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick12() {
EventInSFVec3f trans=(EventInSFVec3f)translation3.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha2[0]-buchang; vsha2[0]=value1[0];
value1[1]=vsha2[1]; vsha2[1]=value1[1];
value1[2]=vsha2[2]; vsha2[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick13() {
EventInSFVec3f trans=(EventInSFVec3f)translation3.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha2[0]+buchang; vsha2[0]=value1[0];
value1[1]=vsha2[1]; vsha2[1]=value1[1];
value1[2]=vsha2[2]; vsha2[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick14() {
EventInSFVec3f trans=(EventInSFVec3f)translation3.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha2[0]; vsha2[0]=value1[0];
value1[1]=vsha2[1]; vsha2[1]=value1[1];
value1[2]=vsha2[2]-buchang; vsha2[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick15() {
EventInSFVec3f trans=(EventInSFVec3f)translation3.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vsha2[0]; vsha2[0]=value1[0];
value1[1]=vsha2[1]; vsha2[1]=value1[1];
value1[2]=vsha2[2]+buchang; vsha2[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick3() {
int n=Choice3.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch3.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//沙发下
public void clickedBtnClick16() {
EventInSFVec3f trans=(EventInSFVec3f)translation4.getEventIn("set_translation");
vdeng[0]=51.71f;
vdeng[1]=30f;
vdeng[2]=67f;
trans.setValue(vdeng);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick17() {
EventInSFVec3f trans=(EventInSFVec3f)translation4.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vdeng[0]-buchang; vdeng[0]=value1[0];
value1[1]=vdeng[1]; vdeng[1]=value1[1];
value1[2]=vdeng[2]; vdeng[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick18() {
EventInSFVec3f trans=(EventInSFVec3f)translation4.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vdeng[0]+buchang; vdeng[0]=value1[0];
value1[1]=vdeng[1]; vdeng[1]=value1[1];
value1[2]=vdeng[2]; vdeng[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick19() {
EventInSFVec3f trans=(EventInSFVec3f)translation4.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vdeng[0]; vdeng[0]=value1[0];
value1[1]=vdeng[1]; vdeng[1]=value1[1];
value1[2]=vdeng[2]-buchang; vdeng[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick20() {
EventInSFVec3f trans=(EventInSFVec3f)translation4.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vdeng[0]; vdeng[0]=value1[0];
value1[1]=vdeng[1]; vdeng[1]=value1[1];
value1[2]=vdeng[2]+buchang; vdeng[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick4() {
int n=Choice4.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch4.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//灯
public void clickedBtnClick21() {
EventInSFVec3f trans=(EventInSFVec3f)translation5.getEventIn("set_translation");
vtv[0]=-80f;
vtv[1]=20f;
vtv[2]=50f;
trans.setValue(vtv);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick22() {
EventInSFVec3f trans=(EventInSFVec3f)translation5.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vtv[0]-buchang; vtv[0]=value1[0];
value1[1]=vtv[1]; vtv[1]=value1[1];
value1[2]=vtv[2]; vtv[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick23() {
EventInSFVec3f trans=(EventInSFVec3f)translation5.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vtv[0]+buchang; vtv[0]=value1[0];
value1[1]=vtv[1]; vtv[1]=value1[1];
value1[2]=vtv[2]; vtv[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick24() {
EventInSFVec3f trans=(EventInSFVec3f)translation5.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vtv[0]; vtv[0]=value1[0];
value1[1]=vtv[1]; vtv[1]=value1[1];
value1[2]=vtv[2]-buchang; vtv[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick25() {
EventInSFVec3f trans=(EventInSFVec3f)translation5.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vtv[0]; vtv[0]=value1[0];
value1[1]=vtv[1]; vtv[1]=value1[1];
value1[2]=vtv[2]+buchang; vtv[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick5() {
int n=Choice5.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch5.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//电视机
public void clickedBtnClick26() {
EventInSFVec3f trans=(EventInSFVec3f)translation6.getEventIn("set_translation");
vshu[0]=51.71f;
vshu[1]=23f;
vshu[2]=-40f;
trans.setValue(vshu);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick27() {
EventInSFVec3f trans=(EventInSFVec3f)translation6.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vshu[0]-buchang; vshu[0]=value1[0];
value1[1]=vshu[1]; vshu[1]=value1[1];
value1[2]=vshu[2]; vshu[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick28() {
EventInSFVec3f trans=(EventInSFVec3f)translation6.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vshu[0]+buchang; vshu[0]=value1[0];
value1[1]=vshu[1]; vshu[1]=value1[1];
value1[2]=vshu[2]; vshu[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick29() {
EventInSFVec3f trans=(EventInSFVec3f)translation6.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vshu[0]; vshu[0]=value1[0];
value1[1]=vshu[1]; vshu[1]=value1[1];
value1[2]=vshu[2]-buchang; vshu[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick30() {
EventInSFVec3f trans=(EventInSFVec3f)translation6.getEventIn("set_translation");
float[] value1=new float[3];
value1[0]=vshu[0]; vshu[0]=value1[0];
value1[1]=vshu[1]; vshu[1]=value1[1];
value1[2]=vshu[2]+buchang; vshu[2]=value1[2];
trans.setValue(value1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void chooseBtnClick6() {
int n=Choice6.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch6.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}//书架
public void chooseBtnClick8() {
int n=Choice8.getSelectedIndex();
EventInSFInt32 newwhichChoice=
(EventInSFInt32)switch7.getEventIn("set_whichChoice");
newwhichChoice.setValue(n);
try{
Thread.sleep(200);
}
catch(InterruptedException ex){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -