如何在qt界面程序中添加osgearth 添加标签球

osgEarth用户手册_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
osgEarth用户手册
上传于||文档简介
&&o​s​g​E​a​r​t​h​用​户​手​册
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
下载文档到电脑,查找使用更方便
还剩56页未读,继续阅读
你可能喜欢osgEarth数据加载及组织解析_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
osgEarth数据加载及组织解析
上传于||文档简介
&&这​是​从​我​的​毕​业​论​文​中​节​选​出​来​的​。​其​中​是​在​网​友​勇​者​无​畏​提​供​的​基​础​上​进​行​了​增​改​和​自​己​的​理​解​,​再​此​谢​谢​他​~​希​望​能​给​大​家​帮​助​~​
​
​内​容​主​要​是​关​于​o​s​g​E​a​r​t​h​加​载​e​a​r​t​h​文​件​并​组​织​其​中​的​地​形​数​据​。
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
下载文档到电脑,查找使用更方便
还剩11页未读,继续阅读
你可能喜欢/ VRlink_osgEarth_Qt
项目语言:C++
权限:read-only(如需更高权限请先加入项目)
VRlink_osgEarth_Qt/
&?xml version=&1.0& encoding=&utf-8&?&
&Project DefaultTargets=&Build& ToolsVersion=&4.0& xmlns=&/developer/msbuild/2003&&
&ItemGroup Label=&ProjectConfigurations&&
&ProjectConfiguration Include=&Debug|Win32&&
&Configuration&Debug&/Configuration&
&Platform&Win32&/Platform&
&/ProjectConfiguration&
&ProjectConfiguration Include=&Release|Win32&&
&Configuration&Release&/Configuration&
&Platform&Win32&/Platform&
&/ProjectConfiguration&
&/ItemGroup&
&PropertyGroup Label=&Globals&&
&ProjectGuid&{E51E54D6-EE5F-43FB-ABE9-}&/ProjectGuid&
&Keyword&Qt4VSv1.0&/Keyword&
&/PropertyGroup&
&Import Project=&$(VCTargetsPath)\Microsoft.Cpp.Default.props& /&
&PropertyGroup Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'& Label=&Configuration&&
&ConfigurationType&DynamicLibrary&/ConfigurationType&
&/PropertyGroup&
&PropertyGroup Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'& Label=&Configuration&&
&ConfigurationType&DynamicLibrary&/ConfigurationType&
&/PropertyGroup&
&Import Project=&$(VCTargetsPath)\Microsoft.Cpp.props& /&
&ImportGroup Label=&ExtensionSettings&&
&/ImportGroup&
&ImportGroup Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'& Label=&PropertySheets&&
&Import Project=&$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props& Condition=&exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')& Label=&LocalAppDataPlatform& /&
&/ImportGroup&
&ImportGroup Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'& Label=&PropertySheets&&
&Import Project=&$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props& Condition=&exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')& Label=&LocalAppDataPlatform& /&
&/ImportGroup&
&PropertyGroup Label=&UserMacros& /&
&PropertyGroup&
&_ProjectFileVersion&10.0.30319.1&/_ProjectFileVersion&
&CodeAnalysisRuleSet Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&AllRules.ruleset&/CodeAnalysisRuleSet&
&CodeAnalysisRules Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'& /&
&CodeAnalysisRuleAssemblies Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'& /&
&CodeAnalysisRuleSet Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&AllRules.ruleset&/CodeAnalysisRuleSet&
&CodeAnalysisRules Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'& /&
&CodeAnalysisRuleAssemblies Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'& /&
&OutDir Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&../ListenDebug/&/OutDir&
&OutDir Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&$(SolutionDir)$(Platform)\$(Configuration)\&/OutDir&
&ExecutablePath Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&$(OSGEARTH_ROOT)\$(ExecutablePath)&/ExecutablePath&
&IncludePath Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&$(OSGEARTH_ROOT)\$(OSG_ROOT)\$(IncludePath)&/IncludePath&
&LibraryPath Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&$(OSGEARTH_ROOT)\$(LibraryPath)&/LibraryPath&
&/PropertyGroup&
&ItemDefinitionGroup Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&
&ClCompile&
&PreprocessorDefinitions&UNICODE;WIN32;QT_DLL;QT_CORE_LIB;QT_OPENGL_LIB;OSGEARTHINTERFACE_LIB;%(PreprocessorDefinitions)&/PreprocessorDefinitions&
&AdditionalIncludeDirectories&.\GeneratedF.;$(QTDIR)\.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtC$(OSGEARTH_ROOT)\$(OSG_ROOT)\$(QTDIR)\include\QtOpenGL;%(AdditionalIncludeDirectories)&/AdditionalIncludeDirectories&
&Optimization&Disabled&/Optimization&
&DebugInformationFormat&ProgramDatabase&/DebugInformationFormat&
&RuntimeLibrary&MultiThreadedDebugDLL&/RuntimeLibrary&
&TreatWChar_tAsBuiltInType&false&/TreatWChar_tAsBuiltInType&
&/ClCompile&
&SubSystem&Windows&/SubSystem&
&OutputFile&$(OutDir)\$(ProjectName).dll&/OutputFile&
&AdditionalLibraryDirectories&$(QTDIR)\$(OSG_ROOT)\$(OSGEARTH_ROOT)\%(AdditionalLibraryDirectories)&/AdditionalLibraryDirectories&
&GenerateDebugInformation&true&/GenerateDebugInformation&
&AdditionalDependencies&qtmaind.QtCored4.QtGuid4.QtOpenGLd4.osgViewerd.osgd.osgDBd.osgGAd.osgQtd.osgEarthd.osgEarthQtd.osgEarthUtild.osgEarthSymbologyd.osgEarthAnnotationd.osgUtild.%(AdditionalDependencies)&/AdditionalDependencies&
&/ItemDefinitionGroup&
&ItemDefinitionGroup Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&
&ClCompile&
&PreprocessorDefinitions&UNICODE;WIN32;QT_DLL;QT_NO_DEBUG;NDEBUG;QT_CORE_LIB;OSGEARTHINTERFACE_LIB;%(PreprocessorDefinitions)&/PreprocessorDefinitions&
&AdditionalIncludeDirectories&.\GeneratedF.;$(QTDIR)\.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtC%(AdditionalIncludeDirectories)&/AdditionalIncludeDirectories&
&DebugInformationFormat&
&/DebugInformationFormat&
&RuntimeLibrary&MultiThreadedDLL&/RuntimeLibrary&
&TreatWChar_tAsBuiltInType&false&/TreatWChar_tAsBuiltInType&
&/ClCompile&
&SubSystem&Windows&/SubSystem&
&OutputFile&$(OutDir)\$(ProjectName).dll&/OutputFile&
&AdditionalLibraryDirectories&$(QTDIR)\%(AdditionalLibraryDirectories)&/AdditionalLibraryDirectories&
&GenerateDebugInformation&false&/GenerateDebugInformation&
&AdditionalDependencies&qtmain.QtCore4.%(AdditionalDependencies)&/AdditionalDependencies&
&/ItemDefinitionGroup&
&ItemGroup&
&ClCompile Include=&GeneratedFiles\Debug\moc_osgEarthInterface.cpp&&
&ExcludedFromBuild Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&true&/ExcludedFromBuild&
&/ClCompile&
&ClCompile Include=&GeneratedFiles\Release\moc_osgEarthInterface.cpp&&
&ExcludedFromBuild Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&true&/ExcludedFromBuild&
&/ClCompile&
&ClCompile Include=&LabelControlEventHandler.cpp& /&
&ClCompile Include=&osgEarthInterface.cpp& /&
&/ItemGroup&
&ItemGroup&
&CustomBuild Include=&osgEarthInterface.h&&
&AdditionalInputs Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&$(QTDIR)\bin\moc.%(FullPath)&/AdditionalInputs&
&Message Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&Moc%27ing osgEarthInterface.h...&/Message&
&Outputs Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp&/Outputs&
&Command Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&&$(QTDIR)\bin\moc.exe&
&%(FullPath)& -o &.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp&
-DUNICODE -DWIN32 -DQT_DLL -DQT_CORE_LIB -DQT_OPENGL_LIB -DOSGEARTHINTERFACE_LIB -D_WINDLL
&-I.\GeneratedFiles& &-I.& &-I$(QTDIR)\include& &-I.\GeneratedFiles\$(ConfigurationName)\.& &-I$(QTDIR)\include\QtCore& &-I$(OSGEARTH_ROOT)\include& &-I$(OSG_ROOT)\include& &-I$(QTDIR)\include\QtOpenGL&&/Command&
&AdditionalInputs Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&$(QTDIR)\bin\moc.%(FullPath)&/AdditionalInputs&
&Message Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&Moc%27ing osgEarthInterface.h...&/Message&
&Outputs Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp&/Outputs&
&Command Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&&$(QTDIR)\bin\moc.exe&
&%(FullPath)& -o &.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp&
-DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DOSGEARTHINTERFACE_LIB -D_WINDLL &-I.\GeneratedFiles& &-I.& &-I$(QTDIR)\include& &-I.\GeneratedFiles\$(ConfigurationName)\.& &-I$(QTDIR)\include\QtCore&&/Command&
&/CustomBuild&
&CustomBuild Include=&LabelControlEventHandler.h&&
&AdditionalInputs Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&%(AdditionalInputs)&/AdditionalInputs&
&Message Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&
&/Message&
&Outputs Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&
&/Outputs&
&Command Condition=&'$(Configuration)|$(Platform)'=='Debug|Win32'&&
&/Command&
&AdditionalInputs Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&%(AdditionalInputs)&/AdditionalInputs&
&Message Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&
&/Message&
&Outputs Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&
&/Outputs&
&Command Condition=&'$(Configuration)|$(Platform)'=='Release|Win32'&&
&/Command&
&/CustomBuild&
&ClInclude Include=&osgearthinterface_global.h& /&
&/ItemGroup&
&Import Project=&$(VCTargetsPath)\Microsoft.Cpp.targets& /&
&ImportGroup Label=&ExtensionTargets&&
&/ImportGroup&
&ProjectExtensions&
&VisualStudio&
&UserProperties UicDir=&.\GeneratedFiles& MocDir=&.\GeneratedFiles\$(ConfigurationName)& MocOptions=&& RccDir=&.\GeneratedFiles& lupdateOnBuild=&0& lupdateOptions=&& lreleaseOptions=&& QtVersion_x0020_Win32=&4.8.6& /&
&/VisualStudio&
&/ProjectExtensions&
&/Project&
(C)&&2013&&Alibaba&&Inc.&&All&&rights&&resvered.
Powered by在我的上一篇博客中,在空旷的世界中只添加了cow,显得空旷,由于最近在做OSGEarth相关的开发,于是想着在OSG中怎么来添加一个数字球呢?
于是,来研究了下。发现,比我想象中的简单很多。
- 在OSG中添加一个球,这个用osg::Sphere实现
- 给新添的球设置一个半径为地球的半径,具体的就是WGS84坐标的参考半径
- 给球添加一个纹理,当然是全球影像了
- 给球添加经纬度坐标系统,可以利用osg::CoordinateSystemNode实现
- 给球添加操作器,目前的OSG中并没有像OSGEarth那样的earth操作器,只能拿TerrainManipulator来用了。若想要OSGEarth中那样操作器的效果,只能自己写一个了。
下面的代码:
osg* hints = new
hints-&setDetailRatio(5.0f);
osg* sd = new osg(
new osg(osg(0.0, 0.0, 0.0), osg), hints);
osg* geode = new
geode-&addDrawable(sd);
geode-&getOrCreateStateSet()-&setTextureAttributeAndModes(0,
new osg(osgDB("Images/land_shallow_topo_2048.jpg")));
osg* csn = new
csn-&setEllipsoidModel(new osg());
csn-&addChild(geode);
m_pRoot-&addChild(csn);
this-&getCamera()-&setNearFarRatio(0.00001f);
this-&setCameraManipulator(new osgGA);
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:19600次
排名:千里之外
原创:32篇
评论:31条
(3)(1)(3)(2)(17)(5)(1)

我要回帖

更多关于 qt添加界面文件 的文章

 

随机推荐