#include <osg/Object>
#include <osg/Vec3>
#include <osg/Quat>
#include <osg/Plane>
#include <osg/Array>
Go to the source code of this file.
|
namespace | osg |
| The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
|
|
#define | OSG_SHAPE 1 |
#define | META_Shape(library, name) |
| META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods.
|
◆ META_Shape
#define META_Shape |
( |
| library, |
|
|
| name ) |
Value: virtual Object* cloneType() const { return new name(); } \
virtual Object* clone(const CopyOp& copyop) const { return new name (*this,copyop); } \
virtual bool isSameKindAs(
const Object* obj)
const {
return dynamic_cast<const name *
>(obj)!=
NULL; } \
virtual const char* libraryName() const { return #library; } \
virtual const char* className() const { return #name; } \
virtual void accept(ShapeVisitor& sv) { sv.apply(*this); } \
virtual void accept(ConstShapeVisitor& csv) const { csv.apply(*this); }
#define NULL
Definition Export:55
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.
◆ OSG_SHAPE