第1課時《Qt osgEarth 程式設計入門》

2021-07-12 04:17:07 字數 1369 閱讀 9108

1.首先編譯osg /osgearth 原始碼,配置環境變數,將osg及osgearth 對應的bin目錄加入系統環境中。

2.在qt中的pro檔案中進行引用:

include(deployment.pri)
win32:includepath

+=c:/osgearrh/include

\

c:/openscenegraph/include

\

win32:dependpath

+=c:/osgearrh/include

\

c:/openscenegraph/include
win32:config(release,

debug|release):

libs

+=\

-lc:/osgearrh/lib/-losgearth\
-lc:/osgearrh/lib/-losgearthannotation\
-lc:/osgearrh/lib/-losgearthfeatures\
-lc:/osgearrh/lib/-losgearthqt\
-lc:/osgearrh/lib/-losgearthsymbology\
-lc:/osgearrh/lib/-losgearthutil\
3.在cpp檔案編寫

一般我們載入和使用對應的地理資訊資源需要以下幾步:

原始碼如下:

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

int

main(

intargc,

char**argv)

執行結果如下: 

python程式設計(江紅)第1課時

一 概述 1 解釋型 物件導向。2 shell 直譯器 二 語句 1 包括 簡單語句和復合語句 1 簡單語句 表示式語句 賦值語句 assert語句 pass語句 del語句 return語句 yield語句 raise語句 break語句 continue語句 import語句 monlocal語...

第3課時 體驗python

學科 人工智慧 年級 四年級上冊 課題 第3課時 體驗python 課時數 1課時 教材分析 在前面了解人工智慧含義及機器學習含義的基礎上,學生已經體驗過一些人工智慧的應用,本節課讓學生了解人工智慧離不開程式語言,通過python語言的初步學習,初步了解人工智慧程式語言,並能夠通過簡單編寫pytho...

第6課時 語音識別

學科 人工智慧 年級 四年級上 課題 第6課時 語音識別 課時數 1課時 教材分析 本課內容選自 人工智慧啟蒙 第一冊第4節 語音識別 部分的內容,本節課要求學生通過學習,初步理解語音識別的含義 簡單了解語音識別的6個過程 了解並體驗語音識別在生活中的常見應用。學情分析 學生通過前面幾節課的學習,了...