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; } \
T * clone(const T *t, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition: Object:201
T * cloneType(const T *t)
Definition: Object:243
#define NULL
Definition: Export:59
virtual void apply(const Shape &)
Definition: Shape:131
virtual void apply(Shape &)
Definition: Shape:109
META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods. Use when subclassing from Object to make it more convenient to define the standard pure virtual methods which are required for all Object subclasses.