virtual
bool isSameKindAs(
const osg::Object* obj)
const {
return dynamic_cast<const name *
>(obj)!=
NULL; } \
virtual const char* className() const { return #name; } \
virtual const char* libraryName() const { return #library; } \
bool validNodeMask(const osg::Node &node) const
Method to called by Node and its subclass' Node::accept() method, if the result is true it is used to...
Definition: NodeVisitor:221
#define NULL
Definition: Export:55
virtual void apply(Drawable &drawable)
Visitor for type safe operations on osg::Nodes.
Definition: NodeVisitor:81
Base class/standard interface for objects which require IO support, cloning and reference counting...
Definition: Object:60
void pushOntoNodePath(Node *node)
Method called by osg::Node::accept() method before a call to the NodeVisitor::apply(..).
Definition: NodeVisitor:287
void popFromNodePath()
Method called by osg::Node::accept() method after a call to NodeVisitor::apply(..).
Definition: NodeVisitor:293
T * clone(const T *t, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition: Object:323
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition: CopyOp:41
T * cloneType(const T *t)
Definition: Object:365
META_Node macro define the standard clone, isSameKindAs, className and accept methods.
Use when subclassing from Node to make it more convenient to define the required pure virtual methods.