📄 t55.java
字号:
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];
if(vsha2[2]>=-44)
{
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];
}
else value1[0]=vsha2[0];value1[1]=vsha2[1];value1[2]=vsha2[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];
if(vsha2[2]<=136)
{
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];
}
else value1[0]=vsha2[0];value1[1]=vsha2[1];value1[2]=vsha2[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);
EventInSFRotation ro=(EventInSFRotation)rotation4.getEventIn("set_rotation");
rdeng[3]=0;
ro.setValue(rdeng);
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);
EventInSFRotation ro=(EventInSFRotation)rotation5.getEventIn("set_rotation");
rtv[3]=0;
ro.setValue(rtv);
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);
EventInSFRotation ro=(EventInSFRotation)rotation6.getEventIn("set_rotation");
rshu[3]=0;
ro.setValue(rshu);
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){}
}
public void clickedBtnClick39() {
EventInSFRotation trans=(EventInSFRotation)rotation6.getEventIn("set_rotation");
rshu[3]=rshu[3]+1.571f;
trans.setValue(rshu);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick35() {
EventInSFRotation trans=(EventInSFRotation)rotation1.getEventIn("set_rotation");
rcha[3]+=1.571;
trans.setValue(rcha);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick34() {
EventInSFRotation trans=(EventInSFRotation)rotation2.getEventIn("set_rotation");
rsha1[3]+=1.571;
trans.setValue(rsha1);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick36() {
EventInSFRotation trans=(EventInSFRotation)rotation3.getEventIn("set_rotation");
rsha2[3]+=1.571;
trans.setValue(rsha2);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick37() {
EventInSFRotation trans=(EventInSFRotation)rotation4.getEventIn("set_rotation");
rdeng[3]+=1.571;
trans.setValue(rdeng);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
public void clickedBtnClick38() {
EventInSFRotation trans=(EventInSFRotation)rotation5.getEventIn("set_rotation");
rtv[3]+=1.571;
trans.setValue(rtv);
try{
Thread.sleep(100);
}
catch(InterruptedException ex){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -