Changeset 9388
- Timestamp:
- 12/18/08 12:06:57 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 14 modified
-
include/osg/Image (modified) (1 diff)
-
include/osgAnimation/EaseMotion (modified) (1 diff)
-
src/osgPlugins/ive/DataOutputStream.cpp (modified) (1 diff)
-
src/osgPlugins/osgWidget/Box.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/EmbeddedWindow.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/Frame.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/Input.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/Label.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/Table.cpp (modified) (2 diffs)
-
src/osgPlugins/osgWidget/Widget.cpp (modified) (5 diffs)
-
src/osgPlugins/osgWidget/WindowManager.cpp (modified) (2 diffs)
-
src/osgTerrain/GeometryTechnique.cpp (modified) (3 diffs)
-
src/osgTerrain/Locator.cpp (modified) (1 diff)
-
src/osgTerrain/TerrainTile.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Image
r9348 r9388 319 319 const PixelBufferObject* getPixelBufferObject() const { return _bufferObject.get(); } 320 320 321 virtual void update(NodeVisitor* nv) {} 322 321 virtual void update(NodeVisitor* /*nv*/) {} 323 322 324 323 /** method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. Return true if handled. */ 325 virtual bool sendPointerEvent(int x, int y, int buttonMask) { return false; }324 virtual bool sendPointerEvent(int /*x*/, int /*y*/, int /*buttonMask*/) { return false; } 326 325 327 326 /** method for sending key events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. Return true if handled.*/ 328 virtual bool sendKeyEvent(int key, bool keyDown) { return false; }327 virtual bool sendKeyEvent(int /*key*/, bool /*keyDown*/) { return false; } 329 328 330 329 /** method for passing frame information to the custom Image classes, to be called only when objects associated with imagery are not culled.*/ 331 virtual void setFrameLastRendered(const osg::FrameStamp* frameStamp) {}330 virtual void setFrameLastRendered(const osg::FrameStamp* /*frameStamp*/) {} 332 331 333 332 protected : -
OpenSceneGraph/trunk/include/osgAnimation/EaseMotion
r9370 r9388 170 170 { 171 171 CLAMP, 172 LOOP ,172 LOOP 173 173 }; 174 174 Motion(float startValue = 0, float duration = 1, float changeValue = 1, TimeBehaviour tb = CLAMP) : _time(0), _startValue(startValue), _changeValue(changeValue), _duration(duration), _behaviour(tb) {} -
OpenSceneGraph/trunk/src/osgPlugins/ive/DataOutputStream.cpp
r9124 r9388 647 647 { 648 648 649 float byteError = 0.0f;649 //float byteError = 0.0f; 650 650 float byteMultiplier = 255.0f/(maxValue-minValue); 651 651 float byteInvMultiplier = 1.0f/byteMultiplier; 652 652 653 float shortError = 0.0f;653 //float shortError = 0.0f; 654 654 float shortMultiplier = 65535.0f/(maxValue-minValue); 655 655 float shortInvMultiplier = 1.0f/shortMultiplier; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Box.cpp
r8588 r9388 8 8 #include <osgWidget/Box> 9 9 10 bool osgWidget_Box_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_Box_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 /* 12 13 osgWidget::Box& box = static_cast<osgWidgegt::Box&>(obj); … … 46 47 } 47 48 48 bool osgWidget_Box_writeData(const osg::Object& obj, osgDB::Output& fw) { 49 const osgWidget::Box& model = static_cast<const osgWidget::Box&>(obj); 49 bool osgWidget_Box_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 50 { 51 // const osgWidget::Box& model = static_cast<const osgWidget::Box&>(obj); 50 52 51 53 fw.indent() << fw.wrapString("Box stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/EmbeddedWindow.cpp
r8588 r9388 8 8 #include <osgWidget/Window> 9 9 10 bool osgWidget_EmbeddedWindow_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_EmbeddedWindow_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 osgWidget::warn() << "EmbeddedWindow read" << std::endl; 12 13 … … 14 15 } 15 16 16 bool osgWidget_EmbeddedWindow_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::Window::EmbeddedWindow& model = 18 static_cast<const osgWidget::Window::EmbeddedWindow&>(obj) 19 ; 17 bool osgWidget_EmbeddedWindow_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 // const osgWidget::Window::EmbeddedWindow& model = static_cast<const osgWidget::Window::EmbeddedWindow&>(obj); 20 20 21 21 fw.indent() << fw.wrapString("EmbeddedWindow stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Frame.cpp
r8588 r9388 8 8 #include <osgWidget/Frame> 9 9 10 bool osgWidget_Frame_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_Frame_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 osgWidget::warn() << "Frame read" << std::endl; 12 13 … … 14 15 } 15 16 16 bool osgWidget_Frame_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::Frame& model = static_cast<const osgWidget::Frame&>(obj); 17 bool osgWidget_Frame_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 // const osgWidget::Frame& model = static_cast<const osgWidget::Frame&>(obj); 18 20 19 21 fw.indent() << fw.wrapString("Frame stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Input.cpp
r8588 r9388 8 8 #include <osgWidget/Input> 9 9 10 bool osgWidget_Input_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_Input_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 osgWidget::warn() << "Input read" << std::endl; 12 13 … … 14 15 } 15 16 16 bool osgWidget_Input_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::Input& model = static_cast<const osgWidget::Input&>(obj); 17 bool osgWidget_Input_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 // const osgWidget::Input& model = static_cast<const osgWidget::Input&>(obj); 18 20 19 21 fw.indent() << fw.wrapString("Input stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Label.cpp
r8588 r9388 8 8 #include <osgWidget/Label> 9 9 10 bool osgWidget_Label_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_Label_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 osgWidget::warn() << "Label read" << std::endl; 12 13 … … 14 15 } 15 16 16 bool osgWidget_Label_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::Label& model = static_cast<const osgWidget::Label&>(obj); 17 bool osgWidget_Label_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 // const osgWidget::Label& model = static_cast<const osgWidget::Label&>(obj); 18 20 19 21 fw.indent() << fw.wrapString("Label stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Table.cpp
r8588 r9388 8 8 #include <osgWidget/Table> 9 9 10 bool osgWidget_Table_readData(osg::Object& obj, osgDB::Input& fr) {10 bool osgWidget_Table_readData(osg::Object& /*obj*/, osgDB::Input& fr) { 11 11 osgWidget::warn() << "Table read" << std::endl; 12 12 … … 14 14 } 15 15 16 bool osgWidget_Table_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::Table& model = static_cast<const osgWidget::Table&>(obj); 16 bool osgWidget_Table_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 17 { 18 // const osgWidget::Table& model = static_cast<const osgWidget::Table&>(obj); 18 19 19 20 fw.indent() << fw.wrapString("Table stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/Widget.cpp
r8588 r9388 15 15 } 16 16 17 bool osgWidget_Widget_writeData(const osg::Object& obj, osgDB::Output& fw) { 18 const osgWidget::Widget& model = static_cast<const osgWidget::Widget&>(obj); 17 bool osgWidget_Widget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 20 // const osgWidget::Widget& model = static_cast<const osgWidget::Widget&>(obj); 19 21 20 22 fw.indent() << fw.wrapString("Widget stuff...") << std::endl; … … 23 25 } 24 26 25 bool osgWidget_NotifyWidget_readData(osg::Object& obj, osgDB::Input& fr) { 27 bool osgWidget_NotifyWidget_readData(osg::Object& /*obj*/, osgDB::Input& fr) 28 { 26 29 osgWidget::warn() << "NotifyWidget read" << std::endl; 27 30 … … 29 32 } 30 33 31 bool osgWidget_NotifyWidget_writeData(const osg::Object& obj, osgDB::Output& fw) { 32 const osgWidget::NotifyWidget& model = static_cast<const osgWidget::NotifyWidget&>(obj); 34 bool osgWidget_NotifyWidget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 35 { 36 // const osgWidget::NotifyWidget& model = static_cast<const osgWidget::NotifyWidget&>(obj); 33 37 34 38 fw.indent() << fw.wrapString("NotifyWidget stuff...") << std::endl; … … 37 41 } 38 42 39 bool osgWidget_NullWidget_readData(osg::Object& obj, osgDB::Input& fr) { 43 bool osgWidget_NullWidget_readData(osg::Object& /*obj*/, osgDB::Input& fr) 44 { 40 45 osgWidget::warn() << "NullWidget read" << std::endl; 41 46 … … 43 48 } 44 49 45 bool osgWidget_NullWidget_writeData(const osg::Object& obj, osgDB::Output& fw) { 46 const osgWidget::NullWidget& model = static_cast<const osgWidget::NullWidget&>(obj); 50 bool osgWidget_NullWidget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 51 { 52 // const osgWidget::NullWidget& model = static_cast<const osgWidget::NullWidget&>(obj); 47 53 48 54 fw.indent() << fw.wrapString("NullWidget stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgPlugins/osgWidget/WindowManager.cpp
r8588 r9388 8 8 #include <osgWidget/WindowManager> 9 9 10 bool osgWidget_WindowManager_readData(osg::Object& obj, osgDB::Input& fr) { 10 bool osgWidget_WindowManager_readData(osg::Object& /*obj*/, osgDB::Input& fr) 11 { 11 12 osgWidget::warn() << "WindowManager read" << std::endl; 12 13 … … 14 15 } 15 16 16 bool osgWidget_WindowManager_writeData(const osg::Object& obj, osgDB::Output& fw) { 17 const osgWidget::WindowManager& model = static_cast<const osgWidget::WindowManager&>(obj); 17 bool osgWidget_WindowManager_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) 18 { 19 // const osgWidget::WindowManager& model = static_cast<const osgWidget::WindowManager&>(obj); 18 20 19 21 fw.indent() << fw.wrapString("WindowManager stuff...") << std::endl; -
OpenSceneGraph/trunk/src/osgTerrain/GeometryTechnique.cpp
r9358 r9388 284 284 285 285 286 float minHeight = 0.0;286 //float minHeight = 0.0; 287 287 float scaleHeight = _terrainTile->getTerrain() ? _terrainTile->getTerrain()->getVerticalScale() : 1.0f; 288 288 … … 312 312 { 313 313 if (switchLayer->getActiveLayer()>=0 && 314 s witchLayer->getActiveLayer()<switchLayer->getNumLayers() &&314 static_cast<unsigned int>(switchLayer->getActiveLayer())<switchLayer->getNumLayers() && 315 315 switchLayer->getLayer(switchLayer->getActiveLayer())) 316 316 { … … 698 698 if (switchLayer) 699 699 { 700 if (switchLayer->getActiveLayer()<0 || switchLayer->getActiveLayer()>=switchLayer->getNumLayers()) 700 if (switchLayer->getActiveLayer()<0 || 701 static_cast<unsigned int>(switchLayer->getActiveLayer())>=switchLayer->getNumLayers()) 701 702 { 702 703 continue; -
OpenSceneGraph/trunk/src/osgTerrain/Locator.cpp
r8987 r9388 34 34 osg::Object(locator,copyop), 35 35 _coordinateSystemType(locator._coordinateSystemType), 36 _ellipsoidModel(locator._ellipsoidModel),37 36 _format(locator._format), 38 37 _cs(locator._cs), 38 _ellipsoidModel(locator._ellipsoidModel), 39 39 _transform(locator._transform), 40 40 _definedInFile(locator._definedInFile), -
OpenSceneGraph/trunk/src/osgTerrain/TerrainTile.cpp
r9358 r9388 41 41 TerrainTile::TerrainTile(): 42 42 _terrain(0), 43 _dirty(false), 43 44 _hasBeenTraversal(false), 44 45 _requiresNormals(true), 45 _treatBoundariesToValidDataAsDefaultValue(false), 46 _dirty(false) 46 _treatBoundariesToValidDataAsDefaultValue(false) 47 47 { 48 48 setThreadSafeRefUnref(true); … … 52 52 Group(terrain,copyop), 53 53 _terrain(0), 54 _dirty(false), 54 55 _hasBeenTraversal(false), 55 56 _elevationLayer(terrain._elevationLayer), 56 57 _colorLayers(terrain._colorLayers), 57 58 _requiresNormals(terrain._requiresNormals), 58 _treatBoundariesToValidDataAsDefaultValue(terrain._treatBoundariesToValidDataAsDefaultValue), 59 _dirty(false) 59 _treatBoundariesToValidDataAsDefaultValue(terrain._treatBoundariesToValidDataAsDefaultValue) 60 60 { 61 61 if (terrain.getTerrainTechnique())
