资源简介
OpenSceneGraph-OpenSceneGraph-3.4.0.rar
![](http://www.nz998.com/pic/49530.jpg)
代码片段和文件信息
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction both in commercial and non commercial applications
* as long as this copyright notice is maintained.
*
* This application is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main( int argc char **argv )
{
// use an ArgumentParser object to manage the program arguments.
osg::ArgumentParser arguments(&argcargv);
// set up the usage document in case we need to print out how to use this program.
arguments.getApplicationUsage()->setApplicationName(arguments.getApplicationName());
arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+“ is an application for collecting a set of separate files into a single archive file that can be later read in OSG applications..“);
arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+“ [options] filename ...“);
// if user request help write it out to cout.
if (arguments.read(“-h“) || arguments.read(“--help“))
{
arguments.getApplicationUsage()->write(std::cout);
return 1;
}
std::string archiveFilename;
while (arguments.read(“-a“archiveFilename) || arguments.read(“--archive“archiveFilename))
{
}
bool insert = false;
while (arguments.read(“-i“) || arguments.read(“--insert“))
{
insert = true;
}
bool extract = false;
while (arguments.read(“-e“) || arguments.read(“--extract“))
{
extract = true;
}
bool list = false;
while (arguments.read(“-l“) || arguments.read(“--list“))
{
list = true;
}
typedef std::vector FileNameList;
FileNameList files;
for(int pos=1;pos {
if (!arguments.isOption(pos))
{
if (insert)
{
std::string filePath = osgDB::findDataFile(arguments[pos]);
osgDB::FileType fileType = osgDB::fileType(filePath);
if (fileType==osgDB::REGULAR_FILE)
{
files.push_back(arguments[pos]);
}
else if (fileType==osgDB::DIRECTORY)
{
osgDB::DirectoryContents directory = osgDB::getDirectoryContents(arguments[pos]);
osgDB::DirectoryContents::iterator it = directory.begin();
while( it != directory.end())
{
files.push_back(filePath + “/“ +
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 980 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\CMakeLists.txt
....... 63 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgarchive\CMakeLists.txt
....... 208 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgarchive\GNUmakefile.inst
....... 6729 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgarchive\osgarchive.cpp
....... 133 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgconv\CMakeLists.txt
....... 289 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgconv\GNUmakefile.inst
....... 2361 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgconv\OrientationConverter.cpp
....... 998 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgconv\OrientationConverter.h
....... 33004 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgconv\osgconv.cpp
....... 107 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgfilecache\CMakeLists.txt
....... 15197 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgfilecache\osgfilecache.cpp
....... 267 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgversion\CMakeLists.txt
....... 27393 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgversion\Contributors.cpp
....... 185 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgversion\GNUmakefile.inst
....... 5482 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgversion\osgversion.cpp
....... 61 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgviewer\CMakeLists.txt
....... 240 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgviewer\GNUmakefile.inst
....... 7085 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\osgviewer\osgviewer.cpp
....... 13059 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\Cluster.cpp
....... 9539 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\Cluster.h
....... 3330 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\CMakeLists.txt
....... 6313 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\ExportHTML.cpp
....... 925 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\ExportHTML.h
....... 2741 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\PointsEventHandler.cpp
....... 1419 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\PointsEventHandler.h
....... 34056 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\present3D.cpp
....... 8771 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\ReadShowFile.cpp
....... 1228 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\ReadShowFile.h
....... 5375 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\SDLIntegration.cpp
....... 2178 2015-08-12 04:13 OpenSceneGraph-OpenSceneGraph-3.4.0\applications\present3D\SDLIntegration.h
............此处省略3910个文件信息
相关资源
- osg爆炸仿真及火烟模拟
- OpenSceneGraph 3.0 Beginner’s Guide.pdf
- 点云数据读取 使用osg 附带点云数据
- osg显示点云
- OSG入门书籍之一:OpenSceneGraph Quick S
- osg3.0.0.rar
- 本人亲自编译的最全的64位osg3.4第三方
- 可以在osg3.4+osgEarth2.8中使用的64位VP
- osgi自定义控制台命令demo
- OSG与OSGB批量转化工具
- osg入门级教材
- OSGB模型3MX索引生成工具v0.1.exe
- CISSP官方學習指南英文第七版
- OSG官方入门教程包含程序代码
- OSG3.4.0读取FBX插件
- osgbobjdae格式数据相互转换工具
- osg地形绘制
- OpenSceneGraph-3.4.0版本安装包
- VPB的所有版本
- OSG-Cookbook.pdf一本学习OSG难得的好书
- OsgEarth2.8 使用高程和影像
- osg经典入门教程
- 用OSG实现的实时仿真的雷达波效果
- osg天空盒源程序
- OSG载入地形和模型文件
- OpenSceneGraph快速入门指导.pdf
- OpenSceneGraph三维渲染引擎设计与实践
- osg 海量数据处理
- OSG3.4.0第三方库VS2015 x64
- OSG 3dparty VS2015(x86
评论
共有 条评论