Changeset 9637
- Timestamp:
- 02/03/09 16:28:53 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 22 modified
-
examples/osgcluster/broadcaster.cpp (modified) (1 diff)
-
examples/osgcluster/osgcluster.cpp (modified) (1 diff)
-
examples/osgcluster/receiver.cpp (modified) (1 diff)
-
examples/osgimagesequence/osgimagesequence.cpp (modified) (1 diff)
-
examples/osgmovie/osgmovie.cpp (modified) (1 diff)
-
examples/osgunittests/UnitTestFramework.cpp (modified) (2 diffs)
-
examples/osgunittests/UnitTestFramework.h (modified) (2 diffs)
-
include/osgIntrospection/Reflector (modified) (1 diff)
-
include/osgIntrospection/TypedConstructorInfo (modified) (1 diff)
-
include/osgIntrospection/TypedMethodInfo (modified) (1 diff)
-
src/OpenThreads/win32/Win32Thread.cpp (modified) (1 diff)
-
src/osgPlugins/3ds/ReaderWriter3DS.cpp (modified) (1 diff)
-
src/osgPlugins/cfg/ConfigLexer.cpp (modified) (1 diff)
-
src/osgPlugins/jpeg/ReaderWriterJPEG.cpp (modified) (1 diff)
-
src/osgPlugins/lwo/lwo2types.h (modified) (1 diff)
-
src/osgPlugins/obj/OBJWriterNodeVisitor.cpp (modified) (3 diffs)
-
src/osgPlugins/txp/ReaderWriterTXP.cpp (modified) (1 diff)
-
src/osgPlugins/txp/TXPIO.cpp (modified) (1 diff)
-
src/osgPlugins/txp/TXPParser.cpp (modified) (1 diff)
-
src/osgPlugins/txp/trpage_material.cpp (modified) (1 diff)
-
src/osgUtil/Simplifier.cpp (modified) (1 diff)
-
src/osgUtil/TriStrip_tri_stripper.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgcluster/broadcaster.cpp
r6941 r9637 197 197 sendto( _so, (const char *)_buffer, _buffer_size, 0, (struct sockaddr *)&saddr, size ); 198 198 int err = WSAGetLastError (); 199 i nt *dum = (int*) _buffer;199 if (err!=0) fprintf( stderr, "Broadcaster::sync() - error %d\n",err ); 200 200 #else 201 201 unsigned int size = sizeof( struct sockaddr_in ); -
OpenSceneGraph/trunk/examples/osgcluster/osgcluster.cpp
r6941 r9637 387 387 } 388 388 389 cameraPacket._masterKilled = readUInt() ;389 cameraPacket._masterKilled = readUInt()!=0; 390 390 391 391 read(cameraPacket._matrix); -
OpenSceneGraph/trunk/examples/osgcluster/receiver.cpp
r6941 r9637 143 143 // recvfrom(sock_Receive, szMessage, 256, 0, (sockaddr*)&addr_Cli, &clilen) 144 144 int err = WSAGetLastError (); 145 i nt *dum = (int*) _buffer;145 if (err!=0) fprintf( stderr, "Receiver::sync() - error %d\n",err ); 146 146 147 147 while( select( _so+1, &fdset, 0L, 0L, &tv ) ) -
OpenSceneGraph/trunk/examples/osgimagesequence/osgimagesequence.cpp
r9459 r9637 231 231 232 232 ImageStreamList& _imageStreamList; 233 234 protected: 235 236 FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; } 233 237 }; 234 238 -
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r9395 r9637 109 109 110 110 ImageStreamList& _imageStreamList; 111 112 protected: 113 114 FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; } 115 111 116 }; 112 117 -
OpenSceneGraph/trunk/examples/osgunittests/UnitTestFramework.cpp
r6941 r9637 291 291 namespace osgUtx{ 292 292 293 struct isSpecified{ 293 struct isSpecified 294 { 294 295 295 296 const std::string& pTestName_; … … 300 301 return pTestName_.find(specifiedTest) == 0; 301 302 } 303 304 protected: 305 306 isSpecified& operator = (const isSpecified&) { return *this; } 302 307 }; 303 308 -
OpenSceneGraph/trunk/examples/osgunittests/UnitTestFramework.h
r9459 r9637 387 387 { 388 388 public: 389 390 TestRecord() {} 391 392 TestRecord(const TestRecord& rhs): 393 name_(rhs.name_), 394 start_(rhs.start_), 395 stop_(rhs.stop_), 396 result_(rhs.result_), 397 problem_(rhs.problem_) 398 {} 399 400 TestRecord& operator = (const TestRecord& rhs) 401 { 402 if (&rhs==this) return *this; 403 404 name_ = rhs.name_; 405 start_ = rhs.start_; 406 stop_ = rhs.stop_; 407 result_ = rhs.result_; 408 problem_ = rhs.problem_; 409 410 return *this; 411 } 389 412 390 413 void start(); … … 394 417 void log(const std::exception& e); 395 418 void log(const std::string& s); 396 397 // Default copy construction and assignment are OK398 419 399 420 // FIXME: Add accessors? -
OpenSceneGraph/trunk/include/osgIntrospection/Reflector
r7168 r9637 632 632 } 633 633 } 634 635 protected: 636 637 Indexer& operator = (const Indexer&) { return *this; } 634 638 }; 635 639 -
OpenSceneGraph/trunk/include/osgIntrospection/TypedConstructorInfo
r6155 r9637 33 33 Value createInstance(ValueList& /*args*/) const 34 34 { 35 36 35 return IC::create(); 37 36 } -
OpenSceneGraph/trunk/include/osgIntrospection/TypedMethodInfo
r9635 r9637 16 16 #define OSGINTROSPECTION_TYPEDMETHODINFO_ 17 17 18 #if defined(_MSC_VER) 18 #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) 19 19 // disable for this header the VS warning C4121 : "alignment of a member was sensitive to packing" 20 20 #pragma warning( push ) -
OpenSceneGraph/trunk/src/OpenThreads/win32/Win32Thread.cpp
r9535 r9637 137 137 // 138 138 static void PrintThreadSchedulingInfo(Thread *thread) { 139 Win32ThreadPrivateData *pd = 140 static_cast<Win32ThreadPrivateData *>(thread->_prvData);139 140 // Win32ThreadPrivateData *pd = static_cast<Win32ThreadPrivateData *>(thread->_prvData); 141 141 142 142 std::cout<<"Thread "<< thread <<" priority : "; -
OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp
r9527 r9637 79 79 80 80 protected: 81 81 82 PrintVisitor& operator = (const PrintVisitor&) { return *this; } 83 82 84 std::ostream& _out; 83 85 int _indent; -
OpenSceneGraph/trunk/src/osgPlugins/cfg/ConfigLexer.cpp
r9379 r9637 10 10 #define YY_FLEX_MINOR_VERSION 5 11 11 12 #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) 13 // disable '=' : conversion from 'int' to 'char', possible loss of data style warnings 14 #pragma warning( disable : 4244) 15 #endif 12 16 13 17 -
OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
r9042 r9637 56 56 #include <assert.h> 57 57 #include <stdlib.h> 58 59 #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) 60 #pragma warning( disable : 4611 ) 61 #endif 58 62 59 63 namespace osgDBJPEG -
OpenSceneGraph/trunk/src/osgPlugins/lwo/lwo2types.h
r2596 r9637 18 18 // basic types 19 19 20 struct ID4 { 21 char id[4]; 20 struct ID4 21 { 22 ID4() 23 { 24 id[0] = 0; 25 id[1] = 0; 26 id[2] = 0; 27 id[3] = 0; 28 } 29 30 char id[4]; 22 31 }; 23 32 -
OpenSceneGraph/trunk/src/osgPlugins/obj/OBJWriterNodeVisitor.cpp
r7601 r9637 71 71 } 72 72 private: 73 74 ValueVisitor& operator = (const ValueVisitor&) { return *this; } 75 73 76 std::ostream& _fout; 74 77 osg::Matrix _m; … … 303 306 304 307 private: 308 309 PrimitiveIndexWriter& operator = (const PrimitiveIndexWriter&) { return *this; } 310 305 311 std::ostream& _fout; 306 312 GLenum _modeCache; … … 310 316 osg::Geometry* _geo; 311 317 unsigned int _normalIndex; 312 313 314 318 }; 315 319 -
OpenSceneGraph/trunk/src/osgPlugins/txp/ReaderWriterTXP.cpp
r9475 r9637 653 653 protected: 654 654 osg::Node* seamReplacement(osg::Node* node); 655 656 SeamFinder& operator = (const SeamFinder&) { return *this; } 655 657 656 658 int _x, _y, _lod; -
OpenSceneGraph/trunk/src/osgPlugins/txp/TXPIO.cpp
r8372 r9637 63 63 } 64 64 osgDB::Output &_fw; 65 66 protected: 67 68 Dump2Osg& operator = (const Dump2Osg&) { return *this; } 65 69 }; 66 70 -
OpenSceneGraph/trunk/src/osgPlugins/txp/TXPParser.cpp
r9459 r9637 294 294 } 295 295 protected: 296 297 FindEmptyGroupsVisitor& operator = (const FindEmptyGroupsVisitor&) { return *this; } 298 296 299 osg::NodeList& _nl; 297 300 }; -
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_material.cpp
r9391 r9637 1075 1075 case External: 1076 1076 return (name != NULL); 1077 break;1078 1077 case Local: 1079 1078 return (type != trpg_Unknown && sizeX != -1 && sizeY != -1); 1080 break;1081 1079 case Global: 1082 1080 return (type != trpg_Unknown); 1083 break;1084 1081 case Template: 1085 1082 return (type != trpg_Unknown && sizeX != -1 && sizeY != -1); 1086 break;1087 1083 default: 1088 1084 return false; 1089 1085 } 1090 1091 return false;1092 1086 } 1093 1087 -
OpenSceneGraph/trunk/src/osgUtil/Simplifier.cpp
r9630 r9637 1651 1651 protected: 1652 1652 1653 CopyPointsToVertexArrayVisitor& operator = ( CopyPointsToArrayVisitor&) { return *this; }1653 CopyPointsToVertexArrayVisitor& operator = (const CopyPointsToArrayVisitor&) { return *this; } 1654 1654 }; 1655 1655 -
OpenSceneGraph/trunk/src/osgUtil/TriStrip_tri_stripper.h
r9459 r9637 83 83 public: 84 84 triangle(); 85 86 triangle(const triangle& tri): 87 m_A(tri.m_A), 88 m_B(tri.m_B), 89 m_C(tri.m_C), 90 m_StripID(tri.m_StripID) 91 { 92 } 93 85 94 triangle(const indice A, const indice B, const indice C); 95 96 triangle& operator = (const triangle& tri) 97 { 98 if (&tri==this) return *this; 99 100 m_A = tri.m_A; 101 m_B = tri.m_B; 102 m_C = tri.m_C; 103 m_StripID = tri.m_StripID; 104 105 return *this; 106 } 86 107 87 108 void SetStripID(const size_t StripID);
