Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Object File Reference

#include <osg/Referenced>
#include <osg/CopyOp>
#include <osg/ref_ptr>
#include <string>

Namespaces

namespace  osg

Defines

#define OSG_OBJECT   1
#define META_Object(library, name)
 META_Object macro define the standard clone, isSameKindAs and className methods.


Define Documentation

#define META_Object library,
name   ) 
 

Value:

virtual osg::Object* cloneType() const { return new name (); } \
        virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new name (*this,copyop); } \
        virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const name *>(obj)!=NULL; } \
        virtual const char* libraryName() const { return #library; }\
        virtual const char* className() const { return #name; }
META_Object macro define the standard clone, isSameKindAs and className methods.

Use when subclassing from Object to make it more convenient to define the standard pure virtual clone, isSameKindAs and className methods which are required for all Object subclasses.

#define OSG_OBJECT   1
 


Generated at Thu Nov 24 16:22:34 2005 for the OpenSceneGraph by doxygen 1.3.6.