Changeset 9459
- Timestamp:
- 01/07/09 12:24:47 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 43 modified
-
examples/osganimationmakepath/osganimationmakepath.cpp (modified) (1 diff)
-
examples/osganimationnode/osganimationnode.cpp (modified) (1 diff)
-
examples/osganimationskinning/osganimationskinning.cpp (modified) (1 diff)
-
examples/osganimationsolid/osganimationsolid.cpp (modified) (1 diff)
-
examples/osganimationtimeline/osganimationtimeline.cpp (modified) (1 diff)
-
examples/osganimationviewer/AnimtkViewerGUI.cpp (modified) (2 diffs)
-
examples/osganimationviewer/AnimtkViewerKeyHandler.cpp (modified) (1 diff)
-
examples/osgdrawinstanced/osgdrawinstanced.cpp (modified) (2 diffs)
-
examples/osggeometryshaders/osggeometryshaders.cpp (modified) (1 diff)
-
examples/osghud/osghud.cpp (modified) (1 diff)
-
examples/osgimagesequence/osgimagesequence.cpp (modified) (1 diff)
-
examples/osgmemorytest/osgmemorytest.cpp (modified) (2 diffs)
-
examples/osgterrain/osgterrain.cpp (modified) (1 diff)
-
examples/osgunittests/UnitTestFramework.h (modified) (1 diff)
-
src/OpenThreads/win32/Win32Thread.cpp (modified) (1 diff)
-
src/osg/dxtctool.h (modified) (1 diff)
-
src/osgDB/DynamicLibrary.cpp (modified) (1 diff)
-
src/osgDB/FileUtils.cpp (modified) (1 diff)
-
src/osgGA/CameraViewSwitchManipulator.cpp (modified) (1 diff)
-
src/osgGA/TrackballManipulator.cpp (modified) (1 diff)
-
src/osgGA/UFOManipulator.cpp (modified) (1 diff)
-
src/osgManipulator/RotateCylinderDragger.cpp (modified) (1 diff)
-
src/osgManipulator/RotateSphereDragger.cpp (modified) (1 diff)
-
src/osgManipulator/Scale1DDragger.cpp (modified) (1 diff)
-
src/osgManipulator/Scale2DDragger.cpp (modified) (1 diff)
-
src/osgManipulator/Translate1DDragger.cpp (modified) (1 diff)
-
src/osgManipulator/Translate2DDragger.cpp (modified) (1 diff)
-
src/osgPlugins/OpenFlight/FltExportVisitor.h (modified) (2 diffs)
-
src/osgPlugins/OpenFlight/LightSourcePaletteManager.h (modified) (1 diff)
-
src/osgPlugins/OpenFlight/MaterialPaletteManager.h (modified) (1 diff)
-
src/osgPlugins/OpenFlight/TexturePaletteManager.h (modified) (2 diffs)
-
src/osgPlugins/geo/ReaderWriterGEO.cpp (modified) (2 diffs)
-
src/osgPlugins/hdr/ReaderWriterHDR.cpp (modified) (1 diff)
-
src/osgPlugins/lwo/iffparser.h (modified) (1 diff)
-
src/osgPlugins/lwo/lwo2parser.h (modified) (1 diff)
-
src/osgPlugins/mdl/MDLReader.cpp (modified) (1 diff)
-
src/osgPlugins/obj/OBJWriterNodeVisitor.h (modified) (1 diff)
-
src/osgPlugins/txp/TXPParser.cpp (modified) (1 diff)
-
src/osgPlugins/txp/TileMapper.cpp (modified) (1 diff)
-
src/osgUtil/TriStrip_tri_stripper.h (modified) (1 diff)
-
src/osgViewer/PixelBufferWin32.cpp (modified) (1 diff)
-
src/osgViewer/View.cpp (modified) (1 diff)
-
src/osgViewer/Viewer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osganimationmakepath/osganimationmakepath.cpp
r9395 r9459 312 312 int main(int argc, char** argv) 313 313 { 314 osgViewer::Viewer viewer; 314 osg::ArgumentParser arguments(&argc, argv); 315 osgViewer::Viewer viewer(arguments); 315 316 316 317 osgGA::TrackballManipulator* tbm = new osgGA::TrackballManipulator(); -
OpenSceneGraph/trunk/examples/osganimationnode/osganimationnode.cpp
r9290 r9459 250 250 int main (int argc, char* argv[]) 251 251 { 252 osgViewer::Viewer viewer; 252 osg::ArgumentParser arguments(&argc, argv); 253 osgViewer::Viewer viewer(arguments); 254 253 255 osgGA::TrackballManipulator* manipulator = new osgGA::TrackballManipulator(); 254 256 viewer.setCameraManipulator(manipulator); -
OpenSceneGraph/trunk/examples/osganimationskinning/osganimationskinning.cpp
r9456 r9459 157 157 int main (int argc, char* argv[]) 158 158 { 159 osgViewer::Viewer viewer; 159 osg::ArgumentParser arguments(&argc, argv); 160 osgViewer::Viewer viewer(arguments); 161 160 162 viewer.setCameraManipulator(new osgGA::TrackballManipulator()); 161 163 -
OpenSceneGraph/trunk/examples/osganimationsolid/osganimationsolid.cpp
r9370 r9459 61 61 int main (int argc, char* argv[]) 62 62 { 63 osgViewer::Viewer viewer; 63 osg::ArgumentParser arguments(&argc, argv); 64 osgViewer::Viewer viewer(arguments); 65 64 66 viewer.setCameraManipulator(new osgGA::TrackballManipulator()); 65 67 -
OpenSceneGraph/trunk/examples/osganimationtimeline/osganimationtimeline.cpp
r9371 r9459 110 110 } 111 111 112 bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)112 bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&) 113 113 { 114 114 if (ea.getEventType() == osgGA::GUIEventAdapter::KEYUP) -
OpenSceneGraph/trunk/examples/osganimationviewer/AnimtkViewerGUI.cpp
r9455 r9459 45 45 ButtonFunctor(): _speed(5) { _direction = -_speed; _previous = 0;} 46 46 47 bool enter(osgWidget::Event& ev)47 bool enter(osgWidget::Event&) 48 48 { 49 49 _direction = _speed; … … 51 51 } 52 52 53 bool leave(osgWidget::Event& ev)53 bool leave(osgWidget::Event&) 54 54 { 55 55 _direction = -_speed; -
OpenSceneGraph/trunk/examples/osganimationviewer/AnimtkViewerKeyHandler.cpp
r9101 r9459 43 43 44 44 45 bool AnimtkKeyEventHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa,45 bool AnimtkKeyEventHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&, 46 46 osg::Object*, osg::NodeVisitor*) 47 47 { -
OpenSceneGraph/trunk/examples/osgdrawinstanced/osgdrawinstanced.cpp
r9448 r9459 120 120 int main( int argc, char **argv ) 121 121 { 122 // Make a scene graph consisting of a single Geode, containing 122 osg::ArgumentParser arguments(&argc, argv); 123 124 // Make a scene graph consisting of a single Geode, containing 123 125 // a single Geometry, and a single PrimitiveSet. 124 126 osg::ref_ptr< osg::Geode > geode = new osg::Geode; … … 143 145 // osgDB::writeNodeFile(*geode, "instanced.osg"); 144 146 145 osgViewer::Viewer viewer ;147 osgViewer::Viewer viewer(arguments); 146 148 viewer.setSceneData( geode.get() ); 147 149 return viewer.run(); -
OpenSceneGraph/trunk/examples/osggeometryshaders/osggeometryshaders.cpp
r8871 r9459 180 180 /////////////////////////////////////////////////////////////////////////// 181 181 182 int main( int argc, char *argv[])182 int main( int , char * ) 183 183 { 184 184 osg::Geode* root( new osg::Geode ); -
OpenSceneGraph/trunk/examples/osghud/osghud.cpp
r7898 r9459 237 237 _snapImage(si) {} 238 238 239 bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)239 bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&) 240 240 { 241 241 if (ea.getHandled()) return false; -
OpenSceneGraph/trunk/examples/osgimagesequence/osgimagesequence.cpp
r9395 r9459 316 316 return false; 317 317 } 318 return false;319 318 } 320 319 -
OpenSceneGraph/trunk/examples/osgmemorytest/osgmemorytest.cpp
r9395 r9459 87 87 else throw "Failed to create GraphicsWindow"; 88 88 } 89 return 0;90 89 } 91 90 … … 171 170 throw "Invalid texture size of 0,0,0"; 172 171 } 173 return 0;174 172 } 175 173 -
OpenSceneGraph/trunk/examples/osgterrain/osgterrain.cpp
r9124 r9459 128 128 fr.attach(&fin); 129 129 130 bool readFilename ;130 bool readFilename = false; 131 131 132 132 while(!fr.eof()) -
OpenSceneGraph/trunk/examples/osgunittests/UnitTestFramework.h
r9124 r9459 480 480 private: 481 481 482 TestRunner& operator = (const TestRunner&) { return *this; } 483 482 484 TestReport _db; // Results 483 485 TestContext& _ctx; // The Global Testing Context -
OpenSceneGraph/trunk/src/OpenThreads/win32/Win32Thread.cpp
r8708 r9459 438 438 throw Win32ThreadCanceled(); 439 439 440 return 0; 441 440 // return 0; 442 441 } 443 442 -
OpenSceneGraph/trunk/src/osg/dxtctool.h
r4241 r9459 92 92 93 93 protected: 94 95 dxtc_pixels& operator = (const dxtc_pixels&) { return *this; } 94 96 95 97 // Limitation check functions -
OpenSceneGraph/trunk/src/osgDB/DynamicLibrary.cpp
r8076 r9459 155 155 return sym; 156 156 #endif 157 return NULL;158 157 } -
OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp
r9425 r9459 696 696 filenamechar* ptr; 697 697 #ifdef OSG_USE_UTF8_FILENAME 698 if ( ptr = _wgetenv(OSGDB_FILENAME_TEXT("PATH")))699 #else 700 if ( ptr = getenv("PATH"))698 if ((ptr = _wgetenv(OSGDB_FILENAME_TEXT("PATH")))) 699 #else 700 if ((ptr = getenv("PATH"))) 701 701 #endif 702 702 { -
OpenSceneGraph/trunk/src/osgGA/CameraViewSwitchManipulator.cpp
r9441 r9459 68 68 return false; 69 69 } 70 return false;71 70 } 72 71 -
OpenSceneGraph/trunk/src/osgGA/TrackballManipulator.cpp
r6987 r9459 173 173 return false; 174 174 } 175 return false;176 175 } 177 176 -
OpenSceneGraph/trunk/src/osgGA/UFOManipulator.cpp
r9043 r9459 253 253 return false; 254 254 } 255 256 return false;257 255 } 258 256 -
OpenSceneGraph/trunk/src/osgManipulator/RotateCylinderDragger.cpp
r9196 r9459 147 147 return false; 148 148 } 149 return false;150 149 } 151 150 -
OpenSceneGraph/trunk/src/osgManipulator/RotateSphereDragger.cpp
r9196 r9459 149 149 return false; 150 150 } 151 return false;152 151 } 153 152 -
OpenSceneGraph/trunk/src/osgManipulator/Scale1DDragger.cpp
r9196 r9459 160 160 return false; 161 161 } 162 return false;163 162 } 164 163 -
OpenSceneGraph/trunk/src/osgManipulator/Scale2DDragger.cpp
r9196 r9459 183 183 return false; 184 184 } 185 return false;186 185 } 187 186 -
OpenSceneGraph/trunk/src/osgManipulator/Translate1DDragger.cpp
r9196 r9459 139 139 return false; 140 140 } 141 return false;142 141 } 143 142 -
OpenSceneGraph/trunk/src/osgManipulator/Translate2DDragger.cpp
r9196 r9459 138 138 return false; 139 139 } 140 return false;141 140 } 142 141 -
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/FltExportVisitor.h
r9138 r9459 239 239 const std::string id_; 240 240 DataOutputStream* dos_; 241 242 protected: 243 244 IdHelper& operator = (const IdHelper&) { return *this; } 245 241 246 }; 242 247 … … 263 268 flt::FltExportVisitor& v_; 264 269 bool _polygonOffsetOn; 270 271 protected: 272 273 SubfaceHelper& operator = (const SubfaceHelper&) { return *this; } 265 274 }; 266 275 -
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/LightSourcePaletteManager.h
r8003 r9459 67 67 68 68 ExportOptions& _fltOpt; 69 70 protected: 71 72 LightSourcePaletteManager& operator = (const LightSourcePaletteManager&) { return *this; } 69 73 }; 70 74 -
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/MaterialPaletteManager.h
r8086 r9459 65 65 66 66 ExportOptions& _fltOpt; 67 68 protected: 69 70 MaterialPaletteManager& operator = (const MaterialPaletteManager&) { return *this; } 67 71 }; 68 72 -
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/TexturePaletteManager.h
r9382 r9459 47 47 protected: 48 48 49 TexturePaletteManager& operator = (const TexturePaletteManager&) { return *this; } 50 49 51 int _currIndex; 50 52 … … 55 57 56 58 const ExportOptions& _fltOpt; 59 57 60 }; 58 61 -
OpenSceneGraph/trunk/src/osgPlugins/geo/ReaderWriterGEO.cpp
r9124 r9459 1188 1188 } 1189 1189 Group *makeTextGeode(const georecord *gr) 1190 { // in geo text is defined with a matrix included in the geo.geode (gr is this geo.geode) 1190 { 1191 // in geo text is defined with a matrix included in the geo.geode (gr is this geo.geode) 1191 1192 // - we need to create this tree to render text 1193 #if 1 1192 1194 return NULL; // temporary disable april 2003 1195 #else 1193 1196 Group *nug=new Group; 1194 1197 const geoField *gfd=gr->getField(GEO_DB_RENDERGROUP_MAT); … … 1203 1206 } 1204 1207 return nug; 1205 } 1208 #endif 1209 } 1210 1206 1211 Group *makeLightPointGeodes(const georecord *gr) { 1207 1212 const geoField *gfd=gr->getField(GEO_DB_RENDERGROUP_MAT); -
OpenSceneGraph/trunk/src/osgPlugins/hdr/ReaderWriterHDR.cpp
r9124 r9459 261 261 if(!success) 262 262 { 263 source = 0; // delete the temporary image 263 264 return WriteResult::ERROR_IN_WRITING_FILE; // early out 264 source = 0; // delete the temporary image265 265 } 266 266 -
OpenSceneGraph/trunk/src/osgPlugins/lwo/iffparser.h
r3052 r9459 52 52 53 53 private: 54 GenericParser& operator = (const GenericParser&) { return *this; } 55 56 54 57 Chunk_list chunks_; 55 58 std::ostream &os_; -
OpenSceneGraph/trunk/src/osgPlugins/lwo/lwo2parser.h
r3208 r9459 35 35 virtual iff::Chunk *parse_chunk_data(const std::string &tag, const std::string &context, Iter it, Iter end); 36 36 iff::Chunk *parse_subchunk(Iter &it, const std::string &context); 37 38 Parser& operator = (const Parser&) { return *this; } 37 39 }; 38 40 -
OpenSceneGraph/trunk/src/osgPlugins/mdl/MDLReader.cpp
r9432 r9459 43 43 size_t & index) 44 44 { 45 size_t start, end; 45 size_t start; 46 size_t end = std::string::npos; 46 47 std::string token; 47 48 -
OpenSceneGraph/trunk/src/osgPlugins/obj/OBJWriterNodeVisitor.h
r7485 r9459 137 137 private: 138 138 139 OBJWriterNodeVisitor& operator = (const OBJWriterNodeVisitor&) { return *this; } 140 139 141 void processGeometry(osg::Geometry* geo, osg::Matrix& m); 140 142 void processArray(const std::string& key, osg::Array* array, const osg::Matrix& m = osg::Matrix::identity(), bool isNormal = false); -
OpenSceneGraph/trunk/src/osgPlugins/txp/TXPParser.cpp
r8372 r9459 956 956 _parse->getCurrTop()->addChild(osgGroup.get()); 957 957 return (void*)1; 958 959 #if 0960 osg::Group* osgGroup = new osg::Group;961 _parse->setCurrentNode(osgGroup);962 _parse->getCurrTop()->addChild(osgGroup);963 _parse->addLayer(osgGroup);964 return (void*)1;965 966 #else967 if (_parse->underLayerSubgraph()) return (void*)1;968 969 osg::ref_ptr<GeodeGroup> layer = new GeodeGroup;970 971 _parse->setLayerGeode(layer->getGeode());972 _parse->setUnderLayerSubgraph(true);973 _parse->setCurrentNode(layer.get());974 _parse->getCurrTop()->addChild(layer.get());975 976 return (void *)1;977 #endif978 958 } 979 959 -
OpenSceneGraph/trunk/src/osgPlugins/txp/TileMapper.cpp
r5188 r9459 309 309 } 310 310 } 311 // we shouldn't get here...312 313 return true;314 311 } 315 312 -
OpenSceneGraph/trunk/src/osgUtil/TriStrip_tri_stripper.h
r6461 r9459 200 200 friend struct _cmp_tri_interface_lt; 201 201 202 203 204 202 tri_stripper& operator = (const tri_stripper&) { return *this; } 205 203 206 204 typedef common_structures::graph_array<triangle, char> triangles_graph; -
OpenSceneGraph/trunk/src/osgViewer/PixelBufferWin32.cpp
r7914 r9459 666 666 if (_traits->sharedContext) 667 667 { 668 HGLRC hglrc ;668 HGLRC hglrc = 0; 669 669 670 670 GraphicsWindowWin32* graphicsWindowWin32 = dynamic_cast<GraphicsWindowWin32*>(_traits->sharedContext); -
OpenSceneGraph/trunk/src/osgViewer/View.cpp
r9420 r9459 1902 1902 return false; 1903 1903 } 1904 1905 return false;1906 1904 } 1907 1905 -
OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp
r9418 r9459 289 289 return false; 290 290 } 291 292 return false;293 291 } 294 292
