Skyline TerraExplorer 7.0- 扩展信息树

时间:2023-03-09 04:12:04
Skyline TerraExplorer 7.0- 扩展信息树

Skyline TerraExplorer V7增加了一个扩展信息树的控件TEInformationWindowEx。 
Skyline TerraExplorer 7.0- 扩展信息树

该控件能够将TE3DWindowEx窗口里面的对象显示为信息树的方式。TEInformationWindow和TE3DWindow是唯一的,是可以自动绑定在一起的。但是在一个程序里面TE3DWindowEx和TEInformationWindowEx是可以添加n多个的,所以 TEInformationWindowEx和TE3DWindowEx需要手动去绑定彼此。 
在C#中,我们把控件拖进来,如下图: 
Skyline TerraExplorer 7.0- 扩展信息树 
如何绑定请看相关代码:

SGWorld70 globe = (SGWorld70)axTE3DWindowEx1.CreateInstance("TerraExplorerX.SGWorld70"); 
//绑定信息树 
axTEInformationWindowEx1.AttachTo3dWindow((TE3DWindowEx)axTE3DWindowEx1.GetOcx());

JavaScript中,通过object标签添加控件: 
<OBJECT ID="TerraExplorerInformationWindowEx" CLASSID="CLSID:3a4f919b-65a8-11d5-85c1-0001023952c1" width="300" height="200"></OBJECT> 
<object ID="TerraExplorer3DWindowEx" classid="CLSID:3a4f9196-65a8-11d5-85c1-0001023952c1" width="600" height="500"></object>
 
相关代码:

sgworld = TerraExplorer3DWindowEx.CreateInstance("{3a4f919a-65a8-11d5-85c1-0001023952c1}"); 
//绑定信息树 
TerraExplorerInformationWindowEx.AttachTo3dWindow(TerraExplorer3DWindowEx);