Made supports(..) methods use support(const ...)

This commit is contained in:
Robert Osfield 2005-03-18 02:42:59 +00:00
parent a2f5c8563e
commit f8426a8ad8
4 changed files with 14 additions and 14 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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;