Warnings fixes for VS.
This commit is contained in:
parent
965b7ddc72
commit
1153ea5feb
@ -288,6 +288,8 @@ namespace osgIntrospection
|
||||
|
||||
private:
|
||||
const Type& _type;
|
||||
|
||||
PropertyTypeAttribute& operator = (const PropertyTypeAttribute&) { return *this; }
|
||||
};
|
||||
|
||||
/// Attribute for overriding the type of an index (of an indexed
|
||||
@ -313,6 +315,9 @@ namespace osgIntrospection
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
IndexTypeAttribute& operator = (const IndexTypeAttribute&) { return *this; }
|
||||
|
||||
int _wi;
|
||||
const Type& _type;
|
||||
};
|
||||
|
@ -92,6 +92,9 @@ namespace osgIntrospection
|
||||
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;
|
||||
|
||||
private:
|
||||
|
||||
ConstructorInfo& operator = (const ConstructorInfo&) { return *this; }
|
||||
|
||||
const Type& _declarationType;
|
||||
ParameterInfoList _params;
|
||||
bool _explicit;
|
||||
|
@ -114,6 +114,9 @@ namespace osgIntrospection
|
||||
inline Value invoke() const;
|
||||
|
||||
private:
|
||||
|
||||
MethodInfo& operator = (const MethodInfo&) { return *this; }
|
||||
|
||||
inline std::string strip_namespace(const std::string& s) const;
|
||||
|
||||
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;
|
||||
|
@ -68,6 +68,9 @@ namespace osgIntrospection
|
||||
inline bool isInOut() const { return isIn() && isOut(); }
|
||||
|
||||
private:
|
||||
|
||||
ParameterInfo& operator = (const ParameterInfo&) { return *this; }
|
||||
|
||||
std::string _name;
|
||||
const Type& _type;
|
||||
int attribs_;
|
||||
|
@ -360,6 +360,9 @@ namespace osgIntrospection
|
||||
virtual void getInheritedProviders(CustomAttributeProviderList& providers) const;
|
||||
|
||||
private:
|
||||
|
||||
PropertyInfo& operator = (const PropertyInfo&) { return *this; }
|
||||
|
||||
const Type& _declarationType;
|
||||
const Type& _ptype;
|
||||
std::string _name;
|
||||
|
@ -177,9 +177,22 @@ namespace osgIntrospection
|
||||
struct Instance: Instance_base
|
||||
{
|
||||
Instance(T data): _data(data) {}
|
||||
|
||||
virtual Instance_base *clone() const { return new Instance<T>(*this); }
|
||||
virtual ~Instance() {}
|
||||
T _data;
|
||||
|
||||
protected:
|
||||
|
||||
Instance& operator = (const Instance& rhs)
|
||||
{
|
||||
if (&rhs!=this)
|
||||
{
|
||||
_data = rhs._data;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Base class for storage of Instance objects. Actually three
|
||||
@ -233,7 +246,7 @@ namespace osgIntrospection
|
||||
_ref_inst = new Instance<T &>(vl->_data);
|
||||
_const_ref_inst = new Instance<const T &>(vl->_data);
|
||||
}
|
||||
|
||||
|
||||
virtual Instance_box_base *clone() const
|
||||
{
|
||||
Instance_box<T> *new_inbox = new Instance_box<T>();
|
||||
@ -261,6 +274,9 @@ namespace osgIntrospection
|
||||
|
||||
private:
|
||||
bool nullptr_;
|
||||
|
||||
Instance_box& operator = (const Instance_box&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
// Generic instance box for pointer values. Unlike Instance_box<>,
|
||||
|
@ -59,6 +59,9 @@ class DrawShapeVisitor : public ConstShapeVisitor
|
||||
const TessellationHints* _hints;
|
||||
|
||||
protected:
|
||||
|
||||
DrawShapeVisitor& operator = (const DrawShapeVisitor&) { return *this; }
|
||||
|
||||
enum SphereHalf { SphereTopHalf, SphereBottomHalf };
|
||||
|
||||
// helpers for apply( Cylinder | Sphere | Capsule )
|
||||
@ -1055,6 +1058,11 @@ class ComputeBoundShapeVisitor : public ConstShapeVisitor
|
||||
virtual void apply(const CompositeShape&);
|
||||
|
||||
BoundingBox& _bb;
|
||||
|
||||
protected:
|
||||
|
||||
ComputeBoundShapeVisitor& operator = (const ComputeBoundShapeVisitor&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -1322,6 +1330,9 @@ class PrimitiveShapeVisitor : public ConstShapeVisitor
|
||||
const TessellationHints* _hints;
|
||||
|
||||
private:
|
||||
|
||||
PrimitiveShapeVisitor& operator = (const PrimitiveShapeVisitor&) { return *this; }
|
||||
|
||||
// helpers for apply( Cylinder | Sphere | Capsule )
|
||||
void createCylinderBody(unsigned int numSegments, float radius, float height, const osg::Matrix& matrix);
|
||||
void createHalfSphere(unsigned int numSegments, unsigned int numRows, float radius, int which, float zOffset, const osg::Matrix& matrix);
|
||||
|
@ -39,8 +39,6 @@ class TransformVisitor : public NodeVisitor
|
||||
_ignoreCameras(ignoreCameras)
|
||||
{}
|
||||
|
||||
META_NodeVisitor("osg","TransformVisitor")
|
||||
|
||||
virtual void apply(Transform& transform)
|
||||
{
|
||||
if (_coordMode==LOCAL_TO_WORLD)
|
||||
@ -85,6 +83,10 @@ class TransformVisitor : public NodeVisitor
|
||||
const_cast<Node*>(nodePath[i])->accept(*this);
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
TransformVisitor& operator = (const TransformVisitor&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
|
@ -257,6 +257,10 @@ public:
|
||||
std::set<osg::ref_ptr<osg::Texture> > _textureSet;
|
||||
std::set<osg::ref_ptr<osg::Drawable> > _drawableSet;
|
||||
osg::ref_ptr<osg::KdTreeBuilder> _kdTreeBuilder;
|
||||
|
||||
protected:
|
||||
|
||||
FindCompileableGLObjectsVisitor& operator = (const FindCompileableGLObjectsVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -920,6 +920,10 @@ struct ActivateTransparencyOnType
|
||||
}
|
||||
|
||||
const std::type_info& _t;
|
||||
|
||||
protected:
|
||||
|
||||
ActivateTransparencyOnType& operator = (const ActivateTransparencyOnType&) { return *this; }
|
||||
};
|
||||
|
||||
struct DeactivateTransparencyOnType
|
||||
@ -938,6 +942,10 @@ struct DeactivateTransparencyOnType
|
||||
}
|
||||
|
||||
const std::type_info& _t;
|
||||
|
||||
protected:
|
||||
|
||||
DeactivateTransparencyOnType& operator = (const DeactivateTransparencyOnType&) { return *this; }
|
||||
};
|
||||
|
||||
void SphereSegment::setSurfaceColor(const osg::Vec4& c)
|
||||
@ -1190,6 +1198,10 @@ namespace SphereSegmentIntersector
|
||||
}
|
||||
|
||||
VertexArray& _vertices;
|
||||
|
||||
protected:
|
||||
|
||||
SortFunctor& operator = (const SortFunctor&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
@ -2600,6 +2612,10 @@ namespace SphereSegmentIntersector
|
||||
{
|
||||
return _lowerOutside ? _plane.distance(v) : -_plane.distance(v) ;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
AzimPlaneIntersector& operator = (const AzimPlaneIntersector&) { return *this; }
|
||||
};
|
||||
|
||||
struct ElevationIntersector
|
||||
@ -2737,6 +2753,10 @@ namespace SphereSegmentIntersector
|
||||
|
||||
return _lowerOutside ? computedElev-_elev : _elev-computedElev ;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
ElevationIntersector& operator = (const ElevationIntersector&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
@ -2864,6 +2884,10 @@ namespace SphereSegmentIntersector
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
RadiusIntersector& operator = (const RadiusIntersector&) { return *this; }
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,10 @@ struct look_ahead_iterator
|
||||
const std::string& _string;
|
||||
unsigned int _index;
|
||||
unsigned char _nullCharacter;
|
||||
|
||||
protected:
|
||||
|
||||
look_ahead_iterator& operator = (const look_ahead_iterator&) { return *this; }
|
||||
};
|
||||
|
||||
String::Encoding findEncoding(look_ahead_iterator& charString,String::Encoding overrideEncoding)
|
||||
|
@ -84,6 +84,8 @@ class PrintVisitor : public NodeVisitor
|
||||
virtual void apply(LOD& node) { apply((Group&)node); }
|
||||
|
||||
protected:
|
||||
|
||||
PrintVisitor& operator = (const PrintVisitor&) { return *this; }
|
||||
|
||||
std::ostream& _out;
|
||||
int _indent;
|
||||
|
@ -117,7 +117,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
Edge() {}
|
||||
Edge(): ib_(0), ie_(0), ibs_(0), ies_(0), duplicate_(false) {}
|
||||
Edge(Vertex_index ib, Vertex_index ie) : ib_(ib), ie_(ie), ibs_(osg::minimum(ib, ie)), ies_(osg::maximum(ib, ie)), duplicate_(false) {}
|
||||
|
||||
// first endpoint
|
||||
@ -150,6 +150,13 @@ private:
|
||||
class Triangle
|
||||
{
|
||||
public:
|
||||
|
||||
Triangle():
|
||||
a_(0),
|
||||
b_(0),
|
||||
c_(0) {}
|
||||
|
||||
|
||||
Triangle(Vertex_index a, Vertex_index b, Vertex_index c, osg::Vec3Array *points)
|
||||
: a_(a),
|
||||
b_(b),
|
||||
@ -161,6 +168,21 @@ public:
|
||||
edge_[2] = Edge(c_, a_);
|
||||
}
|
||||
|
||||
Triangle& operator = (const Triangle& rhs)
|
||||
{
|
||||
if (&rhs==this) return *this;
|
||||
|
||||
a_ = rhs.a_;
|
||||
b_ = rhs.b_;
|
||||
c_ = rhs.c_;
|
||||
cc_ = rhs.cc_;
|
||||
edge_[0] = rhs.edge_[0];
|
||||
edge_[1] = rhs.edge_[1];
|
||||
edge_[2] = rhs.edge_[2];
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline Vertex_index a() const { return a_; }
|
||||
inline Vertex_index b() const { return b_; }
|
||||
inline Vertex_index c() const { return c_; }
|
||||
@ -321,6 +343,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
|
||||
bool intersect(const osg::Vec2 p1,const osg::Vec2 p2,const osg::Vec2 p3,const osg::Vec2 p4) const
|
||||
{
|
||||
// intersection point of p1,p2 and p3,p4
|
||||
|
@ -428,6 +428,10 @@ class CopyVertexArrayToPointsVisitor : public osg::ArrayVisitor
|
||||
}
|
||||
|
||||
EdgeCollector::PointList& _pointList;
|
||||
|
||||
protected:
|
||||
|
||||
CopyVertexArrayToPointsVisitor& operator = (const CopyVertexArrayToPointsVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
EdgeCollector::~EdgeCollector()
|
||||
|
@ -418,6 +418,11 @@ struct TriangleHit
|
||||
const osg::Vec3* _v2;
|
||||
float _r3;
|
||||
const osg::Vec3* _v3;
|
||||
|
||||
protected:
|
||||
|
||||
TriangleHit& operator = (const TriangleHit&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -45,7 +45,11 @@ namespace LineSegmentIntersectorUtils
|
||||
float _r2;
|
||||
const osg::Vec3* _v2;
|
||||
float _r3;
|
||||
const osg::Vec3* _v3;
|
||||
const osg::Vec3* _v3;
|
||||
|
||||
protected:
|
||||
|
||||
TriangleIntersection& operator = (const TriangleIntersection&) { return *this; }
|
||||
};
|
||||
|
||||
typedef std::multimap<float,TriangleIntersection> TriangleIntersections;
|
||||
|
@ -1348,6 +1348,11 @@ class CopyArrayToPointsVisitor : public osg::ArrayVisitor
|
||||
}
|
||||
|
||||
EdgeCollapse::PointList& _pointList;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
CopyArrayToPointsVisitor& operator = (const CopyArrayToPointsVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
class CopyVertexArrayToPointsVisitor : public osg::ArrayVisitor
|
||||
@ -1400,6 +1405,11 @@ class CopyVertexArrayToPointsVisitor : public osg::ArrayVisitor
|
||||
}
|
||||
|
||||
EdgeCollapse::PointList& _pointList;
|
||||
|
||||
protected:
|
||||
|
||||
CopyVertexArrayToPointsVisitor& operator = (const CopyVertexArrayToPointsVisitor&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
void EdgeCollapse::setGeometry(osg::Geometry* geometry, const Simplifier::IndexList& protectedPoints)
|
||||
@ -1567,6 +1577,10 @@ class CopyPointsToArrayVisitor : public osg::ArrayVisitor
|
||||
|
||||
EdgeCollapse::PointList& _pointList;
|
||||
unsigned int _index;
|
||||
|
||||
protected:
|
||||
|
||||
CopyPointsToArrayVisitor& operator = (CopyPointsToArrayVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
class NormalizeArrayVisitor : public osg::ArrayVisitor
|
||||
@ -1633,6 +1647,10 @@ class CopyPointsToVertexArrayVisitor : public osg::ArrayVisitor
|
||||
}
|
||||
|
||||
EdgeCollapse::PointList& _pointList;
|
||||
|
||||
protected:
|
||||
|
||||
CopyPointsToVertexArrayVisitor& operator = (CopyPointsToArrayVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -46,6 +46,10 @@ class WriteValue : public osg::ConstValueVisitor
|
||||
virtual void apply(const Vec2& v) { _o << v; }
|
||||
virtual void apply(const Vec3& v) { _o << v; }
|
||||
virtual void apply(const Vec4& v) { _o << v; }
|
||||
|
||||
protected:
|
||||
|
||||
WriteValue& operator = (const WriteValue&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
@ -129,6 +133,10 @@ struct VertexAttribComparitor
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
VertexAttribComparitor& operator = (const VertexAttribComparitor&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
class RemapArray : public osg::ArrayVisitor
|
||||
@ -163,6 +171,10 @@ class RemapArray : public osg::ArrayVisitor
|
||||
virtual void apply(osg::Vec2Array& array) { remap(array); }
|
||||
virtual void apply(osg::Vec3Array& array) { remap(array); }
|
||||
virtual void apply(osg::Vec4Array& array) { remap(array); }
|
||||
|
||||
protected:
|
||||
|
||||
RemapArray& operator = (const RemapArray&) { return *this; }
|
||||
};
|
||||
|
||||
struct MyTriangleOperator
|
||||
|
@ -194,6 +194,9 @@ public:
|
||||
// friend void swap(_mytype & Left, _mytype & Right) { Left.swap(Right); }
|
||||
|
||||
protected:
|
||||
|
||||
graph_array& operator = (const graph_array&) { return *this; }
|
||||
|
||||
size_t m_NbArcs;
|
||||
std::vector<node> m_Nodes;
|
||||
};
|
||||
|
@ -189,7 +189,6 @@ class TemporaryWindow: public osg::Referenced
|
||||
{
|
||||
public:
|
||||
TemporaryWindow();
|
||||
TemporaryWindow(const TemporaryWindow &);
|
||||
|
||||
HWND getHandle() const { return _handle; }
|
||||
HDC getDC() const { return _dc; }
|
||||
@ -199,6 +198,7 @@ public:
|
||||
|
||||
protected:
|
||||
~TemporaryWindow();
|
||||
TemporaryWindow(const TemporaryWindow &) {}
|
||||
TemporaryWindow &operator=(const TemporaryWindow &) { return *this; }
|
||||
|
||||
void create();
|
||||
@ -221,11 +221,6 @@ TemporaryWindow::TemporaryWindow()
|
||||
create();
|
||||
}
|
||||
|
||||
TemporaryWindow::TemporaryWindow(const TemporaryWindow &)
|
||||
{
|
||||
throw "This is TemporaryWindow, please don't copy me!";
|
||||
}
|
||||
|
||||
void TemporaryWindow::create()
|
||||
{
|
||||
std::ostringstream oss;
|
||||
|
Loading…
Reference in New Issue
Block a user