Added className() implementation to help wiht debugging.

This commit is contained in:
Robert Osfield 2010-02-16 17:38:49 +00:00
parent 26a9e499a4
commit 9404abfef5
3 changed files with 7 additions and 1 deletions

View File

@ -51,6 +51,8 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
DatabasePager(const DatabasePager& rhs);
virtual const char* className() const { return "DatabasePager"; }
/** Create a shallow copy on the DatabasePager.*/
virtual DatabasePager* clone() const { return new DatabasePager(*this); }

View File

@ -150,6 +150,8 @@ class OSGSHADOW_EXPORT ViewDependentShadowTechnique
*/
struct OSGSHADOW_EXPORT ViewData: public osg::Referenced
{
virtual const char* className() const { return "ViewData"; }
/**
Method called upon ViewData instance to initialize internal variables
*/

View File

@ -30,6 +30,8 @@ class OSGVIEWER_EXPORT Scene : public osg::Referenced
{
public:
virtual const char* className() const { return "Scene"; }
void setSceneData(osg::Node* node);
osg::Node* getSceneData();
const osg::Node* getSceneData() const;