Changeset 11649
- Timestamp:
- 06/23/10 15:28:19 (3 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 5 removed
- 4 modified
-
CMakeLists.txt (modified) (2 diffs)
-
examples/CMakeLists.txt (modified) (1 diff)
-
examples/osgintrospection (deleted)
-
include/osgIntrospection (deleted)
-
packaging/pkgconfig/openscenegraph-osgIntrospection.pc.in (deleted)
-
src/CMakeLists.txt (modified) (1 diff)
-
src/osgIntrospection (deleted)
-
src/osgWrappers/introspection (deleted)
-
src/osgWrappers/serializers/osgTerrain/TerrainTile.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/CMakeLists.txt
r11640 r11649 742 742 743 743 744 #745 # Provide target for generating wrappers746 #747 SET(GENWRAPPER genwrapper)748 749 ADD_CUSTOM_TARGET(wrappers750 COMMAND ${GENWRAPPER} -c ${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/introspection/genwrapper.conf -t ${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/introspection/Doxyfile.template -d ${OpenSceneGraph_SOURCE_DIR} | doxygen -751 COMMAND ${GENWRAPPER} -c ${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/introspection/genwrapper.conf -l ${OpenSceneGraph_SOURCE_DIR}752 )753 754 744 # For Doxygen 755 745 INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL) … … 877 867 openscenegraph-osgVolume 878 868 ) 879 880 IF(BUILD_OSG_WRAPPERS)881 SET(PKGCONFIG_FILES ${PKGCONFIG_FILES} openscenegraph-osgIntrospection)882 ENDIF(BUILD_OSG_WRAPPERS)883 869 884 870 IF(QT4_FOUND) -
OpenSceneGraph/trunk/examples/CMakeLists.txt
r11610 r11649 160 160 161 161 ADD_SUBDIRECTORY(osgpdf) 162 163 IF (BUILD_OSG_WRAPPERS)164 ADD_SUBDIRECTORY(osgintrospection)165 ENDIF(BUILD_OSG_WRAPPERS)166 162 167 163 IF (GLUT_FOUND) -
OpenSceneGraph/trunk/src/CMakeLists.txt
r11455 r11649 31 31 ENDIF() 32 32 33 OPTION(BUILD_OSG_WRAPPERS "Enable to build Introspection and Wrappers" OFF)34 IF(BUILD_OSG_WRAPPERS)35 ADD_SUBDIRECTORY(osgIntrospection)36 ADD_SUBDIRECTORY(osgWrappers/introspection)37 ENDIF()38 39 33 IF(MSVC80 OR MSVC90) 40 34 OPTION(OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS "Generate or not manifests files under VS8 for dynamically loaded dlls" ON) -
OpenSceneGraph/trunk/src/osgWrappers/serializers/osgTerrain/TerrainTile.cpp
r11232 r11649 33 33 static bool readColorLayers( osgDB::InputStream& is, osgTerrain::TerrainTile& tile ) 34 34 { 35 unsigned int size = 0; is >> size>> osgDB::BEGIN_BRACKET;36 for ( unsigned int i=0; i< size; ++i )35 unsigned int numValidLayers = 0; is >> numValidLayers >> osgDB::BEGIN_BRACKET; 36 for ( unsigned int i=0; i<numValidLayers; ++i ) 37 37 { 38 unsigned int layerNum=0; is >> osgDB::PROPERTY("Layer") >> layerNum; 38 39 osgTerrain::Layer* layer = dynamic_cast<osgTerrain::Layer*>( is.readObject() ); 39 if ( layer ) tile.setColorLayer( i, layer );40 if ( layer ) tile.setColorLayer( layerNum, layer ); 40 41 } 41 42 is >> osgDB::END_BRACKET; … … 45 46 static bool writeColorLayers( osgDB::OutputStream& os, const osgTerrain::TerrainTile& tile ) 46 47 { 47 unsigned int size = tile.getNumColorLayers(); 48 os << size << osgDB::BEGIN_BRACKET << std::endl; 49 for ( unsigned int i=0; i<size; ++i ) 48 unsigned int numValidLayers = 0; 49 for ( unsigned int i=0; i<tile.getNumColorLayers(); ++i ) 50 50 { 51 os << tile.getColorLayer(i); 51 if (tile.getColorLayer(i)) ++numValidLayers; 52 } 53 54 os << numValidLayers << osgDB::BEGIN_BRACKET << std::endl; 55 for ( unsigned int i=0; i<tile.getNumColorLayers(); ++i ) 56 { 57 if (tile.getColorLayer(i)) os << osgDB::PROPERTY("Layer") << i << tile.getColorLayer(i); 52 58 } 53 59 os << osgDB::END_BRACKET << std::endl;
