Spring擴充套件之四:BeanFactoryPostProcessor介面
阿新 • • 發佈:2020-11-24
private void button26_Click(object sender, EventArgs e) { //建立3D的Text,顯示在世界空間 String fontName = "simhei.ttf"; AnyCAD.Platform.Font font = GlobalInstance.FontManager.FindFont(fontName); Text3dNode textNode = new Text3dNode(); textNode.SetFontName(fontName); textNode.SetText("Caesar盧尚宇"); textNode.SetLineSpace(10);//設定行間距 textNode.SetFontSize(50, 50);//設定字型大小 //設定座標 Coordinate3 coord = new Coordinate3(); coord.Origion = new Vector3(100, 100, 0); coord.X = new Vector3(1, 1, 0); coord.X.Normalize(); coord.Y= coord.Z.CrossProduct(coord.X); //獲取區域性座標系的世界矩陣 Matrix4 trf = GlobalInstance.MatrixBuilder.ToWorldMatrix(coord); textNode.SetTransform(trf); textNode.Update(); //顯示字型 renderView.ShowSceneNode(textNode); //設定顏色 FaceStyle style = newFaceStyle(); style.SetColor(new ColorValue(1, 0, 0, 1)); textNode.SetFaceStyle(style); }
Caesarl盧尚宇
2020年11月24日