?? draw3d_axis.java
字號:
/*
* Created on 2005-7-17
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package AixsSet;
/**
* @author carso
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import javax.media.j3d.*;
public class Draw3D_Axis extends Shape3D {
private float vert[] = {
-180.0f,0.0f,0.0f,
180.0f,0.0f,0.0f,
0.0f,-180.0f,0.0f,
0.0f,180.0f,0.0f,
0.0f,0.0f,-180.0f,
0.0f,0.0f,180.0f,
};
private float color[] = {
1.0f,1.0f,1.0f,
1.0f,1.0f,1.0f,
0.1f,0.6f,0.6f,
0.1f,0.6f,0.6f,
0.8f,0.8f,0.8f,
0.8f,0.8f,0.8f,
};
public Draw3D_Axis() {
LineArray line = new LineArray(6,
LineArray.COORDINATES|LineArray.COLOR_3);
line.setCoordinates(0,vert);
line.setColors(0,color);
LineAttributes la = new LineAttributes();
la.setLineWidth(30.0f);
la.setLineAntialiasingEnable(true);
Appearance ap = new Appearance();
ap.setLineAttributes(la);
this.setGeometry(line);
this.setAppearance(ap);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -