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

Node File Reference

#include <osg/Object>
#include <osg/StateSet>
#include <osg/BoundingSphere>
#include <osg/NodeCallback>
#include <string>
#include <vector>

Include dependency graph for Node:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace  osg

Defines

#define OSG_NODE   1
#define META_Node(library, name)
 META_Node macro define the standard clone, isSameKindAs, className and accept methods.


Define Documentation

#define META_Node library,
name   
 

Value:

virtual osg::Object* cloneType() const { return osgNew name (); } \
        virtual osg::Object* clone(const osg::CopyOp& copyop) const { return osgNew name (*this,copyop); } \
        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; } \
        virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } } \
META_Node macro define the standard clone, isSameKindAs, className and accept methods.

Use when subclassing from Node to make it more convinient to define the required pure virtual methods.

#define OSG_NODE   1
 


Generated at Wed Sep 18 13:53:59 2002 for the Open Scene Graph by doxygen 1.2.16.