Changeset 9630
- Timestamp:
- 02/02/09 21:35:19 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 20 modified
-
include/osgIntrospection/Attributes (modified) (2 diffs)
-
include/osgIntrospection/ConstructorInfo (modified) (1 diff)
-
include/osgIntrospection/MethodInfo (modified) (1 diff)
-
include/osgIntrospection/ParameterInfo (modified) (1 diff)
-
include/osgIntrospection/PropertyInfo (modified) (1 diff)
-
include/osgIntrospection/Value (modified) (3 diffs)
-
src/osg/ShapeDrawable.cpp (modified) (3 diffs)
-
src/osg/Transform.cpp (modified) (2 diffs)
-
src/osgDB/DatabasePager.cpp (modified) (1 diff)
-
src/osgSim/SphereSegment.cpp (modified) (6 diffs)
-
src/osgText/String.cpp (modified) (1 diff)
-
src/osgUtil/CullVisitor.cpp (modified) (1 diff)
-
src/osgUtil/DelaunayTriangulator.cpp (modified) (4 diffs)
-
src/osgUtil/EdgeCollector.cpp (modified) (1 diff)
-
src/osgUtil/IntersectVisitor.cpp (modified) (1 diff)
-
src/osgUtil/LineSegmentIntersector.cpp (modified) (1 diff)
-
src/osgUtil/Simplifier.cpp (modified) (4 diffs)
-
src/osgUtil/TriStripVisitor.cpp (modified) (3 diffs)
-
src/osgUtil/TriStrip_graph_array.h (modified) (1 diff)
-
src/osgViewer/PixelBufferWin32.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgIntrospection/Attributes
r5655 r9630 289 289 private: 290 290 const Type& _type; 291 292 PropertyTypeAttribute& operator = (const PropertyTypeAttribute&) { return *this; } 291 293 }; 292 294 … … 314 316 315 317 private: 318 319 IndexTypeAttribute& operator = (const IndexTypeAttribute&) { return *this; } 320 316 321 int _wi; 317 322 const Type& _type; -
OpenSceneGraph/trunk/include/osgIntrospection/ConstructorInfo
r9376 r9630 93 93 94 94 private: 95 96 ConstructorInfo& operator = (const ConstructorInfo&) { return *this; } 97 95 98 const Type& _declarationType; 96 99 ParameterInfoList _params; -
OpenSceneGraph/trunk/include/osgIntrospection/MethodInfo
r9376 r9630 115 115 116 116 private: 117 118 MethodInfo& operator = (const MethodInfo&) { return *this; } 119 117 120 inline std::string strip_namespace(const std::string& s) const; 118 121 -
OpenSceneGraph/trunk/include/osgIntrospection/ParameterInfo
r5328 r9630 69 69 70 70 private: 71 72 ParameterInfo& operator = (const ParameterInfo&) { return *this; } 73 71 74 std::string _name; 72 75 const Type& _type; -
OpenSceneGraph/trunk/include/osgIntrospection/PropertyInfo
r9376 r9630 361 361 362 362 private: 363 364 PropertyInfo& operator = (const PropertyInfo&) { return *this; } 365 363 366 const Type& _declarationType; 364 367 const Type& _ptype; -
OpenSceneGraph/trunk/include/osgIntrospection/Value
r6368 r9630 178 178 { 179 179 Instance(T data): _data(data) {} 180 180 181 virtual Instance_base *clone() const { return new Instance<T>(*this); } 181 182 virtual ~Instance() {} 182 183 T _data; 184 185 protected: 186 187 Instance& operator = (const Instance& rhs) 188 { 189 if (&rhs!=this) 190 { 191 _data = rhs._data; 192 } 193 return *this; 194 } 195 183 196 }; 184 197 … … 234 247 _const_ref_inst = new Instance<const T &>(vl->_data); 235 248 } 236 249 237 250 virtual Instance_box_base *clone() const 238 251 { … … 262 275 private: 263 276 bool nullptr_; 277 278 Instance_box& operator = (const Instance_box&) { return *this; } 279 264 280 }; 265 281 -
OpenSceneGraph/trunk/src/osg/ShapeDrawable.cpp
r9062 r9630 60 60 61 61 protected: 62 63 DrawShapeVisitor& operator = (const DrawShapeVisitor&) { return *this; } 64 62 65 enum SphereHalf { SphereTopHalf, SphereBottomHalf }; 63 66 … … 1056 1059 1057 1060 BoundingBox& _bb; 1061 1062 protected: 1063 1064 ComputeBoundShapeVisitor& operator = (const ComputeBoundShapeVisitor&) { return *this; } 1065 1058 1066 }; 1059 1067 … … 1323 1331 1324 1332 private: 1333 1334 PrimitiveShapeVisitor& operator = (const PrimitiveShapeVisitor&) { return *this; } 1335 1325 1336 // helpers for apply( Cylinder | Sphere | Capsule ) 1326 1337 void createCylinderBody(unsigned int numSegments, float radius, float height, const osg::Matrix& matrix); -
OpenSceneGraph/trunk/src/osg/Transform.cpp
r9377 r9630 39 39 _ignoreCameras(ignoreCameras) 40 40 {} 41 42 META_NodeVisitor("osg","TransformVisitor")43 41 44 42 virtual void apply(Transform& transform) … … 86 84 } 87 85 } 86 87 protected: 88 89 TransformVisitor& operator = (const TransformVisitor&) { return *this; } 88 90 89 91 }; -
OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp
r9546 r9630 258 258 std::set<osg::ref_ptr<osg::Drawable> > _drawableSet; 259 259 osg::ref_ptr<osg::KdTreeBuilder> _kdTreeBuilder; 260 261 protected: 262 263 FindCompileableGLObjectsVisitor& operator = (const FindCompileableGLObjectsVisitor&) { return *this; } 260 264 }; 261 265 -
OpenSceneGraph/trunk/src/osgSim/SphereSegment.cpp
r9377 r9630 921 921 922 922 const std::type_info& _t; 923 924 protected: 925 926 ActivateTransparencyOnType& operator = (const ActivateTransparencyOnType&) { return *this; } 923 927 }; 924 928 … … 939 943 940 944 const std::type_info& _t; 945 946 protected: 947 948 DeactivateTransparencyOnType& operator = (const DeactivateTransparencyOnType&) { return *this; } 941 949 }; 942 950 … … 1191 1199 1192 1200 VertexArray& _vertices; 1201 1202 protected: 1203 1204 SortFunctor& operator = (const SortFunctor&) { return *this; } 1193 1205 }; 1194 1206 … … 2601 2613 return _lowerOutside ? _plane.distance(v) : -_plane.distance(v) ; 2602 2614 } 2615 2616 protected: 2617 2618 AzimPlaneIntersector& operator = (const AzimPlaneIntersector&) { return *this; } 2603 2619 }; 2604 2620 … … 2738 2754 return _lowerOutside ? computedElev-_elev : _elev-computedElev ; 2739 2755 } 2756 2757 protected: 2758 2759 ElevationIntersector& operator = (const ElevationIntersector&) { return *this; } 2740 2760 2741 2761 }; … … 2864 2884 } 2865 2885 2886 2887 protected: 2888 2889 RadiusIntersector& operator = (const RadiusIntersector&) { return *this; } 2866 2890 2867 2891 }; -
OpenSceneGraph/trunk/src/osgText/String.cpp
r9376 r9630 55 55 unsigned int _index; 56 56 unsigned char _nullCharacter; 57 58 protected: 59 60 look_ahead_iterator& operator = (const look_ahead_iterator&) { return *this; } 57 61 }; 58 62 -
OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp
r9411 r9630 85 85 86 86 protected: 87 88 PrintVisitor& operator = (const PrintVisitor&) { return *this; } 87 89 88 90 std::ostream& _out; -
OpenSceneGraph/trunk/src/osgUtil/DelaunayTriangulator.cpp
r6446 r9630 118 118 }; 119 119 120 Edge() {}120 Edge(): ib_(0), ie_(0), ibs_(0), ies_(0), duplicate_(false) {} 121 121 Edge(Vertex_index ib, Vertex_index ie) : ib_(ib), ie_(ie), ibs_(osg::minimum(ib, ie)), ies_(osg::maximum(ib, ie)), duplicate_(false) {} 122 122 … … 151 151 { 152 152 public: 153 154 Triangle(): 155 a_(0), 156 b_(0), 157 c_(0) {} 158 159 153 160 Triangle(Vertex_index a, Vertex_index b, Vertex_index c, osg::Vec3Array *points) 154 161 : a_(a), … … 160 167 edge_[1] = Edge(b_, c_); 161 168 edge_[2] = Edge(c_, a_); 169 } 170 171 Triangle& operator = (const Triangle& rhs) 172 { 173 if (&rhs==this) return *this; 174 175 a_ = rhs.a_; 176 b_ = rhs.b_; 177 c_ = rhs.c_; 178 cc_ = rhs.cc_; 179 edge_[0] = rhs.edge_[0]; 180 edge_[1] = rhs.edge_[1]; 181 edge_[2] = rhs.edge_[2]; 182 183 return *this; 162 184 } 163 185 … … 321 343 322 344 private: 345 323 346 324 347 bool intersect(const osg::Vec2 p1,const osg::Vec2 p2,const osg::Vec2 p3,const osg::Vec2 p4) const -
OpenSceneGraph/trunk/src/osgUtil/EdgeCollector.cpp
r7752 r9630 429 429 430 430 EdgeCollector::PointList& _pointList; 431 432 protected: 433 434 CopyVertexArrayToPointsVisitor& operator = (const CopyVertexArrayToPointsVisitor&) { return *this; } 431 435 }; 432 436 -
OpenSceneGraph/trunk/src/osgUtil/IntersectVisitor.cpp
r7648 r9630 419 419 float _r3; 420 420 const osg::Vec3* _v3; 421 422 protected: 423 424 TriangleHit& operator = (const TriangleHit&) { return *this; } 425 421 426 }; 422 427 -
OpenSceneGraph/trunk/src/osgUtil/LineSegmentIntersector.cpp
r8711 r9630 46 46 const osg::Vec3* _v2; 47 47 float _r3; 48 const osg::Vec3* _v3; 48 const osg::Vec3* _v3; 49 50 protected: 51 52 TriangleIntersection& operator = (const TriangleIntersection&) { return *this; } 49 53 }; 50 54 -
OpenSceneGraph/trunk/src/osgUtil/Simplifier.cpp
r8977 r9630 1349 1349 1350 1350 EdgeCollapse::PointList& _pointList; 1351 1352 1353 protected: 1354 1355 CopyArrayToPointsVisitor& operator = (const CopyArrayToPointsVisitor&) { return *this; } 1351 1356 }; 1352 1357 … … 1401 1406 1402 1407 EdgeCollapse::PointList& _pointList; 1408 1409 protected: 1410 1411 CopyVertexArrayToPointsVisitor& operator = (const CopyVertexArrayToPointsVisitor&) { return *this; } 1412 1403 1413 }; 1404 1414 … … 1568 1578 EdgeCollapse::PointList& _pointList; 1569 1579 unsigned int _index; 1580 1581 protected: 1582 1583 CopyPointsToArrayVisitor& operator = (CopyPointsToArrayVisitor&) { return *this; } 1570 1584 }; 1571 1585 … … 1634 1648 1635 1649 EdgeCollapse::PointList& _pointList; 1650 1651 protected: 1652 1653 CopyPointsToVertexArrayVisitor& operator = (CopyPointsToArrayVisitor&) { return *this; } 1636 1654 }; 1637 1655 -
OpenSceneGraph/trunk/src/osgUtil/TriStripVisitor.cpp
r7648 r9630 47 47 virtual void apply(const Vec3& v) { _o << v; } 48 48 virtual void apply(const Vec4& v) { _o << v; } 49 50 protected: 51 52 WriteValue& operator = (const WriteValue&) { return *this; } 49 53 }; 50 54 … … 130 134 } 131 135 136 protected: 137 138 VertexAttribComparitor& operator = (const VertexAttribComparitor&) { return *this; } 139 132 140 }; 133 141 … … 164 172 virtual void apply(osg::Vec3Array& array) { remap(array); } 165 173 virtual void apply(osg::Vec4Array& array) { remap(array); } 174 175 protected: 176 177 RemapArray& operator = (const RemapArray&) { return *this; } 166 178 }; 167 179 -
OpenSceneGraph/trunk/src/osgUtil/TriStrip_graph_array.h
r4006 r9630 195 195 196 196 protected: 197 198 graph_array& operator = (const graph_array&) { return *this; } 199 197 200 size_t m_NbArcs; 198 201 std::vector<node> m_Nodes; -
OpenSceneGraph/trunk/src/osgViewer/PixelBufferWin32.cpp
r9477 r9630 190 190 public: 191 191 TemporaryWindow(); 192 TemporaryWindow(const TemporaryWindow &);193 192 194 193 HWND getHandle() const { return _handle; } … … 200 199 protected: 201 200 ~TemporaryWindow(); 201 TemporaryWindow(const TemporaryWindow &) {} 202 202 TemporaryWindow &operator=(const TemporaryWindow &) { return *this; } 203 203 … … 220 220 { 221 221 create(); 222 }223 224 TemporaryWindow::TemporaryWindow(const TemporaryWindow &)225 {226 throw "This is TemporaryWindow, please don't copy me!";227 222 } 228 223
