当前位置:网站首页>Osgearth north arrow display
Osgearth north arrow display
2022-07-03 08:16:00 【CHPCWWHSU】
osgEarth The north arrow shows
This article shows a osgEarth How to display the north arrow in the environment . adopt osgEarth Self contained ImageControl Control displays the north arrow in the form of a picture , Simultaneous utilization osgGA::GUIEventHandler To realize the north arrow and osgEarth Ball interaction .
This article mainly solves the following problems :
- osgEarth Load image layer
- osgEarth The display of the north arrow
- The interaction between the north arrow and the ball
Catalog
- 1 Preface
- 2 osgEarth The display of the north arrow
- 3 The interaction between the north arrow and the ball
Content
- 1 Preface
osgEarth It's based on the 3D engine osg Development of 3D digital earth engine library , It supports loading common grid data ( Images and DEM), Big data needs to build pyramids , At the same time, it is set as the geographic coordinate system , To achieve high loading efficiency, we need to process the image into tiles for storage .osgEarth Provides a wealth of Control Control , It is inherited from Camera class , It can be displayed on the interface , Realize the control function .
- 2 osgEarth The display of the north arrow
First load imageLayer,osgEarth configurable xml Format earth file , Use its data reading entry readNodeFile function , take earth Read the file as MapNode, So as to realize the loading of various layers , Of course earth The file contains the corresponding layers ,earth Document adoption xml The format organization of , You can use a text editor to display and edit , The sample code is as follows :
边栏推荐
猜你喜欢
随机推荐
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
Golang json格式和结构体相互转换
P1896 [scoi2005] non aggression (shape pressure DP)
Editor Extensions
E: 无法定位软件包 ros-melodic-desktop-full
P2704 [NOI2001] 炮兵阵地(状压dp)
图像处理8-CNN图像分类
Conversion between string and int types in golang
Minimap plug-in
STM32F103 SPI (pit Diary)
JSON与Object之间转换
[USACO12MAR]Cows in a Skyscraper G(状态压缩dp)
Golang 时间格式整理
【K&R】中文第二版 个人题解 Chapter1
swagger文档配置
Oracle insert single quotation mark
Map的实现类的顺序性
一条通往服务器所有端口的隧道
My touch screen production "brief history" 2
C#课程设计之员工信息管理系统








