#include <osg/Referenced>
#include <osg/CopyOp>
#include <osg/ref_ptr>
#include <osg/Notify>
#include <string>
#include <vector>
Go to the source code of this file.
#define _ADDQUOTES |
( |
|
def | ) |
#def |
#define META_Object |
( |
|
library, |
|
|
|
name |
|
) |
| |
Value:
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 std::string &name, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
T * cloneType(const T *t)
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.
Definition at line 42 of file Object.h.
#define OSG_INIT_SINGLETON_PROXY |
( |
|
ProxyName, |
|
|
|
Func |
|
) |
| static struct ProxyName{ ProxyName() { Func; } } s_##ProxyName; |
Helper macro that creates a static proxy object to call singleton function on it's construction, ensuring that the singleton gets initialized at startup.
Definition at line 50 of file Object.h.