当前位置:网站首页>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 :
边栏推荐
- 多旅行商问题——公式和求解过程概述
- P1896 [scoi2005] non aggression (shape pressure DP)
- 数据库应用技术课程设计之商城管理系统
- Oracle queries grouped by time
- tslib库的移植
- Pulitzer Prize in the field of information graphics - malofiej Award
- [global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
- Mutual call between Lua and C #
- Classes and objects
- Golang time format sorting
猜你喜欢

My touch screen production "brief history" 1

ArrayList

MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板

Shader foundation 01

十六进制编码简介

the installer has encountered an unexpected error installing this package

Scite change background color

matlab神经网络所有传递函数(激活函数)公式详解

haproxy+keepalived集群搭建02

Oracle insert single quotation mark
随机推荐
数据的存储
I want to do large screen data visualization application feature analysis
go 解析身份证
My touch screen production "brief history" 2
超限黑客认知
The general trend of data news releases the power of visual reporting ----- essays after reading
Usage of (case, when) in PostgreSQL
P1896 [scoi2005] non aggression (shape pressure DP)
Clion toolchains are not configured configure disable profile problem solving
Youyou1 of xlua knapsack system
Wechat applet taro learning record
一条通往服务器所有端口的隧道
C#课程设计之员工信息管理系统
Yolo series --- xml2txt script
jsutlis
unity2019_ Input management
Maxcompute string splitting function -split_ PART
UE4 plug in development
Easy touch plug-in
P2622 关灯问题II(状态压缩 搜索)