OpenSceneGraph  3.5.1
Classes | Namespaces | Macros | Typedefs
Node File Reference
#include <osg/Object>
#include <osg/StateSet>
#include <osg/BoundingSphere>
#include <osg/BoundingBox>
#include <osg/Callback>
#include <string>
#include <vector>

Classes

class  osg::Node
 Base class for all internal nodes in the scene graph. More...
 
struct  osg::Node::ComputeBoundingSphereCallback
 Callback to allow users to override the default computation of bounding volume. More...
 

Namespaces

 osgTerrain
 The osgTerrain library is a NodeKit that provides geospecifc terrain rendering support.
 
 osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
 

Macros

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

Typedefs

typedef std::vector< Node * > osg::NodePath
 A vector of Nodes pointers which is used to describe the path from a root node to a descendant. More...
 
typedef std::vector< NodePath > osg::NodePathList
 A vector of NodePath, typically used to describe all the paths from a node to the potential root nodes it has. More...
 
typedef std::vector< Matrix > osg::MatrixList
 A vector of NodePath, typically used to describe all the paths from a node to the potential root nodes it has. More...
 

Macro Definition Documentation

#define META_Node (   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* 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 convenient to define the required pure virtual methods.

#define OSG_NODE   1

osg logo
Generated at Wed Nov 11 2015 22:14:22 for the OpenSceneGraph by doxygen 1.8.10.