diff --git a/include/osg/Drawable b/include/osg/Drawable index 75ede503e..f8ba52ca6 100644 --- a/include/osg/Drawable +++ b/include/osg/Drawable @@ -427,7 +427,7 @@ class SG_EXPORT Drawable : public Object /** Return true if the Drawable subclass supports accept(AttributeFunctor&).*/ - virtual bool supports(AttributeFunctor&) const { return false; } + virtual bool supports(const AttributeFunctor&) const { return false; } /** accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. * return true if functor handled by drawable, @@ -457,7 +457,7 @@ class SG_EXPORT Drawable : public Object }; /** Return true if the Drawable subclass supports accept(ConstAttributeFunctor&).*/ - virtual bool supports(ConstAttributeFunctor&) const { return false; } + virtual bool supports(const ConstAttributeFunctor&) const { return false; } /** Accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. * return true if functor handled by drawable, @@ -467,7 +467,7 @@ class SG_EXPORT Drawable : public Object /** Return true if the Drawable subclass supports accept(PrimitiveFunctor&).*/ - virtual bool supports(PrimitiveFunctor&) const { return false; } + virtual bool supports(const PrimitiveFunctor&) const { return false; } /** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. * return true if functor handled by drawable, return false on failure of drawable to generate functor calls. @@ -476,7 +476,7 @@ class SG_EXPORT Drawable : public Object virtual void accept(PrimitiveFunctor&) const {} /** Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&).*/ - virtual bool supports(PrimitiveIndexFunctor&) const { return false; } + virtual bool supports(const PrimitiveIndexFunctor&) const { return false; } /** Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. * return true if functor handled by drawable, return false on failure of drawable to generate functor calls. diff --git a/include/osg/Geometry b/include/osg/Geometry index 33fe649ae..2db726100 100644 --- a/include/osg/Geometry +++ b/include/osg/Geometry @@ -341,25 +341,25 @@ class SG_EXPORT Geometry : public Drawable virtual void drawImplementation(State& state) const; /** Return true, osg::Geometry does support accept(AttributeFunctor&). */ - virtual bool supports(AttributeFunctor&) const { return true; } + virtual bool supports(const AttributeFunctor&) const { return true; } /** Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ virtual void accept(AttributeFunctor& af); /** Return true, osg::Geometry does support accept(ConstAttributeFunctor&). */ - virtual bool supports(ConstAttributeFunctor&) const { return true; } + virtual bool supports(const ConstAttributeFunctor&) const { return true; } /** Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ virtual void accept(ConstAttributeFunctor& af) const; /** Return true, osg::Geometry does support accept(PrimitiveFunctor&). */ - virtual bool supports(PrimitiveFunctor&) const { return true; } + virtual bool supports(const PrimitiveFunctor&) const { return true; } /** Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. */ virtual void accept(PrimitiveFunctor& pf) const; /** Return true, osg::Geometry does support accept(PrimitiveIndexFunctor&). */ - virtual bool supports(PrimitiveIndexFunctor&) const { return true; } + virtual bool supports(const PrimitiveIndexFunctor&) const { return true; } /** Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. */ virtual void accept(PrimitiveIndexFunctor& pf) const; diff --git a/include/osg/ImpostorSprite b/include/osg/ImpostorSprite index 28e80718b..ab38f49e1 100644 --- a/include/osg/ImpostorSprite +++ b/include/osg/ImpostorSprite @@ -127,19 +127,19 @@ class SG_EXPORT ImpostorSprite : public Drawable virtual void drawImplementation(State& state) const; /** Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). */ - virtual bool supports(AttributeFunctor&) const { return true; } + virtual bool supports(const AttributeFunctor&) const { return true; } /** Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ virtual void accept(AttributeFunctor& af); /** Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). */ - virtual bool supports(ConstAttributeFunctor&) const { return true; } + virtual bool supports(const ConstAttributeFunctor&) const { return true; } /** Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */ virtual void accept(ConstAttributeFunctor& af) const; /** Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). */ - virtual bool supports(PrimitiveFunctor&) const { return true; } + virtual bool supports(const PrimitiveFunctor&) const { return true; } /** Accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. */ virtual void accept(PrimitiveFunctor& pf) const; diff --git a/include/osgText/Text b/include/osgText/Text index d9e0d9e39..802b4fc36 100644 --- a/include/osgText/Text +++ b/include/osgText/Text @@ -221,16 +221,16 @@ public: virtual void drawImplementation(osg::State& state) const; /** return false, osgText::Text does not support accept(AttributeFunctor&).*/ - virtual bool supports(osg::Drawable::AttributeFunctor&) const { return false; } + virtual bool supports(const osg::Drawable::AttributeFunctor&) const { return false; } /** return true, osgText::Text does support accept(ConstAttributeFunctor&).*/ - virtual bool supports(osg::Drawable::ConstAttributeFunctor&) const { return true; } + virtual bool supports(const osg::Drawable::ConstAttributeFunctor&) const { return true; } /** accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has.*/ virtual void accept(osg::Drawable::ConstAttributeFunctor& af) const; /** return true, osgText::Text does support accept(PrimitiveFunctor&) .*/ - virtual bool supports(osg::PrimitiveFunctor&) const { return true; } + virtual bool supports(const osg::PrimitiveFunctor&) const { return true; } /** accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has.*/ virtual void accept(osg::PrimitiveFunctor& pf) const;