三位开发,加载场景代码请大神指教

0 投票

 请问我这段默认将三维场景数据加载的代码存在什么问题

private SceneControl myscenecl;
private Workspace mywokspace;

       public  Form1()
        {
            InitializeComponent();
            InitSkinGallery();
            SuperMap.Data.Environment.IsSceneAntialias = true;
            SuperMap.Data.Environment.SceneAntialiasValue = 4;

            WorkspaceConnectionInfo info = new WorkspaceConnectionInfo(@"C:\Users\K550JK\Desktop\超图毕设\毕业设计\test5\data\BJFUcj.smwu");
            mywokspace = new Workspace();         
            mywokspace.Open(info);
            
            myscenecl =new SceneControl ();           
            myscenecl.Dock =DockStyle .Fill ;
            splitContainerControl.Panel2.Controls.Add(myscenecl); 
            myscenecl.Scene.Workspace = mywokspace;
            myscenecl.Scene.Open("BJFU");//这句是想要打开工作空间中的场景,但是编译不通过,不知道这样写是否正确

            myscenecl.Action = Action3D.Pan;
            myscenecl.Scene.Refresh();

            Camera camera = myscenecl.Scene.Camera;
            camera .Altitude =26;
            camera.Latitude = 36;
            camera.Longitude = 109;
            camera.Tilt = 50;
            myscenecl.Scene.Fly(camera,1);
        }

4月 9, 2018 分类:  274次浏览 | 用户: lanzx 才疏学浅 (11 分)

1个回答

0 投票

在上个帖子已回复http://qa.supermap.com/21672

4月 9, 2018 用户: 胡林 登峰造极 (5,879 分)
...